	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_disable_close_the_gate   ## -- Begin function bnx2x_disable_close_the_gate
	.p2align	4, 0x90
_bnx2x_disable_close_the_gate:          ## @bnx2x_disable_close_the_gate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_NETIF_MSG_IFDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DP
	movq	%r14, %rdi
	callq	_CHIP_IS_E1
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%r14, %rdi
	callq	_BP_PORT
	testl	%eax, %eax
	jne	LBB0_2
## %bb.3:
	movq	_MISC_REG_AEU_MASK_ATTN_FUNC_0@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movq	_MISC_REG_AEU_GENERAL_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_REG_RD
	movq	_MISC_AEU_GENERAL_MASK_REG_AEU_PXP_CLOSE_MASK@GOTPCREL(%rip), %rcx
	movq	_MISC_AEU_GENERAL_MASK_REG_AEU_NIG_CLOSE_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	jmp	LBB0_5
LBB0_2:
	movq	_MISC_REG_AEU_MASK_ATTN_FUNC_1@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_REG_RD
	andl	$-769, %eax                     ## imm = 0xFCFF
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_REG_WR                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_MSG_IFDOWN,4,2           ## @NETIF_MSG_IFDOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Disabling \"close the gates\"\n"

	.comm	_MISC_REG_AEU_MASK_ATTN_FUNC_1,4,2 ## @MISC_REG_AEU_MASK_ATTN_FUNC_1
	.comm	_MISC_REG_AEU_MASK_ATTN_FUNC_0,4,2 ## @MISC_REG_AEU_MASK_ATTN_FUNC_0
	.comm	_MISC_REG_AEU_GENERAL_MASK,4,2  ## @MISC_REG_AEU_GENERAL_MASK
	.comm	_MISC_AEU_GENERAL_MASK_REG_AEU_PXP_CLOSE_MASK,4,2 ## @MISC_AEU_GENERAL_MASK_REG_AEU_PXP_CLOSE_MASK
	.comm	_MISC_AEU_GENERAL_MASK_REG_AEU_NIG_CLOSE_MASK,4,2 ## @MISC_AEU_GENERAL_MASK_REG_AEU_NIG_CLOSE_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_disable_close_the_gate   ; -- Begin function bnx2x_disable_close_the_gate
	.p2align	2
_bnx2x_disable_close_the_gate:          ; @bnx2x_disable_close_the_gate
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _NETIF_MSG_IFDOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETIF_MSG_IFDOWN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	mov	x0, x19
	bl	_CHIP_IS_E1
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_BP_PORT
Lloh5:
	adrp	x8, _MISC_REG_AEU_MASK_ATTN_FUNC_1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MISC_REG_AEU_MASK_ATTN_FUNC_1@GOTPAGEOFF]
Lloh7:
	adrp	x9, _MISC_REG_AEU_MASK_ATTN_FUNC_0@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MISC_REG_AEU_MASK_ATTN_FUNC_0@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x9, x8, eq
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_REG_RD
	and	w2, w0, #0xfffffcff
	mov	x0, x19
	mov	x1, x20
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x20, _MISC_REG_AEU_GENERAL_MASK@GOTPAGE
Lloh10:
	ldr	x20, [x20, _MISC_REG_AEU_GENERAL_MASK@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_REG_RD
Lloh11:
	adrp	x8, _MISC_AEU_GENERAL_MASK_REG_AEU_PXP_CLOSE_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MISC_AEU_GENERAL_MASK_REG_AEU_PXP_CLOSE_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _MISC_AEU_GENERAL_MASK_REG_AEU_NIG_CLOSE_MASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MISC_AEU_GENERAL_MASK_REG_AEU_NIG_CLOSE_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w2, w0, w8
	ldr	w1, [x20]
	mov	x0, x19
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_REG_WR
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_MSG_IFDOWN,4,2           ; @NETIF_MSG_IFDOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Disabling \"close the gates\"\n"

	.comm	_MISC_REG_AEU_MASK_ATTN_FUNC_1,4,2 ; @MISC_REG_AEU_MASK_ATTN_FUNC_1
	.comm	_MISC_REG_AEU_MASK_ATTN_FUNC_0,4,2 ; @MISC_REG_AEU_MASK_ATTN_FUNC_0
	.comm	_MISC_REG_AEU_GENERAL_MASK,4,2  ; @MISC_REG_AEU_GENERAL_MASK
	.comm	_MISC_AEU_GENERAL_MASK_REG_AEU_PXP_CLOSE_MASK,4,2 ; @MISC_AEU_GENERAL_MASK_REG_AEU_PXP_CLOSE_MASK
	.comm	_MISC_AEU_GENERAL_MASK_REG_AEU_NIG_CLOSE_MASK,4,2 ; @MISC_AEU_GENERAL_MASK_REG_AEU_NIG_CLOSE_MASK
.subsections_via_symbols
