	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnic_bnx2x_connect
_cnic_bnx2x_connect:                    ## @cnic_bnx2x_connect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	movl	(%rdi), %edi
	callq	_netdev_priv
	cmpq	$1, %rbx
	jbe	LBB0_1
## %bb.2:
	movq	(%r14), %rsi
	movq	(%rsi), %rcx
	movq	8(%r12), %rdx
	movq	16(%r12), %rdi
	movq	_L4_KWQ_CONNECT_REQ1_IP_V6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	8(%rsi), %eax
	cmpl	$1, %eax
	movl	$3, %eax
	sbbl	$0, %eax
	movl	%eax, (%r13)
	cmpq	%rbx, %rax
	jbe	LBB0_3
LBB0_1:
	movl	%ebx, (%r13)
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_CNIC_KWQ16_DATA_SIZE@GOTPCREL(%rip), %rax
	cmpl	$71, (%rax)
	ja	LBB0_5
## %bb.4:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	jmp	LBB0_6
LBB0_5:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movq	%rcx, %rbx
	movq	%rcx, %rsi
	callq	_cnic_get_kwqe_16_data
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	%rax, %r14
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	movq	%rbx, %rax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	shlq	$4, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rax,%rbx), %rax
	movl	(%rax), %ecx
	movl	%ecx, 68(%r14)
	movl	4(%rax), %ecx
	movl	%ecx, 64(%r14)
	movl	8(%rax), %ecx
	movl	%ecx, 60(%r14)
	movl	12(%rax), %ecx
	movl	%ecx, 56(%r14)
	movl	16(%rax), %ecx
	movl	%ecx, 52(%r14)
	movl	20(%rax), %eax
	movl	%eax, 48(%r14)
	movq	_L4_KWQ_CONNECT_REQ1_IP_V6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	testl	%eax, 8(%rsi)
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_10
## %bb.9:
	movq	8(%rdx), %rax
	movl	20(%rax), %ecx
	movl	%ecx, 40(%r14)
	movl	16(%rax), %ecx
	movl	%ecx, 36(%r14)
	movl	12(%rax), %ecx
	movl	%ecx, 32(%r14)
	movl	8(%rax), %ecx
	movl	%ecx, 24(%r14)
	movl	4(%rax), %ecx
	movl	%ecx, 20(%r14)
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_L5CM_CONN_ADDR_PARAMS_IP_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 44(%r14)
LBB0_10:
	movslq	(%r13), %rax
	movq	-8(%rdx,%rax,8), %rdx
	movl	32(%rsi), %eax
	movl	%eax, 28(%r14)
	movl	28(%rsi), %eax
	movl	%eax, 12(%r14)
	movl	24(%rsi), %eax
	movl	%eax, 8(%r14)
	movl	20(%rsi), %eax
	movl	%eax, 4(%r14)
	movl	(%rdx), %eax
	movl	%eax, (%r14)
	movq	%r15, %rdi
	movq	%rsi, %r13
	movq	%r14, %rcx
	callq	_cnic_init_storm_conn_bufs
	movq	_BAR_XSTRORM_INTMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	(%r12), %edi
	callq	_XSTORM_ISCSI_LOCAL_VLAN_OFFSET
	addq	%rax, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_CNIC_WR16
	movq	_L4_KWQ_CONNECT_REQ1_TIME_STAMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	12(%r13), %esi
	movq	%r15, %rdi
	callq	_cnic_bnx2x_set_tcp_timestamp
	movq	_L5CM_RAMROD_CMD_ID_TCP_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r13), %edx
	movq	_ISCSI_CONNECTION_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %r8
	movq	%r15, %rdi
	callq	_cnic_submit_kwqe_16
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	_CTX_FL_OFFLD_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	callq	_set_bit
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_L4_KWQ_CONNECT_REQ1_IP_V6,4,2  ## @L4_KWQ_CONNECT_REQ1_IP_V6
	.comm	_CNIC_KWQ16_DATA_SIZE,4,2       ## @CNIC_KWQ16_DATA_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"conn_buf size too big\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_L5CM_CONN_ADDR_PARAMS_IP_VERSION,4,2 ## @L5CM_CONN_ADDR_PARAMS_IP_VERSION
	.comm	_BAR_XSTRORM_INTMEM,8,3         ## @BAR_XSTRORM_INTMEM
	.comm	_L4_KWQ_CONNECT_REQ1_TIME_STAMP,4,2 ## @L4_KWQ_CONNECT_REQ1_TIME_STAMP
	.comm	_L5CM_RAMROD_CMD_ID_TCP_CONNECT,4,2 ## @L5CM_RAMROD_CMD_ID_TCP_CONNECT
	.comm	_ISCSI_CONNECTION_TYPE,4,2      ## @ISCSI_CONNECTION_TYPE
	.comm	_CTX_FL_OFFLD_START,4,2         ## @CTX_FL_OFFLD_START
	.no_dead_strip	_cnic_bnx2x_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cnic_bnx2x_connect
