	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_check_half_open_conn     ## -- Begin function bnx2x_check_half_open_conn
	.p2align	4, 0x90
_bnx2x_check_half_open_conn:            ## @bnx2x_check_half_open_conn
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PHY_PHYSICAL_LINK_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_17
## %bb.1:
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	movq	_NIG_REG_EGRESS_EMAC0_PORT@GOTPCREL(%rip), %rax
	movslq	(%rdi), %rsi
	shlq	$2, %rsi
	addq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_REG_RD
	testl	%eax, %eax
	jne	LBB0_17
## %bb.2:
	movq	%rbx, %rdi
	callq	_CHIP_IS_E3
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	_MISC_REG_RESET_REG_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_REG_RD
	movq	_MISC_REGISTERS_RESET_REG_2_XMAC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.4:
	cmpl	$0, (%r12)
	jne	LBB0_5
## %bb.6:
	movq	_GRCBASE_XMAC0@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_8:
	movq	_MISC_REG_RESET_REG_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_REG_RD
	movq	_MISC_REGISTERS_RESET_REG_2_RST_BMAC0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%r12), %ecx
	shll	%cl, %edx
	testl	%eax, %edx
	je	LBB0_17
## %bb.9:
	testl	%ecx, %ecx
	jne	LBB0_10
## %bb.11:
	movq	_NIG_REG_INGRESS_BMAC0_MEM@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_5:
	movq	_GRCBASE_XMAC1@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %r13
	movq	_XMAC_REG_CLEAR_RX_LSS_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_REG_WR
	movq	_XMAC_REG_CLEAR_RX_LSS_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r13, %rsi
	movq	_XMAC_CLEAR_RX_LSS_STATUS_REG_CLEAR_LOCAL_FAULT_STATUS@GOTPCREL(%rip), %rax
	movq	_XMAC_CLEAR_RX_LSS_STATUS_REG_CLEAR_REMOTE_FAULT_STATUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_REG_WR
	movq	_XMAC_REG_RX_LSS_STATUS@GOTPCREL(%rip), %rax
	addq	(%rax), %r13
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_REG_RD
	xorl	%edx, %edx
	testl	%eax, %eax
	setne	%dl
	jmp	LBB0_16
LBB0_10:
	movq	_NIG_REG_INGRESS_BMAC1_MEM@GOTPCREL(%rip), %rax
LBB0_12:
	movq	(%rax), %r13
	movq	%rbx, %rdi
	callq	_CHIP_IS_E2
	testq	%rax, %rax
	jne	LBB0_13
## %bb.14:
	movq	_BIGMAC_REGISTER_RX_LSS_STATUS@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	movq	_BIGMAC2_REGISTER_RX_LSS_STAT@GOTPCREL(%rip), %rax
LBB0_15:
	addq	(%rax), %r13
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$2, %ecx
	callq	_REG_RD_DMAE
	xorl	%edx, %edx
	cmpq	$0, -64(%rbp)
	setg	%dl
LBB0_16:
	movq	_PHY_HALF_OPEN_CONN_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_LINK_STATUS_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %r9d
	callq	_bnx2x_analyze_link_error
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_PHYSICAL_LINK_FLAG,4,2     ## @PHY_PHYSICAL_LINK_FLAG
	.comm	_NIG_REG_EGRESS_EMAC0_PORT,8,3  ## @NIG_REG_EGRESS_EMAC0_PORT
	.comm	_MISC_REG_RESET_REG_2,8,3       ## @MISC_REG_RESET_REG_2
	.comm	_MISC_REGISTERS_RESET_REG_2_XMAC,4,2 ## @MISC_REGISTERS_RESET_REG_2_XMAC
	.comm	_GRCBASE_XMAC1,8,3              ## @GRCBASE_XMAC1
	.comm	_GRCBASE_XMAC0,8,3              ## @GRCBASE_XMAC0
	.comm	_XMAC_REG_CLEAR_RX_LSS_STATUS,8,3 ## @XMAC_REG_CLEAR_RX_LSS_STATUS
	.comm	_XMAC_CLEAR_RX_LSS_STATUS_REG_CLEAR_LOCAL_FAULT_STATUS,4,2 ## @XMAC_CLEAR_RX_LSS_STATUS_REG_CLEAR_LOCAL_FAULT_STATUS
	.comm	_XMAC_CLEAR_RX_LSS_STATUS_REG_CLEAR_REMOTE_FAULT_STATUS,4,2 ## @XMAC_CLEAR_RX_LSS_STATUS_REG_CLEAR_REMOTE_FAULT_STATUS
	.comm	_XMAC_REG_RX_LSS_STATUS,8,3     ## @XMAC_REG_RX_LSS_STATUS
	.comm	_PHY_HALF_OPEN_CONN_FLAG,4,2    ## @PHY_HALF_OPEN_CONN_FLAG
	.comm	_LINK_STATUS_NONE,4,2           ## @LINK_STATUS_NONE
	.comm	_MISC_REGISTERS_RESET_REG_2_RST_BMAC0,4,2 ## @MISC_REGISTERS_RESET_REG_2_RST_BMAC0
	.comm	_NIG_REG_INGRESS_BMAC1_MEM,8,3  ## @NIG_REG_INGRESS_BMAC1_MEM
	.comm	_NIG_REG_INGRESS_BMAC0_MEM,8,3  ## @NIG_REG_INGRESS_BMAC0_MEM
	.comm	_BIGMAC2_REGISTER_RX_LSS_STAT,8,3 ## @BIGMAC2_REGISTER_RX_LSS_STAT
	.comm	_BIGMAC_REGISTER_RX_LSS_STATUS,8,3 ## @BIGMAC_REGISTER_RX_LSS_STATUS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_check_half_open_conn     ; -- Begin function bnx2x_check_half_open_conn
	.p2align	2
