	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_init_upload
_ath6kl_init_upload:                    ## @ath6kl_init_upload
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	_TARGET_TYPE_AR6003@GOTPCREL(%rip), %rcx
	movq	_TARGET_TYPE_AR6004@GOTPCREL(%rip), %r15
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	cmpq	(%r15), %rax
	je	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_24
LBB0_3:
	movq	_MBOX_BASE_ADDRESS@GOTPCREL(%rip), %rax
	movq	_LOCAL_SCRATCH_ADDRESS@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	addl	(%rax), %ebx
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_ath6kl_bmi_reg_read
	testl	%eax, %eax
	jne	LBB0_24
## %bb.4:
	movl	-44(%rbp), %ecx
	movq	_ATH6KL_OPTION_SLEEP_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	orl	%ecx, %edx
	movl	%edx, -44(%rbp)
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_ath6kl_bmi_reg_write
	testl	%eax, %eax
	jne	LBB0_24
## %bb.5:
	movq	_RTC_BASE_ADDRESS@GOTPCREL(%rip), %rax
	movq	_SYSTEM_SLEEP_ADDRESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	addl	(%rax), %r12d
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_ath6kl_bmi_reg_read
	testl	%eax, %eax
	jne	LBB0_24
## %bb.6:
	movl	-44(%rbp), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_SYSTEM_SLEEP_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_SM
	orl	-44(%rbp), %eax
	movl	%eax, -44(%rbp)
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_ath6kl_bmi_reg_write
	testl	%eax, %eax
	je	LBB0_7
LBB0_24:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ATH6KL_DBG_TRC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_ath6kl_dbg
	movq	(%r13), %rax
	cmpq	(%r15), %rax
	jne	LBB0_8
LBB0_10:
	movl	$0, -44(%rbp)
	movq	_LPO_CAL_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_RTC_BASE_ADDRESS@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movq	_LPO_CAL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_SM
	movl	%eax, -44(%rbp)
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_ath6kl_bmi_reg_write
	testl	%eax, %eax
	jne	LBB0_24
## %bb.11:
	movq	_ATH6KL_HW_SDIO_CRC_ERROR_WAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r13)
	je	LBB0_17
## %bb.12:
	leaq	L_.str.1(%rip), %rdi
	callq	_ath6kl_err
	movl	$40, -44(%rbp)
	movq	_GPIO_BASE_ADDRESS@GOTPCREL(%rip), %rbx
	movq	_GPIO_PIN9_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	(%rbx), %esi
	movq	%r13, %rdi
	movl	$40, %edx
	callq	_ath6kl_bmi_reg_write
	testl	%eax, %eax
	jne	LBB0_24
## %bb.13:
	movl	$32, -44(%rbp)
	movq	_GPIO_PIN10_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	(%rbx), %esi
	movq	%r13, %rdi
	movl	$32, %edx
	callq	_ath6kl_bmi_reg_write
	testl	%eax, %eax
	jne	LBB0_24
## %bb.14:
	movq	_GPIO_PIN11_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	(%rbx), %esi
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	callq	_ath6kl_bmi_reg_write
	testl	%eax, %eax
	jne	LBB0_24
## %bb.15:
	movq	_GPIO_PIN12_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	(%rbx), %esi
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	callq	_ath6kl_bmi_reg_write
	testl	%eax, %eax
	jne	LBB0_24
## %bb.16:
	movq	_GPIO_PIN13_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	(%rbx), %esi
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	callq	_ath6kl_bmi_reg_write
	testl	%eax, %eax
	jne	LBB0_24
LBB0_17:
	movq	%r13, %rdi
	callq	_ath6kl_upload_board_file
	testl	%eax, %eax
	jne	LBB0_24
## %bb.18:
	movq	%r13, %rdi
	callq	_ath6kl_upload_otp
	testl	%eax, %eax
	jne	LBB0_24
## %bb.19:
	movq	%r13, %rdi
	callq	_ath6kl_upload_firmware
	testl	%eax, %eax
	jne	LBB0_24
