	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath_pci_eeprom_read
_ath_pci_eeprom_read:                   ## @ath_pci_eeprom_read
	.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	%rdx, %r14
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	8(%rdi), %r15
	movq	_AR5416_EEPROM_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	movq	_AR5416_EEPROM_OFFSET@GOTPCREL(%rip), %rcx
	movslq	%esi, %rsi
	addq	(%rcx), %rsi
	movq	%r15, %rdi
	callq	*(%rax)
	movq	_AR_EEPROM_STATUS_DATA@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movq	_AR_EEPROM_STATUS_DATA_BUSY@GOTPCREL(%rip), %rax
	movq	_AR_EEPROM_STATUS_DATA_PROT_ACCESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_AH_WAIT_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_ath9k_hw_wait
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	(%r12), %rax
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	*(%rax)
	movq	_AR_EEPROM_STATUS_DATA_VAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_MS
	movl	%eax, (%r14)
	movl	$1, %ebx
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5416_EEPROM_OFFSET,8,3       ## @AR5416_EEPROM_OFFSET
	.comm	_AR5416_EEPROM_S,4,2            ## @AR5416_EEPROM_S
	.comm	_AR_EEPROM_STATUS_DATA,8,3      ## @AR_EEPROM_STATUS_DATA
	.comm	_AR_EEPROM_STATUS_DATA_BUSY,4,2 ## @AR_EEPROM_STATUS_DATA_BUSY
	.comm	_AR_EEPROM_STATUS_DATA_PROT_ACCESS,4,2 ## @AR_EEPROM_STATUS_DATA_PROT_ACCESS
	.comm	_AH_WAIT_TIMEOUT,4,2            ## @AH_WAIT_TIMEOUT
	.comm	_AR_EEPROM_STATUS_DATA_VAL,4,2  ## @AR_EEPROM_STATUS_DATA_VAL
	.no_dead_strip	_ath_pci_eeprom_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath_pci_eeprom_read
_ath_pci_eeprom_read:                   ; @ath_pci_eeprom_read
	.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, x2
	mov	x21, x0
	ldp	x8, x20, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _AR5416_EEPROM_OFFSET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AR5416_EEPROM_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _AR5416_EEPROM_S@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AR5416_EEPROM_S@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	lsl	w10, w1, w10
	add	x1, x9, w10, sxtw
	mov	x0, x20
	blr	x8
Lloh6:
	adrp	x22, _AR_EEPROM_STATUS_DATA@GOTPAGE
Lloh7:
	ldr	x22, [x22, _AR_EEPROM_STATUS_DATA@GOTPAGEOFF]
	ldr	x1, [x22]
Lloh8:
	adrp	x8, _AR_EEPROM_STATUS_DATA_BUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AR_EEPROM_STATUS_DATA_BUSY@GOTPAGEOFF]
Lloh10:
	adrp	x9, _AR_EEPROM_STATUS_DATA_PROT_ACCESS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AR_EEPROM_STATUS_DATA_PROT_ACCESS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh14:
	adrp	x8, _AH_WAIT_TIMEOUT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AH_WAIT_TIMEOUT@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
	mov	x0, x20
	mov	w3, #0
	bl	_ath9k_hw_wait
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x1, [x22]
	mov	x0, x20
	blr	x8
Lloh17:
	adrp	x8, _AR_EEPROM_STATUS_DATA_VAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AR_EEPROM_STATUS_DATA_VAL@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_MS
	str	w0, [x19]
	mov	w0, #1
LBB0_2:
	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 AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5416_EEPROM_OFFSET,8,3       ; @AR5416_EEPROM_OFFSET
	.comm	_AR5416_EEPROM_S,4,2            ; @AR5416_EEPROM_S
	.comm	_AR_EEPROM_STATUS_DATA,8,3      ; @AR_EEPROM_STATUS_DATA
	.comm	_AR_EEPROM_STATUS_DATA_BUSY,4,2 ; @AR_EEPROM_STATUS_DATA_BUSY
	.comm	_AR_EEPROM_STATUS_DATA_PROT_ACCESS,4,2 ; @AR_EEPROM_STATUS_DATA_PROT_ACCESS
	.comm	_AH_WAIT_TIMEOUT,4,2            ; @AH_WAIT_TIMEOUT
	.comm	_AR_EEPROM_STATUS_DATA_VAL,4,2  ; @AR_EEPROM_STATUS_DATA_VAL
	.no_dead_strip	_ath_pci_eeprom_read
.subsections_via_symbols
