	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ath6kl_configure_target
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_1:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
LCPI0_2:
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
LCPI0_3:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
LCPI0_4:
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
LCPI0_5:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ath6kl_configure_target
	.p2align	4, 0x90
_ath6kl_configure_target:               ## @ath6kl_configure_target
	.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, %r14
	movq	_ATH6KL_CONF_UART_DEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	xorl	%edx, %edx
	andl	(%rdi), %eax
	setne	%dl
	movq	_hi_serial_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ath6kl_bmi_write_hi32
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_65
LBB0_2:
	movl	4(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.3:
	movq	_HI_OPTION_FW_MODE_BSS_STA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_HI_OPTION_FW_MODE_BITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	xorl	%ecx, %ecx
	movl	$0, %r12d
	cmpl	$8, %eax
	jb	LBB0_10
## %bb.4:
	movl	%eax, %ecx
	andl	$-8, %ecx
	movd	%esi, %xmm0
	pshufd	$0, %xmm0, %xmm7                ## xmm7 = xmm0[0,0,0,0]
	movd	%edx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leal	-8(%rcx), %edi
	movl	%edi, %ebx
	shrl	$3, %ebx
	incl	%ebx
	testl	%edi, %edi
	je	LBB0_31
## %bb.5:
	movl	%ebx, %edi
	andl	$-2, %edi
	pxor	%xmm3, %xmm3
	movdqa	LCPI0_0(%rip), %xmm5            ## xmm5 = [0,1,2,3]
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = [4,4,4,4]
	movdqa	LCPI0_2(%rip), %xmm6            ## xmm6 = [1065353216,1065353216,1065353216,1065353216]
	movdqa	LCPI0_3(%rip), %xmm9            ## xmm9 = [8,8,8,8]
	movdqa	LCPI0_4(%rip), %xmm10           ## xmm10 = [12,12,12,12]
	movdqa	LCPI0_5(%rip), %xmm11           ## xmm11 = [16,16,16,16]
	pxor	%xmm4, %xmm4
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm5, %xmm2
	paddd	%xmm8, %xmm2
	movdqa	%xmm7, %xmm1
	pmulld	%xmm5, %xmm1
	pmulld	%xmm7, %xmm2
	pslld	$23, %xmm1
	paddd	%xmm6, %xmm1
	cvttps2dq	%xmm1, %xmm1
	pmulld	%xmm0, %xmm1
	por	%xmm3, %xmm1
	pslld	$23, %xmm2
	paddd	%xmm6, %xmm2
	cvttps2dq	%xmm2, %xmm2
	pmulld	%xmm0, %xmm2
	por	%xmm4, %xmm2
	movdqa	%xmm5, %xmm3
	paddd	%xmm9, %xmm3
	movdqa	%xmm5, %xmm4
	paddd	%xmm10, %xmm4
	pmulld	%xmm7, %xmm3
	pmulld	%xmm7, %xmm4
	pslld	$23, %xmm3
	paddd	%xmm6, %xmm3
	cvttps2dq	%xmm3, %xmm3
	pmulld	%xmm0, %xmm3
	por	%xmm1, %xmm3
	pslld	$23, %xmm4
	paddd	%xmm6, %xmm4
	cvttps2dq	%xmm4, %xmm4
	pmulld	%xmm0, %xmm4
	por	%xmm2, %xmm4
	paddd	%xmm11, %xmm5
	addl	$-2, %edi
	jne	LBB0_6
## %bb.7:
	testb	$1, %bl
	je	LBB0_9
LBB0_8:
	movdqa	%xmm7, %xmm1
	pmulld	%xmm5, %xmm1
	paddd	LCPI0_1(%rip), %xmm5
	pmulld	%xmm7, %xmm5
	pslld	$23, %xmm1
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = [1065353216,1065353216,1065353216,1065353216]
	paddd	%xmm2, %xmm1
	cvttps2dq	%xmm1, %xmm1
	pmulld	%xmm0, %xmm1
	por	%xmm1, %xmm3
	pslld	$23, %xmm5
	paddd	%xmm2, %xmm5
	cvttps2dq	%xmm5, %xmm1
	pmulld	%xmm0, %xmm1
	por	%xmm1, %xmm4
LBB0_9:
	por	%xmm4, %xmm3
	pshufd	$238, %xmm3, %xmm0              ## xmm0 = xmm3[2,3,2,3]
	por	%xmm3, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	por	%xmm0, %xmm1
	movd	%xmm1, %r12d
	cmpl	%ecx, %eax
	je	LBB0_13
LBB0_10:
	subl	%ecx, %eax
	imull	%esi, %ecx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%edx, %edi
	shll	%cl, %edi
	orl	%edi, %r12d
	addl	%esi, %ecx
	decl	%eax
	jne	LBB0_11
	jmp	LBB0_13
LBB0_12:
	xorl	%r12d, %r12d
LBB0_13:
	movq	_ATH6KL_FW_CAPABILITY_STA_P2PDEV_DUPLEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	64(%r14), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_24
## %bb.14:
	movl	4(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_29
## %bb.15:
	movq	_HI_OPTION_FW_SUBMODE_P2PDEV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_HI_OPTION_FW_SUBMODE_BITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	xorl	%ecx, %ecx
	movl	$0, %r15d
	cmpl	$8, %eax
	jb	LBB0_22
## %bb.16:
	movl	%eax, %ecx
	andl	$-8, %ecx
	movd	%esi, %xmm0
	pshufd	$0, %xmm0, %xmm7                ## xmm7 = xmm0[0,0,0,0]
	movd	%edx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leal	-8(%rcx), %edi
	movl	%edi, %ebx
	shrl	$3, %ebx
	incl	%ebx
	testl	%edi, %edi
	je	LBB0_32
## %bb.17:
	movl	%ebx, %edi
	andl	$-2, %edi
	pxor	%xmm3, %xmm3
	movdqa	LCPI0_0(%rip), %xmm5            ## xmm5 = [0,1,2,3]
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = [4,4,4,4]
	movdqa	LCPI0_2(%rip), %xmm6            ## xmm6 = [1065353216,1065353216,1065353216,1065353216]
	movdqa	LCPI0_3(%rip), %xmm9            ## xmm9 = [8,8,8,8]
	movdqa	LCPI0_4(%rip), %xmm10           ## xmm10 = [12,12,12,12]
	movdqa	LCPI0_5(%rip), %xmm11           ## xmm11 = [16,16,16,16]
	pxor	%xmm4, %xmm4
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm5, %xmm2
	paddd	%xmm8, %xmm2
	movdqa	%xmm7, %xmm1
	pmulld	%xmm5, %xmm1
	pmulld	%xmm7, %xmm2
	pslld	$23, %xmm1
	paddd	%xmm6, %xmm1
	cvttps2dq	%xmm1, %xmm1
	pmulld	%xmm0, %xmm1
	por	%xmm3, %xmm1
	pslld	$23, %xmm2
	paddd	%xmm6, %xmm2
	cvttps2dq	%xmm2, %xmm2
	pmulld	%xmm0, %xmm2
	por	%xmm4, %xmm2
	movdqa	%xmm5, %xmm3
	paddd	%xmm9, %xmm3
	movdqa	%xmm5, %xmm4
	paddd	%xmm10, %xmm4
	pmulld	%xmm7, %xmm3
	pmulld	%xmm7, %xmm4
	pslld	$23, %xmm3
	paddd	%xmm6, %xmm3
	cvttps2dq	%xmm3, %xmm3
	pmulld	%xmm0, %xmm3
	por	%xmm1, %xmm3
	pslld	$23, %xmm4
	paddd	%xmm6, %xmm4
	cvttps2dq	%xmm4, %xmm4
	pmulld	%xmm0, %xmm4
	por	%xmm2, %xmm4
	paddd	%xmm11, %xmm5
	addl	$-2, %edi
	jne	LBB0_18
## %bb.19:
	testb	$1, %bl
	je	LBB0_21
LBB0_20:
	movdqa	%xmm7, %xmm1
	pmulld	%xmm5, %xmm1
	paddd	LCPI0_1(%rip), %xmm5
	pmulld	%xmm7, %xmm5
	pslld	$23, %xmm1
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = [1065353216,1065353216,1065353216,1065353216]
	paddd	%xmm2, %xmm1
	cvttps2dq	%xmm1, %xmm1
	pmulld	%xmm0, %xmm1
	por	%xmm1, %xmm3
	pslld	$23, %xmm5
	paddd	%xmm2, %xmm5
	cvttps2dq	%xmm5, %xmm1
	pmulld	%xmm0, %xmm1
	por	%xmm1, %xmm4
LBB0_21:
	por	%xmm4, %xmm3
	pshufd	$238, %xmm3, %xmm0              ## xmm0 = xmm3[2,3,2,3]
	por	%xmm3, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	por	%xmm0, %xmm1
	movd	%xmm1, %r15d
	cmpl	%ecx, %eax
	je	LBB0_52
LBB0_22:
	subl	%ecx, %eax
	imull	%esi, %ecx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	%edx, %edi
	shll	%cl, %edi
	orl	%edi, %r15d
	addl	%esi, %ecx
	decl	%eax
	jne	LBB0_23
	jmp	LBB0_52
LBB0_24:
	movl	8(%r14), %edx
	testl	%edx, %edx
	jle	LBB0_30
## %bb.25:
	movq	_HI_OPTION_FW_SUBMODE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_HI_OPTION_FW_SUBMODE_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ecx, %ecx
	movl	$0, %edi
	cmpl	$8, %edx
	jb	LBB0_37
## %bb.26:
	movl	%edx, %ecx
	andl	$-8, %ecx
	movd	%esi, %xmm0
	pshufd	$0, %xmm0, %xmm7                ## xmm7 = xmm0[0,0,0,0]
	movd	%r8d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leal	-8(%rcx), %edi
	movl	%edi, %eax
	shrl	$3, %eax
	incl	%eax
	testl	%edi, %edi
	je	LBB0_33
## %bb.27:
	movl	%eax, %edi
	andl	$-2, %edi
	pxor	%xmm3, %xmm3
	movdqa	LCPI0_0(%rip), %xmm5            ## xmm5 = [0,1,2,3]
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = [4,4,4,4]
	movdqa	LCPI0_2(%rip), %xmm6            ## xmm6 = [1065353216,1065353216,1065353216,1065353216]
	movdqa	LCPI0_3(%rip), %xmm9            ## xmm9 = [8,8,8,8]
	movdqa	LCPI0_4(%rip), %xmm10           ## xmm10 = [12,12,12,12]
	movdqa	LCPI0_5(%rip), %xmm11           ## xmm11 = [16,16,16,16]
	pxor	%xmm4, %xmm4
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm5, %xmm2
	paddd	%xmm8, %xmm2
	movdqa	%xmm7, %xmm1
	pmulld	%xmm5, %xmm1
	pmulld	%xmm7, %xmm2
	pslld	$23, %xmm1
	paddd	%xmm6, %xmm1
	cvttps2dq	%xmm1, %xmm1
	pmulld	%xmm0, %xmm1
	por	%xmm3, %xmm1
	pslld	$23, %xmm2
	paddd	%xmm6, %xmm2
	cvttps2dq	%xmm2, %xmm2
	pmulld	%xmm0, %xmm2
	por	%xmm4, %xmm2
	movdqa	%xmm5, %xmm3
	paddd	%xmm9, %xmm3
	movdqa	%xmm5, %xmm4
	paddd	%xmm10, %xmm4
	pmulld	%xmm7, %xmm3
	pmulld	%xmm7, %xmm4
	pslld	$23, %xmm3
	paddd	%xmm6, %xmm3
	cvttps2dq	%xmm3, %xmm3
	pmulld	%xmm0, %xmm3
	por	%xmm1, %xmm3
	pslld	$23, %xmm4
	paddd	%xmm6, %xmm4
	cvttps2dq	%xmm4, %xmm4
	pmulld	%xmm0, %xmm4
	por	%xmm2, %xmm4
	paddd	%xmm11, %xmm5
	addl	$-2, %edi
	jne	LBB0_28
	jmp	LBB0_34
LBB0_29:
	xorl	%r15d, %r15d
	jmp	LBB0_52
LBB0_30:
	xorl	%edi, %edi
	jmp	LBB0_39
LBB0_31:
	pxor	%xmm3, %xmm3
	movdqa	LCPI0_0(%rip), %xmm5            ## xmm5 = [0,1,2,3]
	pxor	%xmm4, %xmm4
	testb	$1, %bl
	jne	LBB0_8
	jmp	LBB0_9
LBB0_32:
	pxor	%xmm3, %xmm3
	movdqa	LCPI0_0(%rip), %xmm5            ## xmm5 = [0,1,2,3]
	pxor	%xmm4, %xmm4
	testb	$1, %bl
	jne	LBB0_20
	jmp	LBB0_21
LBB0_33:
	pxor	%xmm3, %xmm3
	movdqa	LCPI0_0(%rip), %xmm5            ## xmm5 = [0,1,2,3]
	pxor	%xmm4, %xmm4
LBB0_34:
	testb	$1, %al
	je	LBB0_36
## %bb.35:
	movdqa	%xmm7, %xmm1
	pmulld	%xmm5, %xmm1
	paddd	LCPI0_1(%rip), %xmm5
	pmulld	%xmm7, %xmm5
	pslld	$23, %xmm1
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = [1065353216,1065353216,1065353216,1065353216]
	paddd	%xmm2, %xmm1
	cvttps2dq	%xmm1, %xmm1
	pmulld	%xmm0, %xmm1
	por	%xmm1, %xmm3
	pslld	$23, %xmm5
	paddd	%xmm2, %xmm5
	cvttps2dq	%xmm5, %xmm1
	pmulld	%xmm0, %xmm1
	por	%xmm1, %xmm4
LBB0_36:
	por	%xmm4, %xmm3
	pshufd	$238, %xmm3, %xmm0              ## xmm0 = xmm3[2,3,2,3]
	por	%xmm3, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	por	%xmm0, %xmm1
	movd	%xmm1, %edi
	cmpl	%ecx, %edx
	je	LBB0_39
LBB0_37:
	movl	%edx, %eax
	subl	%ecx, %eax
	imull	%esi, %ecx
	.p2align	4, 0x90
LBB0_38:                                ## =>This Inner Loop Header: Depth=1
	movl	%r8d, %ebx
	shll	%cl, %ebx
	orl	%ebx, %edi
	addl	%esi, %ecx
	decl	%eax
	jne	LBB0_38
LBB0_39:
	movl	4(%r14), %r10d
	movl	%r10d, %ecx
	movq	_HI_OPTION_FW_SUBMODE_P2PDEV@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	subl	%edx, %ecx
	jle	LBB0_51
## %bb.40:
	movq	_HI_OPTION_FW_SUBMODE_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	$8, %ecx
	jb	LBB0_49
## %bb.41:
	movl	%ecx, %r8d
	andl	$-8, %r8d
	movd	%edx, %xmm0
	pshufd	$0, %xmm0, %xmm5                ## xmm5 = xmm0[0,0,0,0]
	paddd	LCPI0_0(%rip), %xmm5
	movd	%edi, %xmm2
	movd	%esi, %xmm1
	pshufd	$0, %xmm1, %xmm7                ## xmm7 = xmm1[0,0,0,0]
	movd	%r15d, %xmm1
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	leal	-8(%r8), %eax
	movl	%eax, %r9d
	shrl	$3, %r9d
	incl	%r9d
	testl	%eax, %eax
	je	LBB0_44
## %bb.42:
	movl	%r9d, %edi
	andl	$-2, %edi
	pxor	%xmm4, %xmm4
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = [4,4,4,4]
	movdqa	LCPI0_2(%rip), %xmm6            ## xmm6 = [1065353216,1065353216,1065353216,1065353216]
	movdqa	LCPI0_3(%rip), %xmm9            ## xmm9 = [8,8,8,8]
	movdqa	LCPI0_4(%rip), %xmm10           ## xmm10 = [12,12,12,12]
	movdqa	LCPI0_5(%rip), %xmm11           ## xmm11 = [16,16,16,16]
	.p2align	4, 0x90
LBB0_43:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm5, %xmm0
	paddd	%xmm8, %xmm0
	movdqa	%xmm7, %xmm3
	pmulld	%xmm5, %xmm3
	pmulld	%xmm7, %xmm0
	pslld	$23, %xmm3
	paddd	%xmm6, %xmm3
	cvttps2dq	%xmm3, %xmm3
	pmulld	%xmm1, %xmm3
	por	%xmm2, %xmm3
	pslld	$23, %xmm0
	paddd	%xmm6, %xmm0
	cvttps2dq	%xmm0, %xmm0
	pmulld	%xmm1, %xmm0
	por	%xmm4, %xmm0
	movdqa	%xmm5, %xmm2
	paddd	%xmm9, %xmm2
	movdqa	%xmm5, %xmm4
	paddd	%xmm10, %xmm4
	pmulld	%xmm7, %xmm2
	pmulld	%xmm7, %xmm4
	pslld	$23, %xmm2
	paddd	%xmm6, %xmm2
	cvttps2dq	%xmm2, %xmm2
	pmulld	%xmm1, %xmm2
	por	%xmm3, %xmm2
	pslld	$23, %xmm4
	paddd	%xmm6, %xmm4
	cvttps2dq	%xmm4, %xmm4
	pmulld	%xmm1, %xmm4
	por	%xmm0, %xmm4
	paddd	%xmm11, %xmm5
	addl	$-2, %edi
	jne	LBB0_43
	jmp	LBB0_45
LBB0_44:
	pxor	%xmm4, %xmm4
LBB0_45:
	testb	$1, %r9b
	je	LBB0_47
## %bb.46:
	movdqa	%xmm7, %xmm0
	pmulld	%xmm5, %xmm0
	paddd	LCPI0_1(%rip), %xmm5
	pmulld	%xmm7, %xmm5
	pslld	$23, %xmm0
	movdqa	LCPI0_2(%rip), %xmm3            ## xmm3 = [1065353216,1065353216,1065353216,1065353216]
	paddd	%xmm3, %xmm0
	cvttps2dq	%xmm0, %xmm0
	pmulld	%xmm1, %xmm0
	por	%xmm0, %xmm2
	pslld	$23, %xmm5
	paddd	%xmm3, %xmm5
	cvttps2dq	%xmm5, %xmm0
	pmulld	%xmm1, %xmm0
	por	%xmm0, %xmm4
LBB0_47:
	por	%xmm4, %xmm2
	pshufd	$238, %xmm2, %xmm0              ## xmm0 = xmm2[2,3,2,3]
	por	%xmm2, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	por	%xmm0, %xmm1
	movd	%xmm1, %edi
	cmpl	%r8d, %ecx
	je	LBB0_51
## %bb.48:
	addl	%r8d, %edx
LBB0_49:
	movl	%r10d, %eax
	subl	%edx, %eax
	imull	%esi, %edx
	.p2align	4, 0x90
LBB0_50:                                ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %ebx
	movl	%edx, %ecx
	shll	%cl, %ebx
	orl	%ebx, %edi
	addl	%esi, %edx
	decl	%eax
	jne	LBB0_50
LBB0_51:
	cmpl	$1, %r10d
	cmovnel	%edi, %r15d
	cmpq	$0, 56(%r14)
	cmovel	%edi, %r15d
LBB0_52:
	movq	_hi_app_host_interest@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HTC_PROTOCOL_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_ath6kl_bmi_write_hi32
	testq	%rax, %rax
	je	LBB0_54
## %bb.53:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_65
LBB0_54:
	movq	%r13, %rbx
	movl	$0, -44(%rbp)
	movq	_hi_option_flag@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_ath6kl_bmi_read_hi32
	testq	%rax, %rax
	je	LBB0_56
## %bb.55:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_65
LBB0_56:
	movl	4(%r14), %eax
	movq	_HI_OPTION_NUM_DEV_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	-44(%rbp), %eax
	movq	_HI_OPTION_FW_MODE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r12d
	movq	_HI_OPTION_FW_SUBMODE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r15d
	orl	%r12d, %r15d
	orl	%eax, %r15d
	movl	%r15d, -44(%rbp)
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_ath6kl_bmi_write_hi32
	testq	%rax, %rax
	je	LBB0_58
## %bb.57:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_65
LBB0_58:
	movq	_ATH6KL_DBG_TRC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_ath6kl_dbg
	movq	16(%r14), %rax
	movq	_TARGET_TYPE_AR6003@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%rbx, %r15
	jne	LBB0_61
LBB0_59:
	movl	24(%r14), %edx
	movl	%edx, -44(%rbp)
	movl	28(%r14), %ebx
	movq	_hi_board_ext_data@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ath6kl_bmi_write_hi32
	testq	%rax, %rax
	je	LBB0_63
## %bb.60:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_65
LBB0_61:
	movq	48(%r14), %rax
	movq	_AR6004_HW_1_3_VERSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_59
## %bb.62:
	movq	_AR6004_HW_3_0_VERSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_68
	jmp	LBB0_59
LBB0_63:
	movq	_hi_end_ram_reserve_sz@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_ath6kl_bmi_write_hi32
	testq	%rax, %rax
	je	LBB0_68
## %bb.64:
	leaq	L_.str.6(%rip), %rdi
LBB0_65:
	callq	_ath6kl_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_66:
	subl	(%rax), %ebx
LBB0_67:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_68:
	movq	_MBOX_YIELD_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ath6kl_set_htc_params
	testq	%rax, %rax
	je	LBB0_70
## %bb.69:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_66
LBB0_70:
	movq	_hi_dbg_uart_txpin@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%r14), %edx
	movq	%r14, %rdi
	callq	_ath6kl_bmi_write_hi32
	movq	%rax, %rbx
	testl	%ebx, %ebx
	jne	LBB0_67
## %bb.71:
	movl	(%r15), %eax
	testl	%eax, (%r14)
	je	LBB0_73
## %bb.72:
	movq	_hi_desired_baud_rate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	36(%r14), %edx
	movq	%r14, %rdi
	callq	_ath6kl_bmi_write_hi32
	movq	%rax, %rbx
	testl	%ebx, %ebx
	jne	LBB0_67
LBB0_73:
	movl	40(%r14), %edx
	testl	%edx, %edx
	je	LBB0_75
## %bb.74:
	movq	_hi_refclk_hz@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ath6kl_bmi_write_hi32
	movq	%rax, %rbx
	testl	%ebx, %ebx
	jne	LBB0_67
LBB0_75:
	xorl	%ebx, %ebx
	jmp	LBB0_67
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH6KL_CONF_UART_DEBUG,4,2     ## @ATH6KL_CONF_UART_DEBUG
	.comm	_hi_serial_enable,4,2           ## @hi_serial_enable
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bmi_write_memory for uart debug failed\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_HI_OPTION_FW_MODE_BSS_STA,4,2  ## @HI_OPTION_FW_MODE_BSS_STA
	.comm	_HI_OPTION_FW_MODE_BITS,4,2     ## @HI_OPTION_FW_MODE_BITS
	.comm	_ATH6KL_FW_CAPABILITY_STA_P2PDEV_DUPLEX,4,2 ## @ATH6KL_FW_CAPABILITY_STA_P2PDEV_DUPLEX
	.comm	_HI_OPTION_FW_SUBMODE_P2PDEV,4,2 ## @HI_OPTION_FW_SUBMODE_P2PDEV
	.comm	_HI_OPTION_FW_SUBMODE_BITS,4,2  ## @HI_OPTION_FW_SUBMODE_BITS
	.comm	_HI_OPTION_FW_SUBMODE_NONE,4,2  ## @HI_OPTION_FW_SUBMODE_NONE
	.comm	_hi_app_host_interest,4,2       ## @hi_app_host_interest
	.comm	_HTC_PROTOCOL_VERSION,4,2       ## @HTC_PROTOCOL_VERSION
L_.str.1:                               ## @.str.1
	.asciz	"bmi_write_memory for htc version failed\n"

	.comm	_hi_option_flag,4,2             ## @hi_option_flag
L_.str.2:                               ## @.str.2
	.asciz	"bmi_read_memory for setting fwmode failed\n"

	.comm	_HI_OPTION_NUM_DEV_SHIFT,4,2    ## @HI_OPTION_NUM_DEV_SHIFT
	.comm	_HI_OPTION_FW_MODE_SHIFT,4,2    ## @HI_OPTION_FW_MODE_SHIFT
	.comm	_HI_OPTION_FW_SUBMODE_SHIFT,4,2 ## @HI_OPTION_FW_SUBMODE_SHIFT
	.comm	_HI_OPTION_MAC_ADDR_METHOD_SHIFT,4,2 ## @HI_OPTION_MAC_ADDR_METHOD_SHIFT
	.comm	_HI_OPTION_FW_BRIDGE_SHIFT,4,2  ## @HI_OPTION_FW_BRIDGE_SHIFT
L_.str.3:                               ## @.str.3
	.asciz	"bmi_write_memory for setting fwmode failed\n"

	.comm	_ATH6KL_DBG_TRC,4,2             ## @ATH6KL_DBG_TRC
L_.str.4:                               ## @.str.4
	.asciz	"firmware mode set\n"

	.comm	_TARGET_TYPE_AR6003,8,3         ## @TARGET_TYPE_AR6003
	.comm	_AR6004_HW_1_3_VERSION,8,3      ## @AR6004_HW_1_3_VERSION
	.comm	_AR6004_HW_3_0_VERSION,8,3      ## @AR6004_HW_3_0_VERSION
	.comm	_hi_board_ext_data,4,2          ## @hi_board_ext_data
L_.str.5:                               ## @.str.5
	.asciz	"bmi_write_memory for hi_board_ext_data failed\n"

	.comm	_hi_end_ram_reserve_sz,4,2      ## @hi_end_ram_reserve_sz
L_.str.6:                               ## @.str.6
	.asciz	"bmi_write_memory for hi_end_ram_reserve_sz failed\n"

	.comm	_MBOX_YIELD_LIMIT,4,2           ## @MBOX_YIELD_LIMIT
	.comm	_hi_dbg_uart_txpin,4,2          ## @hi_dbg_uart_txpin
	.comm	_hi_desired_baud_rate,4,2       ## @hi_desired_baud_rate
	.comm	_hi_refclk_hz,4,2               ## @hi_refclk_hz
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function ath6kl_configure_target
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ath6kl_configure_target
	.p2align	2
_ath6kl_configure_target:               ; @ath6kl_configure_target
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x21, _ATH6KL_CONF_UART_DEBUG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ATH6KL_CONF_UART_DEBUG@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	cset	w2, ne
Lloh2:
	adrp	x8, _hi_serial_enable@GOTPAGE
Lloh3:
	ldr	x8, [x8, _hi_serial_enable@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_ath6kl_bmi_write_hi32
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ath6kl_err
	b	LBB0_52
LBB0_2:
	ldr	w10, [x19, #4]
	cmp	w10, #1
	b.lt	LBB0_5
; %bb.3:
Lloh7:
	adrp	x8, _HI_OPTION_FW_MODE_BSS_STA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HI_OPTION_FW_MODE_BSS_STA@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _HI_OPTION_FW_MODE_BITS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HI_OPTION_FW_MODE_BITS@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w10, #16
	b.hs	LBB0_6
; %bb.4:
	mov	w11, #0
	mov	w20, #0
	b	LBB0_9
LBB0_5:
	mov	w20, #0
	b	LBB0_11
LBB0_6:
	dup.4s	v0, w9
	dup.4s	v1, w8
	and	w11, w10, #0xfffffff0
	movi.2d	v2, #0000000000000000
	movi.4s	v3, #4
Lloh13:
	adrp	x12, lCPI0_0@PAGE
Lloh14:
	ldr	q4, [x12, lCPI0_0@PAGEOFF]
	movi.4s	v5, #8
	movi.4s	v6, #12
	movi.4s	v7, #16
	mov	x12, x11
	movi.2d	v16, #0000000000000000
	movi.2d	v17, #0000000000000000
	movi.2d	v18, #0000000000000000
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add.4s	v19, v4, v3
	add.4s	v20, v4, v5
	add.4s	v21, v4, v6
	mul.4s	v22, v0, v4
	mul.4s	v19, v0, v19
	mul.4s	v20, v0, v20
	mul.4s	v21, v0, v21
	ushl.4s	v22, v1, v22
	ushl.4s	v19, v1, v19
	ushl.4s	v20, v1, v20
	ushl.4s	v21, v1, v21
	orr.16b	v2, v22, v2
	orr.16b	v16, v19, v16
	orr.16b	v17, v20, v17
	orr.16b	v18, v21, v18
	add.4s	v4, v4, v7
	subs	w12, w12, #16
	b.ne	LBB0_7
; %bb.8:
	orr.16b	v0, v16, v2
	orr.16b	v0, v17, v0
	orr.16b	v0, v18, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	w12, s0
	mov.s	w13, v0[1]
	orr	w20, w12, w13
	cmp	w10, w11
	b.eq	LBB0_11
LBB0_9:
	sub	w10, w10, w11
	mul	w11, w11, w9
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	lsl	w12, w8, w11
	orr	w20, w12, w20
	add	w11, w11, w9
	subs	w10, w10, #1
	b.ne	LBB0_10
LBB0_11:
Lloh15:
	adrp	x8, _ATH6KL_FW_CAPABILITY_STA_P2PDEV_DUPLEX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ATH6KL_FW_CAPABILITY_STA_P2PDEV_DUPLEX@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	w1, [x19, #64]
	bl	_test_bit
	cbz	x0, LBB0_15
; %bb.12:
	ldr	w10, [x19, #4]
	cmp	w10, #1
	b.lt	LBB0_18
; %bb.13:
Lloh18:
	adrp	x8, _HI_OPTION_FW_SUBMODE_P2PDEV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HI_OPTION_FW_SUBMODE_P2PDEV@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _HI_OPTION_FW_SUBMODE_BITS@GOTPAGE
Lloh22:
	ldr	x9, [x9, _HI_OPTION_FW_SUBMODE_BITS@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	cmp	w10, #16
	b.hs	LBB0_19
; %bb.14:
	mov	w11, #0
	mov	w22, #0
	b	LBB0_22
LBB0_15:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.16:
Lloh24:
	adrp	x9, _HI_OPTION_FW_SUBMODE_NONE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _HI_OPTION_FW_SUBMODE_NONE@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
Lloh27:
	adrp	x10, _HI_OPTION_FW_SUBMODE_BITS@GOTPAGE
Lloh28:
	ldr	x10, [x10, _HI_OPTION_FW_SUBMODE_BITS@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	cmp	w8, #16
	b.hs	LBB0_25
; %bb.17:
	mov	w12, #0
	mov	w11, #0
	b	LBB0_28
LBB0_18:
	mov	w22, #0
	b	LBB0_38
LBB0_19:
	dup.4s	v0, w9
	dup.4s	v1, w8
	and	w11, w10, #0xfffffff0
	movi.2d	v2, #0000000000000000
	movi.4s	v3, #4
Lloh30:
	adrp	x12, lCPI0_0@PAGE
Lloh31:
	ldr	q4, [x12, lCPI0_0@PAGEOFF]
	movi.4s	v5, #8
	movi.4s	v6, #12
	movi.4s	v7, #16
	mov	x12, x11
	movi.2d	v16, #0000000000000000
	movi.2d	v17, #0000000000000000
	movi.2d	v18, #0000000000000000
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	add.4s	v19, v4, v3
	add.4s	v20, v4, v5
	add.4s	v21, v4, v6
	mul.4s	v22, v0, v4
	mul.4s	v19, v0, v19
	mul.4s	v20, v0, v20
	mul.4s	v21, v0, v21
	ushl.4s	v22, v1, v22
	ushl.4s	v19, v1, v19
	ushl.4s	v20, v1, v20
	ushl.4s	v21, v1, v21
	orr.16b	v2, v22, v2
	orr.16b	v16, v19, v16
	orr.16b	v17, v20, v17
	orr.16b	v18, v21, v18
	add.4s	v4, v4, v7
	subs	w12, w12, #16
	b.ne	LBB0_20
; %bb.21:
	orr.16b	v0, v16, v2
	orr.16b	v0, v17, v0
	orr.16b	v0, v18, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	w12, s0
	mov.s	w13, v0[1]
	orr	w22, w12, w13
	cmp	w10, w11
	b.eq	LBB0_38
LBB0_22:
	sub	w10, w10, w11
	mul	w11, w11, w9
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	lsl	w12, w8, w11
	orr	w22, w12, w22
	add	w11, w11, w9
	subs	w10, w10, #1
	b.ne	LBB0_23
	b	LBB0_38
LBB0_24:
	mov	w11, #0
	b	LBB0_30
LBB0_25:
	dup.4s	v0, w10
	dup.4s	v1, w9
	and	w12, w8, #0xfffffff0
	movi.2d	v2, #0000000000000000
	movi.4s	v3, #4
Lloh32:
	adrp	x11, lCPI0_0@PAGE
Lloh33:
	ldr	q4, [x11, lCPI0_0@PAGEOFF]
	movi.4s	v5, #8
	movi.4s	v6, #12
	movi.4s	v7, #16
	mov	x11, x12
	movi.2d	v16, #0000000000000000
	movi.2d	v17, #0000000000000000
	movi.2d	v18, #0000000000000000
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	add.4s	v19, v4, v3
	add.4s	v20, v4, v5
	add.4s	v21, v4, v6
	mul.4s	v22, v0, v4
	mul.4s	v19, v0, v19
	mul.4s	v20, v0, v20
	mul.4s	v21, v0, v21
	ushl.4s	v22, v1, v22
	ushl.4s	v19, v1, v19
	ushl.4s	v20, v1, v20
	ushl.4s	v21, v1, v21
	orr.16b	v2, v22, v2
	orr.16b	v16, v19, v16
	orr.16b	v17, v20, v17
	orr.16b	v18, v21, v18
	add.4s	v4, v4, v7
	subs	w11, w11, #16
	b.ne	LBB0_26
; %bb.27:
	orr.16b	v0, v16, v2
	orr.16b	v0, v17, v0
	orr.16b	v0, v18, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	w11, s0
	mov.s	w13, v0[1]
	orr	w11, w11, w13
	cmp	w8, w12
	b.eq	LBB0_30
LBB0_28:
	sub	w13, w8, w12
	mul	w12, w12, w10
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	lsl	w14, w9, w12
	orr	w11, w14, w11
	add	w12, w12, w10
	subs	w13, w13, #1
	b.ne	LBB0_29
LBB0_30:
	ldr	w9, [x19, #4]
Lloh34:
	adrp	x10, _HI_OPTION_FW_SUBMODE_P2PDEV@GOTPAGE
Lloh35:
	ldr	x10, [x10, _HI_OPTION_FW_SUBMODE_P2PDEV@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
	subs	w13, w9, w8
	b.le	LBB0_37
; %bb.31:
Lloh37:
	adrp	x12, _HI_OPTION_FW_SUBMODE_BITS@GOTPAGE
Lloh38:
	ldr	x12, [x12, _HI_OPTION_FW_SUBMODE_BITS@GOTPAGEOFF]
Lloh39:
	ldr	w12, [x12]
	cmp	w13, #16
	b.lo	LBB0_35
; %bb.32:
	dup.4s	v0, w8
Lloh40:
	adrp	x14, lCPI0_0@PAGE
Lloh41:
	ldr	q1, [x14, lCPI0_0@PAGEOFF]
	add.4s	v0, v0, v1
	movi.2d	v1, #0000000000000000
	mov.s	v1[0], w11
	dup.4s	v3, w12
	movi.2d	v2, #0000000000000000
	dup.4s	v4, w10
	and	w14, w13, #0xfffffff0
	add	w8, w8, w14
	movi.4s	v5, #4
	movi.4s	v6, #8
	movi.4s	v7, #12
	movi.4s	v16, #16
	mov	x11, x14
	movi.2d	v17, #0000000000000000
	movi.2d	v18, #0000000000000000
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	add.4s	v19, v0, v5
	add.4s	v20, v0, v6
	add.4s	v21, v0, v7
	mul.4s	v22, v3, v0
	mul.4s	v19, v3, v19
	mul.4s	v20, v3, v20
	mul.4s	v21, v3, v21
	ushl.4s	v22, v4, v22
	ushl.4s	v19, v4, v19
	ushl.4s	v20, v4, v20
	ushl.4s	v21, v4, v21
	orr.16b	v1, v22, v1
	orr.16b	v2, v19, v2
	orr.16b	v17, v20, v17
	orr.16b	v18, v21, v18
	add.4s	v0, v0, v16
	subs	w11, w11, #16
	b.ne	LBB0_33
; %bb.34:
	orr.16b	v0, v2, v1
	orr.16b	v0, v17, v0
	orr.16b	v0, v18, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	w11, s0
	mov.s	w15, v0[1]
	orr	w11, w11, w15
	cmp	w13, w14
	b.eq	LBB0_37
LBB0_35:
	sub	w13, w9, w8
	mul	w8, w8, w12
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	lsl	w14, w10, w8
	orr	w11, w14, w11
	add	w8, w8, w12
	subs	w13, w13, #1
	b.ne	LBB0_36
LBB0_37:
	ldr	x8, [x19, #56]
	cmp	w9, #1
	ccmp	x8, #0, #4, eq
	csel	w22, w10, w11, ne
LBB0_38:
Lloh42:
	adrp	x8, _hi_app_host_interest@GOTPAGE
Lloh43:
	ldr	x8, [x8, _hi_app_host_interest@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
Lloh45:
	adrp	x8, _HTC_PROTOCOL_VERSION@GOTPAGE
Lloh46:
	ldr	x8, [x8, _HTC_PROTOCOL_VERSION@GOTPAGEOFF]
Lloh47:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ath6kl_bmi_write_hi32
	cbz	x0, LBB0_40
; %bb.39:
Lloh48:
	adrp	x0, l_.str.1@PAGE
Lloh49:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ath6kl_err
	b	LBB0_52
LBB0_40:
	str	wzr, [sp, #12]
Lloh50:
	adrp	x23, _hi_option_flag@GOTPAGE
Lloh51:
	ldr	x23, [x23, _hi_option_flag@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x19
	bl	_ath6kl_bmi_read_hi32
	cbz	x0, LBB0_42
; %bb.41:
Lloh52:
	adrp	x0, l_.str.2@PAGE
Lloh53:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_ath6kl_err
	b	LBB0_52
LBB0_42:
	ldr	w8, [x19, #4]
Lloh54:
	adrp	x9, _HI_OPTION_NUM_DEV_SHIFT@GOTPAGE
Lloh55:
	ldr	x9, [x9, _HI_OPTION_NUM_DEV_SHIFT@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
Lloh57:
	adrp	x9, _HI_OPTION_FW_MODE_SHIFT@GOTPAGE
Lloh58:
	ldr	x9, [x9, _HI_OPTION_FW_MODE_SHIFT@GOTPAGEOFF]
Lloh59:
	ldr	w9, [x9]
	lsl	w9, w20, w9
Lloh60:
	adrp	x10, _HI_OPTION_FW_SUBMODE_SHIFT@GOTPAGE
Lloh61:
	ldr	x10, [x10, _HI_OPTION_FW_SUBMODE_SHIFT@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh62:
	ldr	w9, [x10]
	lsl	w9, w22, w9
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_ath6kl_bmi_write_hi32
	cbz	x0, LBB0_44
; %bb.43:
Lloh63:
	adrp	x0, l_.str.3@PAGE
Lloh64:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_ath6kl_err
	b	LBB0_52
LBB0_44:
Lloh65:
	adrp	x8, _ATH6KL_DBG_TRC@GOTPAGE
Lloh66:
	ldr	x8, [x8, _ATH6KL_DBG_TRC@GOTPAGEOFF]
Lloh67:
	ldr	w0, [x8]
Lloh68:
	adrp	x1, l_.str.4@PAGE
Lloh69:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_ath6kl_dbg
	ldr	x8, [x19, #16]
Lloh70:
	adrp	x9, _TARGET_TYPE_AR6003@GOTPAGE
Lloh71:
	ldr	x9, [x9, _TARGET_TYPE_AR6003@GOTPAGEOFF]
Lloh72:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_47
LBB0_45:
	ldp	w2, w20, [x19, #24]
	str	w2, [sp, #12]
Lloh73:
	adrp	x8, _hi_board_ext_data@GOTPAGE
Lloh74:
	ldr	x8, [x8, _hi_board_ext_data@GOTPAGEOFF]
Lloh75:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ath6kl_bmi_write_hi32
	cbz	x0, LBB0_49
; %bb.46:
Lloh76:
	adrp	x0, l_.str.5@PAGE
Lloh77:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_ath6kl_err
	b	LBB0_52
LBB0_47:
	ldr	x8, [x19, #48]
Lloh78:
	adrp	x9, _AR6004_HW_1_3_VERSION@GOTPAGE
Lloh79:
	ldr	x9, [x9, _AR6004_HW_1_3_VERSION@GOTPAGEOFF]
Lloh80:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_45
; %bb.48:
Lloh81:
	adrp	x9, _AR6004_HW_3_0_VERSION@GOTPAGE
Lloh82:
	ldr	x9, [x9, _AR6004_HW_3_0_VERSION@GOTPAGEOFF]
Lloh83:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_51
	b	LBB0_45
LBB0_49:
Lloh84:
	adrp	x8, _hi_end_ram_reserve_sz@GOTPAGE
Lloh85:
	ldr	x8, [x8, _hi_end_ram_reserve_sz@GOTPAGEOFF]
Lloh86:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_ath6kl_bmi_write_hi32
	cbz	x0, LBB0_51
; %bb.50:
Lloh87:
	adrp	x0, l_.str.6@PAGE
Lloh88:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_ath6kl_err
	b	LBB0_52
LBB0_51:
Lloh89:
	adrp	x8, _MBOX_YIELD_LIMIT@GOTPAGE
Lloh90:
	ldr	x8, [x8, _MBOX_YIELD_LIMIT@GOTPAGEOFF]
Lloh91:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_ath6kl_set_htc_params
	cbz	x0, LBB0_54
LBB0_52:
Lloh92:
	adrp	x8, _EIO@GOTPAGE
Lloh93:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh94:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_53:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_54:
Lloh95:
	adrp	x8, _hi_dbg_uart_txpin@GOTPAGE
Lloh96:
	ldr	x8, [x8, _hi_dbg_uart_txpin@GOTPAGEOFF]
Lloh97:
	ldr	w1, [x8]
	ldr	w2, [x19, #32]
	mov	x0, x19
	bl	_ath6kl_bmi_write_hi32
	cbnz	w0, LBB0_53
; %bb.55:
	ldr	w8, [x19]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_57
; %bb.56:
Lloh98:
	adrp	x8, _hi_desired_baud_rate@GOTPAGE
Lloh99:
	ldr	x8, [x8, _hi_desired_baud_rate@GOTPAGEOFF]
Lloh100:
	ldr	w1, [x8]
	ldr	w2, [x19, #36]
	mov	x0, x19
	bl	_ath6kl_bmi_write_hi32
	mov	x8, x0
	cbnz	w8, LBB0_53
LBB0_57:
	ldr	w2, [x19, #40]
	cbz	w2, LBB0_59
; %bb.58:
Lloh101:
	adrp	x8, _hi_refclk_hz@GOTPAGE
Lloh102:
	ldr	x8, [x8, _hi_refclk_hz@GOTPAGEOFF]
Lloh103:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ath6kl_bmi_write_hi32
	mov	x8, x0
	cbnz	w8, LBB0_53
LBB0_59:
	mov	w0, #0
	b	LBB0_53
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdr	Lloh30, Lloh31
	.loh AdrpLdr	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdr	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH6KL_CONF_UART_DEBUG,4,2     ; @ATH6KL_CONF_UART_DEBUG
	.comm	_hi_serial_enable,4,2           ; @hi_serial_enable
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bmi_write_memory for uart debug failed\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_HI_OPTION_FW_MODE_BSS_STA,4,2  ; @HI_OPTION_FW_MODE_BSS_STA
	.comm	_HI_OPTION_FW_MODE_BITS,4,2     ; @HI_OPTION_FW_MODE_BITS
	.comm	_ATH6KL_FW_CAPABILITY_STA_P2PDEV_DUPLEX,4,2 ; @ATH6KL_FW_CAPABILITY_STA_P2PDEV_DUPLEX
	.comm	_HI_OPTION_FW_SUBMODE_P2PDEV,4,2 ; @HI_OPTION_FW_SUBMODE_P2PDEV
	.comm	_HI_OPTION_FW_SUBMODE_BITS,4,2  ; @HI_OPTION_FW_SUBMODE_BITS
	.comm	_HI_OPTION_FW_SUBMODE_NONE,4,2  ; @HI_OPTION_FW_SUBMODE_NONE
	.comm	_hi_app_host_interest,4,2       ; @hi_app_host_interest
	.comm	_HTC_PROTOCOL_VERSION,4,2       ; @HTC_PROTOCOL_VERSION
l_.str.1:                               ; @.str.1
	.asciz	"bmi_write_memory for htc version failed\n"

	.comm	_hi_option_flag,4,2             ; @hi_option_flag
l_.str.2:                               ; @.str.2
	.asciz	"bmi_read_memory for setting fwmode failed\n"

	.comm	_HI_OPTION_NUM_DEV_SHIFT,4,2    ; @HI_OPTION_NUM_DEV_SHIFT
	.comm	_HI_OPTION_FW_MODE_SHIFT,4,2    ; @HI_OPTION_FW_MODE_SHIFT
	.comm	_HI_OPTION_FW_SUBMODE_SHIFT,4,2 ; @HI_OPTION_FW_SUBMODE_SHIFT
	.comm	_HI_OPTION_MAC_ADDR_METHOD_SHIFT,4,2 ; @HI_OPTION_MAC_ADDR_METHOD_SHIFT
	.comm	_HI_OPTION_FW_BRIDGE_SHIFT,4,2  ; @HI_OPTION_FW_BRIDGE_SHIFT
l_.str.3:                               ; @.str.3
	.asciz	"bmi_write_memory for setting fwmode failed\n"

	.comm	_ATH6KL_DBG_TRC,4,2             ; @ATH6KL_DBG_TRC
l_.str.4:                               ; @.str.4
	.asciz	"firmware mode set\n"

	.comm	_TARGET_TYPE_AR6003,8,3         ; @TARGET_TYPE_AR6003
	.comm	_AR6004_HW_1_3_VERSION,8,3      ; @AR6004_HW_1_3_VERSION
	.comm	_AR6004_HW_3_0_VERSION,8,3      ; @AR6004_HW_3_0_VERSION
	.comm	_hi_board_ext_data,4,2          ; @hi_board_ext_data
l_.str.5:                               ; @.str.5
	.asciz	"bmi_write_memory for hi_board_ext_data failed\n"

	.comm	_hi_end_ram_reserve_sz,4,2      ; @hi_end_ram_reserve_sz
l_.str.6:                               ; @.str.6
	.asciz	"bmi_write_memory for hi_end_ram_reserve_sz failed\n"

	.comm	_MBOX_YIELD_LIMIT,4,2           ; @MBOX_YIELD_LIMIT
	.comm	_hi_dbg_uart_txpin,4,2          ; @hi_dbg_uart_txpin
	.comm	_hi_desired_baud_rate,4,2       ; @hi_desired_baud_rate
	.comm	_hi_refclk_hz,4,2               ; @hi_refclk_hz
.subsections_via_symbols