_bnx2x_check_half_open_conn:            ; @bnx2x_check_half_open_conn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w8, [x1]
Lloh3:
	adrp	x9, _PHY_PHYSICAL_LINK_FLAG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PHY_PHYSICAL_LINK_FLAG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x0, #8]
Lloh6:
	adrp	x8, _NIG_REG_EGRESS_EMAC0_PORT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NIG_REG_EGRESS_EMAC0_PORT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldrsw	x9, [x0]
	add	x1, x8, x9, lsl #2
	mov	x0, x22
	bl	_REG_RD
	cbnz	w0, LBB0_8
; %bb.2:
	mov	x0, x22
	bl	_CHIP_IS_E3
Lloh9:
	adrp	x23, _MISC_REG_RESET_REG_2@GOTPAGE
Lloh10:
	ldr	x23, [x23, _MISC_REG_RESET_REG_2@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x1, [x23]
	mov	x0, x22
	bl	_REG_RD
Lloh11:
	adrp	x8, _MISC_REGISTERS_RESET_REG_2_XMAC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MISC_REGISTERS_RESET_REG_2_XMAC@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x21]
Lloh14:
	adrp	x9, _GRCBASE_XMAC1@GOTPAGE
Lloh15:
	ldr	x9, [x9, _GRCBASE_XMAC1@GOTPAGEOFF]
Lloh16:
	adrp	x10, _GRCBASE_XMAC0@GOTPAGE