## %bb.20:
	movq	%r13, %rdi
	callq	_ath6kl_upload_patch
	testl	%eax, %eax
	jne	LBB0_24
## %bb.21:
	movq	%r13, %rdi
	callq	_ath6kl_upload_testscript
	testl	%eax, %eax
	jne	LBB0_24
## %bb.22:
	movq	_SYSTEM_SLEEP_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RTC_BASE_ADDRESS@GOTPCREL(%rip), %rax
	addl	(%rax), %esi
	movq	%r13, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_ath6kl_bmi_reg_write
	testl	%eax, %eax
	jne	LBB0_24
## %bb.23:
	movl	(%r14), %esi
	movq	_MBOX_BASE_ADDRESS@GOTPCREL(%rip), %rax
	addl	(%rax), %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	orl	$32, %edx
	movl	%edx, -44(%rbp)
	movq	%r13, %rdi
	callq	_ath6kl_bmi_reg_write
	jmp	LBB0_24
LBB0_8:
	movq	_ATH6KL_ANALOG_PLL_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$-116375551, %edx               ## imm = 0xF9104001
	callq	_ath6kl_bmi_reg_write
	testl	%eax, %eax
	jne	LBB0_24
## %bb.9:
	movq	_CPU_CLOCK_STANDARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_SM
	movl	%eax, -44(%rbp)
	movq	_CPU_CLOCK_ADDRESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_RTC_BASE_ADDRESS@GOTPCREL(%rip), %rcx
	addl	(%rcx), %esi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_ath6kl_bmi_reg_write
	testl	%eax, %eax
	jne	LBB0_24
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_TARGET_TYPE_AR6003,8,3         ## @TARGET_TYPE_AR6003
	.comm	_TARGET_TYPE_AR6004,8,3         ## @TARGET_TYPE_AR6004
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MBOX_BASE_ADDRESS,4,2          ## @MBOX_BASE_ADDRESS
	.comm	_LOCAL_SCRATCH_ADDRESS,4,2      ## @LOCAL_SCRATCH_ADDRESS
	.comm	_ATH6KL_OPTION_SLEEP_DISABLE,4,2 ## @ATH6KL_OPTION_SLEEP_DISABLE
	.comm	_RTC_BASE_ADDRESS,4,2           ## @RTC_BASE_ADDRESS
	.comm	_SYSTEM_SLEEP_ADDRESS,4,2       ## @SYSTEM_SLEEP_ADDRESS
	.comm	_SYSTEM_SLEEP_DISABLE,4,2       ## @SYSTEM_SLEEP_DISABLE
	.comm	_ATH6KL_DBG_TRC,4,2             ## @ATH6KL_DBG_TRC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"old options: %d, old sleep: %d\n"

	.comm	_ATH6KL_ANALOG_PLL_REGISTER,4,2 ## @ATH6KL_ANALOG_PLL_REGISTER
	.comm	_CPU_CLOCK_STANDARD,4,2         ## @CPU_CLOCK_STANDARD
	.comm	_CPU_CLOCK_ADDRESS,4,2          ## @CPU_CLOCK_ADDRESS
	.comm	_LPO_CAL_ADDRESS,4,2            ## @LPO_CAL_ADDRESS
	.comm	_LPO_CAL_ENABLE,4,2             ## @LPO_CAL_ENABLE
	.comm	_ATH6KL_HW_SDIO_CRC_ERROR_WAR,4,2 ## @ATH6KL_HW_SDIO_CRC_ERROR_WAR
