	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_prev_unload_close_umac
_bnx2x_prev_unload_close_umac:          ## @bnx2x_prev_unload_close_umac
	.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
	movq	%rcx, %r15
	movl	%esi, %ebx
	movq	_MISC_REGISTERS_RESET_REG_2_UMAC0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	testl	%edx, %eax
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_BNX2X_DEV_INFO
	testl	%ebx, %ebx
	jne	LBB0_3
## %bb.4:
	movq	_GRCBASE_UMAC0@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movq	_GRCBASE_UMAC1@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	movq	_UMAC_REG_COMMAND_CONFIG@GOTPCREL(%rip), %rax
	addl	(%rax), %esi
	movq	(%r15), %rax
	movslq	%ebx, %rbx
	movl	%esi, (%rax,%rbx,4)
	movq	%r14, %rdi
	callq	_REG_RD
	movq	8(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_REG_WR
	movl	$1, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MISC_REGISTERS_RESET_REG_2_UMAC0,4,2 ## @MISC_REGISTERS_RESET_REG_2_UMAC0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Disable umac Rx %02x\n"

	.comm	_GRCBASE_UMAC1,4,2              ## @GRCBASE_UMAC1
	.comm	_GRCBASE_UMAC0,4,2              ## @GRCBASE_UMAC0
	.comm	_UMAC_REG_COMMAND_CONFIG,4,2    ## @UMAC_REG_COMMAND_CONFIG
	.no_dead_strip	_bnx2x_prev_unload_close_umac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_prev_unload_close_umac
_bnx2x_prev_unload_close_umac:          ; @bnx2x_prev_unload_close_umac
	.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
Lloh0:
	adrp	x8, _MISC_REGISTERS_RESET_REG_2_UMAC0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MISC_REGISTERS_RESET_REG_2_UMAC0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w8, w1
	tst	w8, w2
	b.eq	LBB0_2
; %bb.1:
	mov	x20, x3
	mov	x21, x1
	mov	x19, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BNX2X_DEV_INFO
Lloh5:
	adrp	x8, _GRCBASE_UMAC1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GRCBASE_UMAC1@GOTPAGEOFF]
Lloh7:
	adrp	x9, _GRCBASE_UMAC0@GOTPAGE
Lloh8:
	ldr	x9, [x9, _GRCBASE_UMAC0@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _UMAC_REG_COMMAND_CONFIG@GOTPAGE
Lloh10:
	ldr	x9, [x9, _UMAC_REG_COMMAND_CONFIG@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	add	w1, w8, w9
	ldr	x8, [x20]
	sbfiz	x21, x21, #2, #32
	str	w1, [x8, x21]
	mov	x0, x19
	bl	_REG_RD
	ldp	x9, x8, [x20]
	str	w0, [x8, x21]
	ldr	w1, [x9, x21]
	mov	x0, x19
	mov	w2, #0
	bl	_REG_WR
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MISC_REGISTERS_RESET_REG_2_UMAC0,4,2 ; @MISC_REGISTERS_RESET_REG_2_UMAC0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Disable umac Rx %02x\n"

	.comm	_GRCBASE_UMAC1,4,2              ; @GRCBASE_UMAC1
	.comm	_GRCBASE_UMAC0,4,2              ; @GRCBASE_UMAC0
	.comm	_UMAC_REG_COMMAND_CONFIG,4,2    ; @UMAC_REG_COMMAND_CONFIG
	.no_dead_strip	_bnx2x_prev_unload_close_umac
.subsections_via_symbols
