	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_set_234_gates
_bnx2x_set_234_gates:                   ## @bnx2x_set_234_gates
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_CHIP_IS_E1
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_PXP_REG_HST_DISCARD_DOORBELLS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	testl	%r14d, %r14d
	setne	%r15b
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_REG_WR
	movq	_PXP_REG_HST_DISCARD_INTERNAL_WRITES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_REG_WR
LBB0_2:
	movq	%rbx, %rdi
	callq	_CHIP_IS_E1x
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_HC_REG_CONFIG_1@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_REG_RD
	movl	(%r15), %esi
	movq	_HC_CONFIG_1_REG_BLOCK_DISABLE_1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, %ecx
	orl	%eax, %ecx
	notl	%edx
	andl	%eax, %edx
	testl	%r14d, %r14d
	cmovel	%ecx, %edx
	movq	%rbx, %rdi
	callq	_REG_WR
	movq	_HC_REG_CONFIG_0@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_REG_RD
	movq	_HC_CONFIG_0_REG_BLOCK_DISABLE_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, %ecx
	orl	%eax, %ecx
	notl	%edx
	andl	%eax, %edx
	testl	%r14d, %r14d
	movl	(%r15), %esi
	jmp	LBB0_5
LBB0_4:
	movq	_IGU_REG_BLOCK_CONFIGURATION@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_REG_RD
	movl	(%r15), %esi
	movq	_IGU_BLOCK_CONFIGURATION_REG_BLOCK_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, %ecx
	orl	%eax, %ecx
	notl	%edx
	andl	%eax, %edx
	testl	%r14d, %r14d
LBB0_5:
	cmovel	%ecx, %edx
	movq	%rbx, %rdi
	callq	_REG_WR
	movq	_NETIF_MSG_HW@GOTPCREL(%rip), %rax
	movq	_NETIF_MSG_IFUP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	testl	%r14d, %r14d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DP                             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PXP_REG_HST_DISCARD_DOORBELLS,4,2 ## @PXP_REG_HST_DISCARD_DOORBELLS
	.comm	_PXP_REG_HST_DISCARD_INTERNAL_WRITES,4,2 ## @PXP_REG_HST_DISCARD_INTERNAL_WRITES
	.comm	_HC_REG_CONFIG_1,4,2            ## @HC_REG_CONFIG_1
	.comm	_HC_CONFIG_1_REG_BLOCK_DISABLE_1,4,2 ## @HC_CONFIG_1_REG_BLOCK_DISABLE_1
	.comm	_HC_REG_CONFIG_0,4,2            ## @HC_REG_CONFIG_0
	.comm	_HC_CONFIG_0_REG_BLOCK_DISABLE_0,4,2 ## @HC_CONFIG_0_REG_BLOCK_DISABLE_0
	.comm	_IGU_REG_BLOCK_CONFIGURATION,4,2 ## @IGU_REG_BLOCK_CONFIGURATION
	.comm	_IGU_BLOCK_CONFIGURATION_REG_BLOCK_ENABLE,4,2 ## @IGU_BLOCK_CONFIGURATION_REG_BLOCK_ENABLE
	.comm	_NETIF_MSG_HW,4,2               ## @NETIF_MSG_HW
	.comm	_NETIF_MSG_IFUP,4,2             ## @NETIF_MSG_IFUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s gates #2, #3 and #4\n"

L_.str.1:                               ## @.str.1
	.asciz	"closing"

L_.str.2:                               ## @.str.2
	.asciz	"opening"

	.no_dead_strip	_bnx2x_set_234_gates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_set_234_gates
_bnx2x_set_234_gates:                   ; @bnx2x_set_234_gates
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_CHIP_IS_E1
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _PXP_REG_HST_DISCARD_DOORBELLS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PXP_REG_HST_DISCARD_DOORBELLS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	cmp	w19, #0
	cset	w21, ne
	mov	x0, x20
	mov	x2, x21
	bl	_REG_WR
