	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_read_otp_phycfg
_tg3_read_otp_phycfg:                   ## @tg3_read_otp_phycfg
	.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, %rbx
	movq	_OTP_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OTP_MODE_OTP_THRU_GRC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tw32
	movq	_OTP_CTRL_OTP_CMD_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_tg3_issue_otp_command
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	_OTP_ADDRESS@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_OTP_ADDRESS_MAGIC1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tw32
	movq	_OTP_CTRL_OTP_CMD_READ@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_tg3_issue_otp_command
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	_OTP_READ_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tr32
	movl	%eax, %r15d
	movl	(%r12), %edi
	movq	_OTP_ADDRESS_MAGIC2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tw32
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_tg3_issue_otp_command
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_OTP_READ_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tr32
	movl	%eax, %r14d
	shll	$16, %r15d
	sarl	$16, %r14d
	orl	%r15d, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OTP_MODE,4,2                   ## @OTP_MODE
	.comm	_OTP_MODE_OTP_THRU_GRC,4,2      ## @OTP_MODE_OTP_THRU_GRC
	.comm	_OTP_CTRL_OTP_CMD_INIT,4,2      ## @OTP_CTRL_OTP_CMD_INIT
	.comm	_OTP_ADDRESS,4,2                ## @OTP_ADDRESS
	.comm	_OTP_ADDRESS_MAGIC1,4,2         ## @OTP_ADDRESS_MAGIC1
	.comm	_OTP_CTRL_OTP_CMD_READ,4,2      ## @OTP_CTRL_OTP_CMD_READ
	.comm	_OTP_READ_DATA,4,2              ## @OTP_READ_DATA
	.comm	_OTP_ADDRESS_MAGIC2,4,2         ## @OTP_ADDRESS_MAGIC2
	.no_dead_strip	_tg3_read_otp_phycfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_read_otp_phycfg
_tg3_read_otp_phycfg:                   ; @tg3_read_otp_phycfg
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
Lloh0:
	adrp	x8, _OTP_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OTP_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _OTP_MODE_OTP_THRU_GRC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OTP_MODE_OTP_THRU_GRC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_tw32
Lloh6:
	adrp	x8, _OTP_CTRL_OTP_CMD_INIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OTP_CTRL_OTP_CMD_INIT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tg3_issue_otp_command
	cbnz	x0, LBB0_3
; %bb.1:
Lloh9:
	adrp	x21, _OTP_ADDRESS@GOTPAGE
Lloh10:
	ldr	x21, [x21, _OTP_ADDRESS@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh11:
	adrp	x8, _OTP_ADDRESS_MAGIC1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OTP_ADDRESS_MAGIC1@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_tw32
Lloh14:
	adrp	x22, _OTP_CTRL_OTP_CMD_READ@GOTPAGE
Lloh15:
	ldr	x22, [x22, _OTP_CTRL_OTP_CMD_READ@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_tg3_issue_otp_command
	cbnz	x0, LBB0_3
; %bb.2:
Lloh16:
	adrp	x23, _OTP_READ_DATA@GOTPAGE
Lloh17:
	ldr	x23, [x23, _OTP_READ_DATA@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_tr32
	mov	x20, x0
	ldr	w0, [x21]
Lloh18:
	adrp	x8, _OTP_ADDRESS_MAGIC2@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OTP_ADDRESS_MAGIC2@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_tw32
	ldr	w1, [x22]
	mov	x0, x19
	bl	_tg3_issue_otp_command
	cbz	x0, LBB0_5
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w0, [x23]
	bl	_tr32
	asr	w8, w0, #16
	orr	w0, w8, w20, lsl #16
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_OTP_MODE,4,2                   ; @OTP_MODE
	.comm	_OTP_MODE_OTP_THRU_GRC,4,2      ; @OTP_MODE_OTP_THRU_GRC
	.comm	_OTP_CTRL_OTP_CMD_INIT,4,2      ; @OTP_CTRL_OTP_CMD_INIT
	.comm	_OTP_ADDRESS,4,2                ; @OTP_ADDRESS
	.comm	_OTP_ADDRESS_MAGIC1,4,2         ; @OTP_ADDRESS_MAGIC1
	.comm	_OTP_CTRL_OTP_CMD_READ,4,2      ; @OTP_CTRL_OTP_CMD_READ
	.comm	_OTP_READ_DATA,4,2              ; @OTP_READ_DATA
	.comm	_OTP_ADDRESS_MAGIC2,4,2         ; @OTP_ADDRESS_MAGIC2
	.no_dead_strip	_tg3_read_otp_phycfg
.subsections_via_symbols