L_.str.1:                               ## @.str.1
	.asciz	"temporary war to avoid sdio crc error\n"

	.comm	_GPIO_BASE_ADDRESS,4,2          ## @GPIO_BASE_ADDRESS
	.comm	_GPIO_PIN9_ADDRESS,4,2          ## @GPIO_PIN9_ADDRESS
	.comm	_GPIO_PIN10_ADDRESS,4,2         ## @GPIO_PIN10_ADDRESS
	.comm	_GPIO_PIN11_ADDRESS,4,2         ## @GPIO_PIN11_ADDRESS
	.comm	_GPIO_PIN12_ADDRESS,4,2         ## @GPIO_PIN12_ADDRESS
	.comm	_GPIO_PIN13_ADDRESS,4,2         ## @GPIO_PIN13_ADDRESS
	.no_dead_strip	_ath6kl_init_upload
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_init_upload
_ath6kl_init_upload:                    ; @ath6kl_init_upload
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _TARGET_TYPE_AR6003@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TARGET_TYPE_AR6003@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x27, _TARGET_TYPE_AR6004@GOTPAGE
Lloh4:
	ldr	x27, [x27, _TARGET_TYPE_AR6004@GOTPAGEOFF]
	ldr	x10, [x27]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_20
; %bb.1:
	mov	x19, x0
Lloh5:
	adrp	x23, _MBOX_BASE_ADDRESS@GOTPAGE