Lloh17:
	ldr	x10, [x10, _GRCBASE_XMAC0@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x10, x9, eq
	ldr	x23, [x8]
Lloh18:
	adrp	x24, _XMAC_REG_CLEAR_RX_LSS_STATUS@GOTPAGE
Lloh19:
	ldr	x24, [x24, _XMAC_REG_CLEAR_RX_LSS_STATUS@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x1, x23, x8
	mov	x0, x22
	mov	w2, #0
	bl	_REG_WR
	ldr	x8, [x24]
Lloh20:
	adrp	x9, _XMAC_CLEAR_RX_LSS_STATUS_REG_CLEAR_LOCAL_FAULT_STATUS@GOTPAGE
Lloh21:
	ldr	x9, [x9, _XMAC_CLEAR_RX_LSS_STATUS_REG_CLEAR_LOCAL_FAULT_STATUS@GOTPAGEOFF]
	add	x1, x8, x23
Lloh22:
	ldr	w8, [x9]
Lloh23:
	adrp	x9, _XMAC_CLEAR_RX_LSS_STATUS_REG_CLEAR_REMOTE_FAULT_STATUS@GOTPAGE
Lloh24:
	ldr	x9, [x9, _XMAC_CLEAR_RX_LSS_STATUS_REG_CLEAR_REMOTE_FAULT_STATUS@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x22
	bl	_REG_WR
Lloh26:
	adrp	x8, _XMAC_REG_RX_LSS_STATUS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _XMAC_REG_RX_LSS_STATUS@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	add	x1, x8, x23
	mov	x0, x22
	bl	_REG_RD
	cmp	w0, #0
	cset	w2, ne
	b	LBB0_7
LBB0_5:
	ldr	x1, [x23]
	mov	x0, x22
	bl	_REG_RD
Lloh29:
	adrp	x8, _MISC_REGISTERS_RESET_REG_2_RST_BMAC0@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MISC_REGISTERS_RESET_REG_2_RST_BMAC0@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x8]
	ldr	w8, [x21]
	lsl	w9, w9, w8
	tst	w9, w0
	b.eq	LBB0_8
; %bb.6:
Lloh32:
	adrp	x9, _NIG_REG_INGRESS_BMAC1_MEM@GOTPAGE
Lloh33:
	ldr	x9, [x9, _NIG_REG_INGRESS_BMAC1_MEM@GOTPAGEOFF]
Lloh34:
	adrp	x10, _NIG_REG_INGRESS_BMAC0_MEM@GOTPAGE
Lloh35:
	ldr	x10, [x10, _NIG_REG_INGRESS_BMAC0_MEM@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x10, x9, eq
	ldr	x23, [x8]
	mov	x0, x22
	bl	_CHIP_IS_E2
Lloh36:
	adrp	x8, _BIGMAC_REGISTER_RX_LSS_STATUS@GOTPAGE
Lloh37:
	ldr	x8, [x8, _BIGMAC_REGISTER_RX_LSS_STATUS@GOTPAGEOFF]
Lloh38:
	adrp	x9, _BIGMAC2_REGISTER_RX_LSS_STAT@GOTPAGE
Lloh39:
	ldr	x9, [x9, _BIGMAC2_REGISTER_RX_LSS_STAT@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	x8, [x8]
	add	x1, x8, x23
	add	x2, sp, #8
	mov	x0, x22
	mov	w3, #2
	bl	_REG_RD_DMAE
	ldr	x8, [sp, #8]
	cmp	x8, #0
	cset	w2, gt
LBB0_7:
Lloh40:
	adrp	x8, _PHY_HALF_OPEN_CONN_FLAG@GOTPAGE
Lloh41:
	ldr	x8, [x8, _PHY_HALF_OPEN_CONN_FLAG@GOTPAGEOFF]
Lloh42:
	ldr	w3, [x8]
Lloh43:
	adrp	x8, _LINK_STATUS_NONE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _LINK_STATUS_NONE@GOTPAGEOFF]
Lloh45:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x5, x19
	bl	_bnx2x_analyze_link_error
LBB0_8:
	ldr	x8, [sp, #24]
Lloh46:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh47:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_PHYSICAL_LINK_FLAG,4,2     ; @PHY_PHYSICAL_LINK_FLAG
	.comm	_NIG_REG_EGRESS_EMAC0_PORT,8,3  ; @NIG_REG_EGRESS_EMAC0_PORT
	.comm	_MISC_REG_RESET_REG_2,8,3       ; @MISC_REG_RESET_REG_2
	.comm	_MISC_REGISTERS_RESET_REG_2_XMAC,4,2 ; @MISC_REGISTERS_RESET_REG_2_XMAC
	.comm	_GRCBASE_XMAC1,8,3              ; @GRCBASE_XMAC1
	.comm	_GRCBASE_XMAC0,8,3              ; @GRCBASE_XMAC0
	.comm	_XMAC_REG_CLEAR_RX_LSS_STATUS,8,3 ; @XMAC_REG_CLEAR_RX_LSS_STATUS
	.comm	_XMAC_CLEAR_RX_LSS_STATUS_REG_CLEAR_LOCAL_FAULT_STATUS,4,2 ; @XMAC_CLEAR_RX_LSS_STATUS_REG_CLEAR_LOCAL_FAULT_STATUS
	.comm	_XMAC_CLEAR_RX_LSS_STATUS_REG_CLEAR_REMOTE_FAULT_STATUS,4,2 ; @XMAC_CLEAR_RX_LSS_STATUS_REG_CLEAR_REMOTE_FAULT_STATUS
	.comm	_XMAC_REG_RX_LSS_STATUS,8,3     ; @XMAC_REG_RX_LSS_STATUS
	.comm	_PHY_HALF_OPEN_CONN_FLAG,4,2    ; @PHY_HALF_OPEN_CONN_FLAG
	.comm	_LINK_STATUS_NONE,4,2           ; @LINK_STATUS_NONE
	.comm	_MISC_REGISTERS_RESET_REG_2_RST_BMAC0,4,2 ; @MISC_REGISTERS_RESET_REG_2_RST_BMAC0
	.comm	_NIG_REG_INGRESS_BMAC1_MEM,8,3  ; @NIG_REG_INGRESS_BMAC1_MEM
	.comm	_NIG_REG_INGRESS_BMAC0_MEM,8,3  ; @NIG_REG_INGRESS_BMAC0_MEM
	.comm	_BIGMAC2_REGISTER_RX_LSS_STAT,8,3 ; @BIGMAC2_REGISTER_RX_LSS_STAT
	.comm	_BIGMAC_REGISTER_RX_LSS_STATUS,8,3 ; @BIGMAC_REGISTER_RX_LSS_STATUS
.subsections_via_symbols
