	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_issue_otp_command
_tg3_issue_otp_command:                 ## @tg3_issue_otp_command
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	_OTP_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_OTP_CTRL_OTP_CMD_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%ebx, %esi
	callq	_tw32
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_tw32
	movl	$100, %ebx
	movq	_OTP_STATUS@GOTPCREL(%rip), %r12
	movq	_OTP_STATUS_CMD_DONE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_tr32
	testl	%eax, (%r14)
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r15d
	movl	$10, %edi
	callq	_udelay
	decl	%ebx
	jne	LBB0_1
## %bb.4:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	testl	%r15d, (%r14)
	cmovnel	%edx, %eax
	jmp	LBB0_5
LBB0_2:
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OTP_CTRL,4,2                   ## @OTP_CTRL
	.comm	_OTP_CTRL_OTP_CMD_START,4,2     ## @OTP_CTRL_OTP_CMD_START
	.comm	_OTP_STATUS,4,2                 ## @OTP_STATUS
	.comm	_OTP_STATUS_CMD_DONE,4,2        ## @OTP_STATUS_CMD_DONE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_tg3_issue_otp_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_issue_otp_command
_tg3_issue_otp_command:                 ; @tg3_issue_otp_command
	.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
Lloh0:
	adrp	x20, _OTP_CTRL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _OTP_CTRL@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _OTP_CTRL_OTP_CMD_START@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OTP_CTRL_OTP_CMD_START@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w1, w8, w1
	bl	_tw32
	ldr	w0, [x20]
	mov	x1, x19
	bl	_tw32
	mov	w20, #100
Lloh5:
	adrp	x22, _OTP_STATUS@GOTPAGE
Lloh6:
	ldr	x22, [x22, _OTP_STATUS@GOTPAGEOFF]
Lloh7:
	adrp	x21, _OTP_STATUS_CMD_DONE@GOTPAGE
Lloh8:
	ldr	x21, [x21, _OTP_STATUS_CMD_DONE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_tr32
	ldr	w8, [x21]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x19, x0
	mov	w0, #10
	bl	_udelay
	subs	w20, w20, #1
	b.ne	LBB0_1
; %bb.3:
	ldr	w8, [x21]
Lloh9:
	adrp	x9, _EBUSY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EBUSY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w8, w19
	csneg	w0, wzr, w9, ne
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	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 AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_OTP_CTRL,4,2                   ; @OTP_CTRL
	.comm	_OTP_CTRL_OTP_CMD_START,4,2     ; @OTP_CTRL_OTP_CMD_START
	.comm	_OTP_STATUS,4,2                 ; @OTP_STATUS
	.comm	_OTP_STATUS_CMD_DONE,4,2        ; @OTP_STATUS_CMD_DONE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_tg3_issue_otp_command
.subsections_via_symbols
