	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_init_configure_target
_ath10k_init_configure_target:          ## @ath10k_init_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_hi_app_host_interest@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HTC_PROTOCOL_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_ath10k_bmi_write32
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movq	_hi_option_flag@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	callq	_ath10k_bmi_read32
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_5:
	movq	_HI_OPTION_NUM_DEV_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_HI_OPTION_FW_MODE_AP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_HI_OPTION_FW_MODE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movl	-28(%rbp), %ecx
	btsl	%eax, %ecx
	orl	%ecx, %edx
	movq	_HI_OPTION_MAC_ADDR_METHOD_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %edx
	movl	%edx, -28(%rbp)
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_ath10k_bmi_write32
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_7:
	movq	_hi_be@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ath10k_bmi_write32
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_ath10k_err
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_hi_fw_swap@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ath10k_bmi_write32
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_ath10k_err
	jmp	LBB0_13
LBB0_11:
	movq	_hi_hci_uart_pwr_mgmt_params_ext@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%r14, %rdi
	callq	_ath10k_bmi_write32
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	movl	%eax, %r15d
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ath10k_err
LBB0_13:
	movl	%r15d, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_hi_app_host_interest,4,2       ## @hi_app_host_interest
	.comm	_HTC_PROTOCOL_VERSION,4,2       ## @HTC_PROTOCOL_VERSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"settings HTC version failed\n"

	.comm	_hi_option_flag,4,2             ## @hi_option_flag
L_.str.1:                               ## @.str.1
	.asciz	"setting firmware mode (1/2) failed\n"

	.comm	_HI_OPTION_NUM_DEV_SHIFT,4,2    ## @HI_OPTION_NUM_DEV_SHIFT
	.comm	_HI_OPTION_FW_MODE_AP,4,2       ## @HI_OPTION_FW_MODE_AP
	.comm	_HI_OPTION_FW_MODE_SHIFT,4,2    ## @HI_OPTION_FW_MODE_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
	.comm	_HI_OPTION_FW_SUBMODE_SHIFT,4,2 ## @HI_OPTION_FW_SUBMODE_SHIFT
L_.str.2:                               ## @.str.2
	.asciz	"setting firmware mode (2/2) failed\n"

	.comm	_hi_be,4,2                      ## @hi_be
L_.str.3:                               ## @.str.3
	.asciz	"setting host CPU BE mode failed\n"

	.comm	_hi_fw_swap,4,2                 ## @hi_fw_swap
L_.str.4:                               ## @.str.4
	.asciz	"setting FW data/desc swap flags failed\n"

	.comm	_hi_hci_uart_pwr_mgmt_params_ext,4,2 ## @hi_hci_uart_pwr_mgmt_params_ext
L_.str.5:                               ## @.str.5
	.asciz	"failed to set pwr_mgmt_params: %d\n"

	.no_dead_strip	_ath10k_init_configure_target
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_init_configure_target
_ath10k_init_configure_target:          ; @ath10k_init_configure_target
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
Lloh0:
	adrp	x8, _hi_app_host_interest@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hi_app_host_interest@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _HTC_PROTOCOL_VERSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HTC_PROTOCOL_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_ath10k_bmi_write32
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_2:
Lloh8:
	adrp	x21, _hi_option_flag@GOTPAGE
Lloh9:
	ldr	x21, [x21, _hi_option_flag@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	bl	_ath10k_bmi_read32
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_4:
Lloh12:
	adrp	x8, _HI_OPTION_NUM_DEV_SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HI_OPTION_NUM_DEV_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	w10, [sp, #12]
	orr	w8, w10, w8
Lloh15:
	adrp	x10, _HI_OPTION_FW_MODE_AP@GOTPAGE
Lloh16:
	ldr	x10, [x10, _HI_OPTION_FW_MODE_AP@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
Lloh18:
	adrp	x11, _HI_OPTION_FW_MODE_SHIFT@GOTPAGE
Lloh19:
	ldr	x11, [x11, _HI_OPTION_FW_MODE_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	lsl	w10, w10, w11
Lloh21:
	adrp	x11, _HI_OPTION_MAC_ADDR_METHOD_SHIFT@GOTPAGE
Lloh22:
	ldr	x11, [x11, _HI_OPTION_MAC_ADDR_METHOD_SHIFT@GOTPAGEOFF]
	orr	w8, w10, w8
Lloh23:
	ldr	w10, [x11]
	lsl	w9, w9, w10
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ath10k_bmi_write32
	cbz	w0, LBB0_6
; %bb.5:
	mov	x20, x0
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_6:
Lloh26:
	adrp	x8, _hi_be@GOTPAGE
Lloh27:
	ldr	x8, [x8, _hi_be@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_ath10k_bmi_write32
	cbz	w0, LBB0_8
; %bb.7:
	mov	x20, x0
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_8:
Lloh31:
	adrp	x8, _hi_fw_swap@GOTPAGE
Lloh32:
	ldr	x8, [x8, _hi_fw_swap@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_ath10k_bmi_write32
	cbz	w0, LBB0_10
; %bb.9:
	mov	x20, x0
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_10:
Lloh36:
	adrp	x8, _hi_hci_uart_pwr_mgmt_params_ext@GOTPAGE
Lloh37:
	ldr	x8, [x8, _hi_hci_uart_pwr_mgmt_params_ext@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	ldr	w2, [x19]
	mov	x0, x19
	bl	_ath10k_bmi_write32
	mov	x20, x0
	cbz	w0, LBB0_13
; %bb.11:
	str	x20, [sp]
Lloh39:
	adrp	x1, l_.str.5@PAGE
Lloh40:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_ath10k_err
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_hi_app_host_interest,4,2       ; @hi_app_host_interest
	.comm	_HTC_PROTOCOL_VERSION,4,2       ; @HTC_PROTOCOL_VERSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"settings HTC version failed\n"

	.comm	_hi_option_flag,4,2             ; @hi_option_flag
l_.str.1:                               ; @.str.1
	.asciz	"setting firmware mode (1/2) failed\n"

	.comm	_HI_OPTION_NUM_DEV_SHIFT,4,2    ; @HI_OPTION_NUM_DEV_SHIFT
	.comm	_HI_OPTION_FW_MODE_AP,4,2       ; @HI_OPTION_FW_MODE_AP
	.comm	_HI_OPTION_FW_MODE_SHIFT,4,2    ; @HI_OPTION_FW_MODE_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
	.comm	_HI_OPTION_FW_SUBMODE_SHIFT,4,2 ; @HI_OPTION_FW_SUBMODE_SHIFT
l_.str.2:                               ; @.str.2
	.asciz	"setting firmware mode (2/2) failed\n"

	.comm	_hi_be,4,2                      ; @hi_be
l_.str.3:                               ; @.str.3
	.asciz	"setting host CPU BE mode failed\n"

	.comm	_hi_fw_swap,4,2                 ; @hi_fw_swap
l_.str.4:                               ; @.str.4
	.asciz	"setting FW data/desc swap flags failed\n"

	.comm	_hi_hci_uart_pwr_mgmt_params_ext,4,2 ; @hi_hci_uart_pwr_mgmt_params_ext
l_.str.5:                               ; @.str.5
	.asciz	"failed to set pwr_mgmt_params: %d\n"

	.no_dead_strip	_ath10k_init_configure_target
.subsections_via_symbols
