	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_nvram_unlock
_tg3_nvram_unlock:                      ## @tg3_nvram_unlock
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_NVRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tg3_flag
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %rax
	testq	%rax, %rax
	jle	LBB0_3
## %bb.2:
	decq	%rax
	movq	%rax, (%rbx)
LBB0_3:
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movq	_NVRAM_SWARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SWARB_REQ_CLR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_tw32_f                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NVRAM,4,2                      ## @NVRAM
	.comm	_NVRAM_SWARB,4,2                ## @NVRAM_SWARB
	.comm	_SWARB_REQ_CLR1,4,2             ## @SWARB_REQ_CLR1
	.no_dead_strip	_tg3_nvram_unlock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_nvram_unlock
_tg3_nvram_unlock:                      ; @tg3_nvram_unlock
	.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, _NVRAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVRAM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_tg3_flag
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x19]
	subs	x9, x8, #1
	b.lt	LBB0_3
; %bb.2:
	str	x9, [x19]
	mov	x8, x9
LBB0_3:
	cbz	x8, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh3:
	adrp	x8, _NVRAM_SWARB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVRAM_SWARB@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _SWARB_REQ_CLR1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SWARB_REQ_CLR1@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tw32_f
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NVRAM,4,2                      ; @NVRAM
	.comm	_NVRAM_SWARB,4,2                ; @NVRAM_SWARB
	.comm	_SWARB_REQ_CLR1,4,2             ; @SWARB_REQ_CLR1
	.no_dead_strip	_tg3_nvram_unlock
.subsections_via_symbols
