	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_init_platform
_ath9k_init_platform:                   ## @ath9k_init_platform
	.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
	movq	%rdi, %r12
	movq	(%rdi), %r15
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	movq	%r15, %rdi
	callq	_ath9k_hw_common
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.1:
	movq	%rax, %r14
	cmpl	$0, 68(%rbx)
	jne	LBB0_4
## %bb.2:
	movq	_AH_USE_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	8(%r15), %eax
	movl	%eax, 8(%r15)
	movups	52(%rbx), %xmm0
	movups	%xmm0, 28(%r15)
	movups	36(%rbx), %xmm0
	movups	%xmm0, 12(%r15)
	cmpl	$0, 32(%rbx)
	jne	LBB0_4
## %bb.3:
	movq	_AH_NO_EEP_SWAP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 8(%r15)
LBB0_4:
	movq	24(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_ath9k_eeprom_request
	testl	%eax, %eax
	jne	LBB0_13
LBB0_6:
	cmpq	$0, 16(%rbx)
	je	LBB0_8
## %bb.7:
	movl	$1, (%r15)
LBB0_8:
	cmpq	$0, 8(%rbx)
	je	LBB0_10
## %bb.9:
	movl	$1, 4(%r15)
LBB0_10:
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.11:
	movl	(%r14), %edi
	callq	_ether_addr_copy
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AH_USE_EEPROM,4,2              ## @AH_USE_EEPROM
	.comm	_AH_NO_EEP_SWAP,4,2             ## @AH_NO_EEP_SWAP
	.no_dead_strip	_ath9k_init_platform
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_init_platform
_ath9k_init_platform:                   ; @ath9k_init_platform
	.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	x21, x0
	ldp	x20, x8, [x0]
	ldr	x22, [x8]
	mov	x0, x20
	bl	_ath9k_hw_common
	cbz	x22, LBB0_11
; %bb.1:
	mov	x19, x0
	ldr	w8, [x22, #68]
	cbnz	w8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _AH_USE_EEPROM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AH_USE_EEPROM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	bic	w8, w9, w8
	str	w8, [x20, #8]
	ldur	q0, [x22, #52]
	stur	q0, [x20, #28]
	ldur	q0, [x22, #36]
	stur	q0, [x20, #12]
	ldr	w9, [x22, #32]
	cbz	w9, LBB0_13
LBB0_3:
	ldr	x1, [x22, #24]
	cbz	x1, LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_ath9k_eeprom_request
	cbnz	w0, LBB0_12
LBB0_5:
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_7
; %bb.6:
	mov	w8, #1
	str	w8, [x20]
LBB0_7:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	w8, #1
	str	w8, [x20, #4]
LBB0_9:
	ldr	x1, [x22]
	cbz	x1, LBB0_11
; %bb.10:
	ldr	w0, [x19]
	bl	_ether_addr_copy
LBB0_11:
	mov	w0, #0
LBB0_12:
	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_13:
Lloh3:
	adrp	x9, _AH_NO_EEP_SWAP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AH_NO_EEP_SWAP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20, #8]
	ldr	x1, [x22, #24]
	cbnz	x1, LBB0_4
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AH_USE_EEPROM,4,2              ; @AH_USE_EEPROM
	.comm	_AH_NO_EEP_SWAP,4,2             ; @AH_NO_EEP_SWAP
	.no_dead_strip	_ath9k_init_platform
.subsections_via_symbols