Lloh6:
	ldr	x23, [x23, _MBOX_BASE_ADDRESS@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh7:
	adrp	x24, _LOCAL_SCRATCH_ADDRESS@GOTPAGE
Lloh8:
	ldr	x24, [x24, _LOCAL_SCRATCH_ADDRESS@GOTPAGEOFF]
	ldr	w9, [x24]
	add	w21, w9, w8
	add	x2, sp, #12
	mov	x1, x21
	bl	_ath6kl_bmi_reg_read
	cbnz	w0, LBB0_21
; %bb.2:
	ldr	w20, [sp, #12]
Lloh9:
	adrp	x8, _ATH6KL_OPTION_SLEEP_DISABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATH6KL_OPTION_SLEEP_DISABLE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w2, w8, w20
	str	w2, [sp, #12]
	mov	x0, x19
	mov	x1, x21
	bl	_ath6kl_bmi_reg_write
	cbnz	w0, LBB0_21
; %bb.3:
Lloh12:
	adrp	x25, _RTC_BASE_ADDRESS@GOTPAGE
Lloh13:
	ldr	x25, [x25, _RTC_BASE_ADDRESS@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh14:
	adrp	x26, _SYSTEM_SLEEP_ADDRESS@GOTPAGE
Lloh15:
	ldr	x26, [x26, _SYSTEM_SLEEP_ADDRESS@GOTPAGEOFF]
	ldr	w9, [x26]
	add	w22, w9, w8
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x22
	bl	_ath6kl_bmi_reg_read
	cbnz	w0, LBB0_21
; %bb.4:
	ldr	w21, [sp, #12]
Lloh16:
	adrp	x8, _SYSTEM_SLEEP_DISABLE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SYSTEM_SLEEP_DISABLE@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_SM
	ldr	w8, [sp, #12]
	orr	w2, w8, w0
	str	w2, [sp, #12]
	mov	x0, x19
	mov	x1, x22
	bl	_ath6kl_bmi_reg_write
	cbnz	w0, LBB0_21
; %bb.5:
Lloh19:
	adrp	x8, _ATH6KL_DBG_TRC@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ATH6KL_DBG_TRC@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	bl	_ath6kl_dbg
	ldr	x8, [x19]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_22
LBB0_6:
	str	wzr, [sp, #12]
Lloh24:
	adrp	x8, _LPO_CAL_ADDRESS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _LPO_CAL_ADDRESS@GOTPAGEOFF]
	ldr	w9, [x25]
Lloh26:
	ldr	w8, [x8]
	add	w22, w8, w9
Lloh27:
	adrp	x8, _LPO_CAL_ENABLE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _LPO_CAL_ENABLE@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_SM
	mov	x2, x0
	str	w0, [sp, #12]
	mov	x0, x19
	mov	x1, x22
	bl	_ath6kl_bmi_reg_write
	cbnz	w0, LBB0_21
; %bb.7:
	ldr	w8, [x19, #8]
Lloh30:
	adrp	x9, _ATH6KL_HW_SDIO_CRC_ERROR_WAR@GOTPAGE
Lloh31:
	ldr	x9, [x9, _ATH6KL_HW_SDIO_CRC_ERROR_WAR@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.8:
Lloh33:
	adrp	x0, l_.str.1@PAGE
Lloh34:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ath6kl_err
	mov	w8, #40
Lloh35:
	adrp	x22, _GPIO_BASE_ADDRESS@GOTPAGE
Lloh36:
	ldr	x22, [x22, _GPIO_BASE_ADDRESS@GOTPAGEOFF]
	str	w8, [sp, #12]
	ldr	w8, [x22]
Lloh37:
	adrp	x9, _GPIO_PIN9_ADDRESS@GOTPAGE
Lloh38:
	ldr	x9, [x9, _GPIO_PIN9_ADDRESS@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	add	w1, w9, w8
	mov	x0, x19
	mov	w2, #40
	bl	_ath6kl_bmi_reg_write
	cbnz	w0, LBB0_21
; %bb.9:
	mov	w8, #32
	str	w8, [sp, #12]
	ldr	w8, [x22]
Lloh40:
	adrp	x9, _GPIO_PIN10_ADDRESS@GOTPAGE
Lloh41:
	ldr	x9, [x9, _GPIO_PIN10_ADDRESS@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	add	w1, w9, w8
	mov	x0, x19
	mov	w2, #32
	bl	_ath6kl_bmi_reg_write
	cbnz	w0, LBB0_21
; %bb.10:
	ldr	w8, [x22]
Lloh43:
	adrp	x9, _GPIO_PIN11_ADDRESS@GOTPAGE
Lloh44:
	ldr	x9, [x9, _GPIO_PIN11_ADDRESS@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	add	w1, w9, w8
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_ath6kl_bmi_reg_write
	cbnz	w0, LBB0_21
; %bb.11:
	ldr	w8, [x22]
Lloh46:
	adrp	x9, _GPIO_PIN12_ADDRESS@GOTPAGE
Lloh47:
	ldr	x9, [x9, _GPIO_PIN12_ADDRESS@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	add	w1, w9, w8
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_ath6kl_bmi_reg_write
	cbnz	w0, LBB0_21
; %bb.12:
	ldr	w8, [x22]
Lloh49:
	adrp	x9, _GPIO_PIN13_ADDRESS@GOTPAGE
Lloh50:
	ldr	x9, [x9, _GPIO_PIN13_ADDRESS@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	add	w1, w9, w8
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_ath6kl_bmi_reg_write
	cbnz	w0, LBB0_21
LBB0_13:
	mov	x0, x19
	bl	_ath6kl_upload_board_file
	cbnz	w0, LBB0_21
; %bb.14:
	mov	x0, x19
	bl	_ath6kl_upload_otp
	cbnz	w0, LBB0_21
; %bb.15:
	mov	x0, x19
	bl	_ath6kl_upload_firmware
	cbnz	w0, LBB0_21
; %bb.16:
	mov	x0, x19
	bl	_ath6kl_upload_patch
	cbnz	w0, LBB0_21
; %bb.17:
	mov	x0, x19
	bl	_ath6kl_upload_testscript
	cbnz	w0, LBB0_21
; %bb.18:
	ldr	w8, [x25]
	ldr	w9, [x26]
	add	w1, w9, w8
	mov	x0, x19
	mov	x2, x21
	bl	_ath6kl_bmi_reg_write
	cbnz	w0, LBB0_21
; %bb.19:
	ldr	w8, [x23]
	ldr	w9, [x24]
	add	w1, w9, w8
	orr	w2, w20, #0x20
	str	w2, [sp, #12]
	mov	x0, x19
	bl	_ath6kl_bmi_reg_write
	b	LBB0_21
LBB0_20:
Lloh52:
	adrp	x8, _EINVAL@GOTPAGE
Lloh53:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_21:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_22:
Lloh55:
	adrp	x8, _ATH6KL_ANALOG_PLL_REGISTER@GOTPAGE
Lloh56:
	ldr	x8, [x8, _ATH6KL_ANALOG_PLL_REGISTER@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #16385
	movk	w2, #63760, lsl #16
	bl	_ath6kl_bmi_reg_write
	cbnz	w0, LBB0_21
; %bb.23:
Lloh58:
	adrp	x8, _CPU_CLOCK_STANDARD@GOTPAGE
Lloh59:
	ldr	x8, [x8, _CPU_CLOCK_STANDARD@GOTPAGEOFF]
Lloh60:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_SM
	mov	x2, x0
	str	w0, [sp, #12]
	ldr	w8, [x25]
Lloh61:
	adrp	x9, _CPU_CLOCK_ADDRESS@GOTPAGE
Lloh62:
	ldr	x9, [x9, _CPU_CLOCK_ADDRESS@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x9]
	add	w1, w9, w8
	mov	x0, x19
	bl	_ath6kl_bmi_reg_write
	cbnz	w0, LBB0_21
	b	LBB0_6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
	.comm	_TARGET_TYPE_AR6003,8,3         ; @TARGET_TYPE_AR6003
	.comm	_TARGET_TYPE_AR6004,8,3         ; @TARGET_TYPE_AR6004
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MBOX_BASE_ADDRESS,4,2          ; @MBOX_BASE_ADDRESS
	.comm	_LOCAL_SCRATCH_ADDRESS,4,2      ; @LOCAL_SCRATCH_ADDRESS
	.comm	_ATH6KL_OPTION_SLEEP_DISABLE,4,2 ; @ATH6KL_OPTION_SLEEP_DISABLE
	.comm	_RTC_BASE_ADDRESS,4,2           ; @RTC_BASE_ADDRESS
	.comm	_SYSTEM_SLEEP_ADDRESS,4,2       ; @SYSTEM_SLEEP_ADDRESS
	.comm	_SYSTEM_SLEEP_DISABLE,4,2       ; @SYSTEM_SLEEP_DISABLE
	.comm	_ATH6KL_DBG_TRC,4,2             ; @ATH6KL_DBG_TRC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"old options: %d, old sleep: %d\n"

	.comm	_ATH6KL_ANALOG_PLL_REGISTER,4,2 ; @ATH6KL_ANALOG_PLL_REGISTER
	.comm	_CPU_CLOCK_STANDARD,4,2         ; @CPU_CLOCK_STANDARD
	.comm	_CPU_CLOCK_ADDRESS,4,2          ; @CPU_CLOCK_ADDRESS
	.comm	_LPO_CAL_ADDRESS,4,2            ; @LPO_CAL_ADDRESS
	.comm	_LPO_CAL_ENABLE,4,2             ; @LPO_CAL_ENABLE
	.comm	_ATH6KL_HW_SDIO_CRC_ERROR_WAR,4,2 ; @ATH6KL_HW_SDIO_CRC_ERROR_WAR
l_.str.1:                               ; @.str.1
	.asciz	"temporary war to avoid sdio crc error\n"

	.comm	_GPIO_BASE_ADDRESS,4,2          ; @GPIO_BASE_ADDRESS
	.comm	_GPIO_PIN9_ADDRESS,4,2          ; @GPIO_PIN9_ADDRESS
	.comm	_GPIO_PIN10_ADDRESS,4,2         ; @GPIO_PIN10_ADDRESS
	.comm	_GPIO_PIN11_ADDRESS,4,2         ; @GPIO_PIN11_ADDRESS
	.comm	_GPIO_PIN12_ADDRESS,4,2         ; @GPIO_PIN12_ADDRESS
	.comm	_GPIO_PIN13_ADDRESS,4,2         ; @GPIO_PIN13_ADDRESS
	.no_dead_strip	_ath6kl_init_upload
.subsections_via_symbols