Lloh3:
	adrp	x8, _PXP_REG_HST_DISCARD_INTERNAL_WRITES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PXP_REG_HST_DISCARD_INTERNAL_WRITES@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_REG_WR
LBB0_2:
	mov	x0, x20
	bl	_CHIP_IS_E1x
	cbz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x21, _HC_REG_CONFIG_1@GOTPAGE
Lloh7:
	ldr	x21, [x21, _HC_REG_CONFIG_1@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_REG_RD
Lloh8:
	adrp	x8, _HC_CONFIG_1_REG_BLOCK_DISABLE_1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HC_CONFIG_1_REG_BLOCK_DISABLE_1@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh10:
	ldr	w8, [x8]
	orr	w9, w8, w0
	bic	w8, w0, w8
	cmp	w19, #0
	csel	w2, w9, w8, eq
	mov	x0, x20
	bl	_REG_WR
Lloh11:
	adrp	x21, _HC_REG_CONFIG_0@GOTPAGE
Lloh12:
	ldr	x21, [x21, _HC_REG_CONFIG_0@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_REG_RD
Lloh13:
	adrp	x8, _HC_CONFIG_0_REG_BLOCK_DISABLE_0@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HC_CONFIG_0_REG_BLOCK_DISABLE_0@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh15:
	adrp	x21, _IGU_REG_BLOCK_CONFIGURATION@GOTPAGE
Lloh16:
	ldr	x21, [x21, _IGU_REG_BLOCK_CONFIGURATION@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_REG_RD
Lloh17:
	adrp	x8, _IGU_BLOCK_CONFIGURATION_REG_BLOCK_ENABLE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IGU_BLOCK_CONFIGURATION_REG_BLOCK_ENABLE@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x21]
	ldr	w8, [x8]
	orr	w9, w8, w0
	bic	w8, w0, w8
	cmp	w19, #0
	csel	w2, w9, w8, eq
	mov	x0, x20
	bl	_REG_WR
Lloh19:
	adrp	x8, _NETIF_MSG_HW@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NETIF_MSG_HW@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _NETIF_MSG_IFUP@GOTPAGE
Lloh23:
	ldr	x9, [x9, _NETIF_MSG_IFUP@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh25:
	adrp	x8, l_.str.1@PAGE
Lloh26:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh27:
	adrp	x9, l_.str.2@PAGE
Lloh28:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w19, #0
	csel	x2, x9, x8, eq
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_DP
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_PXP_REG_HST_DISCARD_DOORBELLS,4,2 ; @PXP_REG_HST_DISCARD_DOORBELLS
	.comm	_PXP_REG_HST_DISCARD_INTERNAL_WRITES,4,2 ; @PXP_REG_HST_DISCARD_INTERNAL_WRITES
	.comm	_HC_REG_CONFIG_1,4,2            ; @HC_REG_CONFIG_1
	.comm	_HC_CONFIG_1_REG_BLOCK_DISABLE_1,4,2 ; @HC_CONFIG_1_REG_BLOCK_DISABLE_1
	.comm	_HC_REG_CONFIG_0,4,2            ; @HC_REG_CONFIG_0
	.comm	_HC_CONFIG_0_REG_BLOCK_DISABLE_0,4,2 ; @HC_CONFIG_0_REG_BLOCK_DISABLE_0
	.comm	_IGU_REG_BLOCK_CONFIGURATION,4,2 ; @IGU_REG_BLOCK_CONFIGURATION
	.comm	_IGU_BLOCK_CONFIGURATION_REG_BLOCK_ENABLE,4,2 ; @IGU_BLOCK_CONFIGURATION_REG_BLOCK_ENABLE
	.comm	_NETIF_MSG_HW,4,2               ; @NETIF_MSG_HW
	.comm	_NETIF_MSG_IFUP,4,2             ; @NETIF_MSG_IFUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s gates #2, #3 and #4\n"

l_.str.1:                               ; @.str.1
	.asciz	"closing"

l_.str.2:                               ; @.str.2
	.asciz	"opening"

	.no_dead_strip	_bnx2x_set_234_gates
.subsections_via_symbols
