	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9300_otp_read_word
_ar9300_otp_read_word:                  ## @ar9300_otp_read_word
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	_AR9300_OTP_BASE@GOTPCREL(%rip), %rax
	shll	$2, %esi
	movslq	%esi, %rsi
	addq	(%rax), %rsi
	callq	_REG_READ
	movq	_AR9300_OTP_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR9300_OTP_STATUS_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AR9300_OTP_STATUS_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	$1000, %r8d                     ## imm = 0x3E8
	callq	_ath9k_hw_wait
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_AR9300_OTP_READ_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_REG_READ
	movl	%eax, (%r14)
	movl	$1, %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR9300_OTP_BASE,8,3            ## @AR9300_OTP_BASE
	.comm	_AR9300_OTP_STATUS,4,2          ## @AR9300_OTP_STATUS
	.comm	_AR9300_OTP_STATUS_TYPE,4,2     ## @AR9300_OTP_STATUS_TYPE
	.comm	_AR9300_OTP_STATUS_VALID,4,2    ## @AR9300_OTP_STATUS_VALID
	.comm	_AR9300_OTP_READ_DATA,8,3       ## @AR9300_OTP_READ_DATA
	.no_dead_strip	_ar9300_otp_read_word
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9300_otp_read_word
_ar9300_otp_read_word:                  ; @ar9300_otp_read_word
	.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, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _AR9300_OTP_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR9300_OTP_BASE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsl	w9, w1, #2
	add	x1, x8, w9, sxtw
	bl	_REG_READ
Lloh3:
	adrp	x8, _AR9300_OTP_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR9300_OTP_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _AR9300_OTP_STATUS_TYPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AR9300_OTP_STATUS_TYPE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _AR9300_OTP_STATUS_VALID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AR9300_OTP_STATUS_VALID@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w4, #1000
	bl	_ath9k_hw_wait
	cbz	w0, LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _AR9300_OTP_READ_DATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AR9300_OTP_READ_DATA@GOTPAGEOFF]
Lloh14:
	ldr	x1, [x8]
	mov	x0, x20
	bl	_REG_READ
	str	w0, [x19]
	mov	w0, #1
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AR9300_OTP_BASE,8,3            ; @AR9300_OTP_BASE
	.comm	_AR9300_OTP_STATUS,4,2          ; @AR9300_OTP_STATUS
	.comm	_AR9300_OTP_STATUS_TYPE,4,2     ; @AR9300_OTP_STATUS_TYPE
	.comm	_AR9300_OTP_STATUS_VALID,4,2    ; @AR9300_OTP_STATUS_VALID
	.comm	_AR9300_OTP_READ_DATA,8,3       ; @AR9300_OTP_READ_DATA
	.no_dead_strip	_ar9300_otp_read_word
.subsections_via_symbols
