	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_set_bmac_rx
_bnx2x_set_bmac_rx:                     ## @bnx2x_set_bmac_rx
	.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
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testl	%edx, %edx
	jne	LBB0_1
## %bb.2:
	movq	_NIG_REG_INGRESS_BMAC0_MEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_NIG_REG_INGRESS_BMAC1_MEM@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r14d
	movq	_NIG_REG_BMAC0_REGS_OUT_EN@GOTPCREL(%rip), %rax
	leal	(,%rbx,4), %ecx
	movslq	%ecx, %rsi
	addq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_REG_RD
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_CHIP_IS_E2
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:
	movq	_BIGMAC_REGISTER_BMAC_CONTROL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_BIGMAC2_REGISTER_BMAC_CONTROL@GOTPCREL(%rip), %rax
LBB0_6:
	addl	(%rax), %r14d
	movq	_MISC_REG_RESET_REG_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_REG_RD
	movq	_MISC_REGISTERS_RESET_REG_2_RST_BMAC0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	testl	%eax, %edx
	je	LBB0_12
## %bb.7:
	testl	%r13d, %r13d
	je	LBB0_12
## %bb.8:
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	$2, %ecx
	callq	_REG_RD_DMAE
	movq	_BMAC_CONTROL_RX_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.9:
	orl	-56(%rbp), %eax
	jmp	LBB0_11
LBB0_10:
	notl	%eax
	andl	-56(%rbp), %eax
LBB0_11:
	movl	%eax, -56(%rbp)
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	$2, %ecx
	callq	_REG_WR_DMAE
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NIG_REG_INGRESS_BMAC1_MEM,4,2  ## @NIG_REG_INGRESS_BMAC1_MEM
	.comm	_NIG_REG_INGRESS_BMAC0_MEM,4,2  ## @NIG_REG_INGRESS_BMAC0_MEM
	.comm	_NIG_REG_BMAC0_REGS_OUT_EN,8,3  ## @NIG_REG_BMAC0_REGS_OUT_EN
	.comm	_BIGMAC2_REGISTER_BMAC_CONTROL,8,3 ## @BIGMAC2_REGISTER_BMAC_CONTROL
	.comm	_BIGMAC_REGISTER_BMAC_CONTROL,8,3 ## @BIGMAC_REGISTER_BMAC_CONTROL
	.comm	_MISC_REG_RESET_REG_2,8,3       ## @MISC_REG_RESET_REG_2
	.comm	_MISC_REGISTERS_RESET_REG_2_RST_BMAC0,4,2 ## @MISC_REGISTERS_RESET_REG_2_RST_BMAC0
	.comm	_BMAC_CONTROL_RX_ENABLE,4,2     ## @BMAC_CONTROL_RX_ENABLE
	.no_dead_strip	_bnx2x_set_bmac_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_set_bmac_rx
_bnx2x_set_bmac_rx:                     ; @bnx2x_set_bmac_rx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh3:
	adrp	x8, _NIG_REG_INGRESS_BMAC1_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NIG_REG_INGRESS_BMAC1_MEM@GOTPAGEOFF]
Lloh5:
	adrp	x9, _NIG_REG_INGRESS_BMAC0_MEM@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NIG_REG_INGRESS_BMAC0_MEM@GOTPAGEOFF]
	cmp	w2, #0
	csel	x8, x9, x8, eq
	ldr	w23, [x8]
Lloh7:
	adrp	x8, _NIG_REG_BMAC0_REGS_OUT_EN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NIG_REG_BMAC0_REGS_OUT_EN@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	lsl	w9, w2, #2
	add	x1, x8, w9, sxtw
	bl	_REG_RD
	mov	x22, x0
	mov	x0, x19
	bl	_CHIP_IS_E2
Lloh10:
	adrp	x8, _BIGMAC_REGISTER_BMAC_CONTROL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BIGMAC_REGISTER_BMAC_CONTROL@GOTPAGEOFF]
Lloh12:
	adrp	x9, _BIGMAC2_REGISTER_BMAC_CONTROL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BIGMAC2_REGISTER_BMAC_CONTROL@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w24, [x8]
Lloh14:
	adrp	x8, _MISC_REG_RESET_REG_2@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MISC_REG_RESET_REG_2@GOTPAGEOFF]
Lloh16:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_REG_RD
Lloh17:
	adrp	x8, _MISC_REGISTERS_RESET_REG_2_RST_BMAC0@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MISC_REGISTERS_RESET_REG_2_RST_BMAC0@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	lsl	w8, w8, w21
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	w22, #0, #4, ne
	b.eq	LBB0_5
; %bb.1:
	add	w21, w23, w24
	mov	x2, sp
	mov	x0, x19
	mov	x1, x21
	mov	w3, #2
	bl	_REG_RD_DMAE
Lloh20:
	adrp	x8, _BMAC_CONTROL_RX_ENABLE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BMAC_CONTROL_RX_ENABLE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cbz	w20, LBB0_3
; %bb.2:
	ldr	w9, [sp]
	orr	w8, w9, w8
	b	LBB0_4
LBB0_3:
	ldr	w9, [sp]
	bic	w8, w9, w8
LBB0_4:
	str	w8, [sp]
	mov	x2, sp
	mov	x0, x19
	mov	x1, x21
	mov	w3, #2
	bl	_REG_WR_DMAE
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
LBB0_5:
	ldr	x8, [sp, #8]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_NIG_REG_INGRESS_BMAC1_MEM,4,2  ; @NIG_REG_INGRESS_BMAC1_MEM
	.comm	_NIG_REG_INGRESS_BMAC0_MEM,4,2  ; @NIG_REG_INGRESS_BMAC0_MEM
	.comm	_NIG_REG_BMAC0_REGS_OUT_EN,8,3  ; @NIG_REG_BMAC0_REGS_OUT_EN
	.comm	_BIGMAC2_REGISTER_BMAC_CONTROL,8,3 ; @BIGMAC2_REGISTER_BMAC_CONTROL
	.comm	_BIGMAC_REGISTER_BMAC_CONTROL,8,3 ; @BIGMAC_REGISTER_BMAC_CONTROL
	.comm	_MISC_REG_RESET_REG_2,8,3       ; @MISC_REG_RESET_REG_2
	.comm	_MISC_REGISTERS_RESET_REG_2_RST_BMAC0,4,2 ; @MISC_REGISTERS_RESET_REG_2_RST_BMAC0
	.comm	_BMAC_CONTROL_RX_ENABLE,4,2     ; @BMAC_CONTROL_RX_ENABLE
	.no_dead_strip	_bnx2x_set_bmac_rx
.subsections_via_symbols
