	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_nvram_lock
_tg3_nvram_lock:                        ## @tg3_nvram_lock
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_NVRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tg3_flag
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	cmpq	$0, (%r12)
	je	LBB0_2
LBB0_7:
	incq	(%r12)
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_NVRAM_SWARB@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_SWARB_REQ_SET1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tw32
	movl	$8000, %ebx                     ## imm = 0x1F40
	movq	_SWARB_GNT1@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_tr32
	testl	%eax, (%r13)
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$20, %edi
	callq	_udelay
	decl	%ebx
	jne	LBB0_3
## %bb.5:
	movl	(%r15), %edi
	movq	_SWARB_REQ_CLR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tw32
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_NVRAM,4,2                      ## @NVRAM
	.comm	_NVRAM_SWARB,4,2                ## @NVRAM_SWARB
	.comm	_SWARB_REQ_SET1,4,2             ## @SWARB_REQ_SET1
	.comm	_SWARB_GNT1,4,2                 ## @SWARB_GNT1
	.comm	_SWARB_REQ_CLR1,4,2             ## @SWARB_REQ_CLR1
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_tg3_nvram_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_nvram_lock
_tg3_nvram_lock:                        ; @tg3_nvram_lock
	.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, x0
Lloh0:
	adrp	x8, _NVRAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVRAM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_tg3_flag
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_4
LBB0_2:
	mov	w0, #0
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
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
LBB0_4:
Lloh3:
	adrp	x20, _NVRAM_SWARB@GOTPAGE
Lloh4:
	ldr	x20, [x20, _NVRAM_SWARB@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh5:
	adrp	x8, _SWARB_REQ_SET1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SWARB_REQ_SET1@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_tw32
	mov	w21, #8000
Lloh8:
	adrp	x22, _SWARB_GNT1@GOTPAGE
Lloh9:
	ldr	x22, [x22, _SWARB_GNT1@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_tr32
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #20
	bl	_udelay
	subs	w21, w21, #1
	b.ne	LBB0_5
; %bb.7:
	ldr	w0, [x20]
Lloh10:
	adrp	x8, _SWARB_REQ_CLR1@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SWARB_REQ_CLR1@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_tw32
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_NVRAM,4,2                      ; @NVRAM
	.comm	_NVRAM_SWARB,4,2                ; @NVRAM_SWARB
	.comm	_SWARB_REQ_SET1,4,2             ; @SWARB_REQ_SET1
	.comm	_SWARB_GNT1,4,2                 ; @SWARB_GNT1
	.comm	_SWARB_REQ_CLR1,4,2             ; @SWARB_REQ_CLR1
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_tg3_nvram_lock
.subsections_via_symbols