_cnic_bnx2x_connect:                    ; @cnic_bnx2x_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x3
	mov	x25, x2
	mov	x24, x1
	mov	x19, x0
	ldr	x22, [x0, #8]
	ldr	w0, [x0]
	bl	_netdev_priv
	cmp	x25, #1
	b.ls	LBB0_2
; %bb.1:
	ldr	x21, [x24]
	ldr	x20, [x21]
	ldp	x26, x27, [x22, #8]
	ldr	w8, [x21, #8]
Lloh0:
	adrp	x28, _L4_KWQ_CONNECT_REQ1_IP_V6@GOTPAGE
Lloh1:
	ldr	x28, [x28, _L4_KWQ_CONNECT_REQ1_IP_V6@GOTPAGEOFF]
	ldr	w9, [x28]
	tst	w9, w8
	mov	w8, #2
	cinc	w8, w8, ne
	str	w8, [x23]
	cmp	x8, x25
	b.ls	LBB0_5
LBB0_2:
	str	w25, [x23]
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_5:
Lloh4:
	adrp	x8, _CNIC_KWQ16_DATA_SIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CNIC_KWQ16_DATA_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w8, #71
	b.hi	LBB0_7
; %bb.6:
	ldr	w0, [x19]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	b	LBB0_12
LBB0_7:
	add	x2, sp, #8
	mov	x0, x22
	mov	x1, x20
	bl	_cnic_get_kwqe_16_data
	cbz	x0, LBB0_12
; %bb.8:
	mov	x25, x0
	mov	w1, #0
	mov	w2, #72
	bl	_memset
	add	x8, x27, x20, lsl #4
	ldr	x8, [x8, #8]
	ldr	w9, [x8]
	str	w9, [x25, #68]
	ldr	w9, [x8, #4]
	str	w9, [x25, #64]
	ldr	w9, [x8, #8]
	str	w9, [x25, #60]
	ldr	w9, [x8, #12]
	str	w9, [x25, #56]
	ldr	w9, [x8, #16]
	str	w9, [x25, #52]
	ldr	w8, [x8, #20]
	str	w8, [x25, #48]
	ldr	w8, [x21, #8]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	x8, [x24, #8]
	ldr	w9, [x8, #20]
	str	w9, [x25, #40]
	ldur	d0, [x8, #12]
	str	d0, [x25, #32]
	ldr	w9, [x8, #8]
	str	w9, [x25, #24]
	ldr	d0, [x8]
	str	d0, [x25, #16]
Lloh9:
	adrp	x8, _L5CM_CONN_ADDR_PARAMS_IP_VERSION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _L5CM_CONN_ADDR_PARAMS_IP_VERSION@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x25, #44]
	orr	w8, w9, w8
	str	w8, [x25, #44]
LBB0_10:
	ldrsw	x8, [x23]
	add	x8, x24, x8, lsl #3
	ldur	x2, [x8, #-8]
	ldp	w9, w8, [x21, #28]
	str	w8, [x25, #28]
	str	w9, [x25, #12]
	ldur	d0, [x21, #20]
	stur	d0, [x25, #4]
	ldr	w8, [x2]
	str	w8, [x25]
	mov	x0, x19
	mov	x1, x21
	mov	x3, x25
	bl	_cnic_init_storm_conn_bufs
Lloh12:
	adrp	x8, _BAR_XSTRORM_INTMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BAR_XSTRORM_INTMEM@GOTPAGEOFF]
Lloh14:
	ldr	x23, [x8]
	ldr	w0, [x22]
	bl	_XSTORM_ISCSI_LOCAL_VLAN_OFFSET
	add	x1, x0, x23
	lsl	x8, x20, #4
	ldr	w2, [x27, x8]
	mov	x0, x19
	bl	_CNIC_WR16
	ldr	w8, [x21, #12]
Lloh15:
	adrp	x9, _L4_KWQ_CONNECT_REQ1_TIME_STAMP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _L4_KWQ_CONNECT_REQ1_TIME_STAMP@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w1, w9, w8
	mov	x0, x19
	bl	_cnic_bnx2x_set_tcp_timestamp
Lloh18:
	adrp	x8, _L5CM_RAMROD_CMD_ID_TCP_CONNECT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _L5CM_RAMROD_CMD_ID_TCP_CONNECT@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w2, [x21, #16]
Lloh21:
	adrp	x8, _ISCSI_CONNECTION_TYPE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ISCSI_CONNECTION_TYPE@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x19
	bl	_cnic_submit_kwqe_16
	cbnz	w0, LBB0_4
; %bb.11:
Lloh24:
	adrp	x8, _CTX_FL_OFFLD_START@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CTX_FL_OFFLD_START@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	add	x1, x26, x20, lsl #2
	bl	_set_bit
	mov	w0, #0
	b	LBB0_4
LBB0_12:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_L4_KWQ_CONNECT_REQ1_IP_V6,4,2  ; @L4_KWQ_CONNECT_REQ1_IP_V6
	.comm	_CNIC_KWQ16_DATA_SIZE,4,2       ; @CNIC_KWQ16_DATA_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"conn_buf size too big\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_L5CM_CONN_ADDR_PARAMS_IP_VERSION,4,2 ; @L5CM_CONN_ADDR_PARAMS_IP_VERSION
	.comm	_BAR_XSTRORM_INTMEM,8,3         ; @BAR_XSTRORM_INTMEM
	.comm	_L4_KWQ_CONNECT_REQ1_TIME_STAMP,4,2 ; @L4_KWQ_CONNECT_REQ1_TIME_STAMP
	.comm	_L5CM_RAMROD_CMD_ID_TCP_CONNECT,4,2 ; @L5CM_RAMROD_CMD_ID_TCP_CONNECT
	.comm	_ISCSI_CONNECTION_TYPE,4,2      ; @ISCSI_CONNECTION_TYPE
	.comm	_CTX_FL_OFFLD_START,4,2         ; @CTX_FL_OFFLD_START
	.no_dead_strip	_cnic_bnx2x_connect
.subsections_via_symbols
