	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_htc_init                ## -- Begin function ath10k_htc_init
	.p2align	4, 0x90
_ath10k_htc_init:                       ## @ath10k_htc_init
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	addq	$16, %rdi
	callq	_spin_lock_init
	movq	%r15, %rdi
	callq	_ath10k_htc_reset_endpoint_states
	movq	%r15, 8(%r15)
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_ath10k_htc_control_tx_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	_ath10k_htc_control_rx_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_ATH10K_NUM_CONTROL_TX_BUFFERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	_ATH10K_HTC_SVC_ID_RSVD_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_ath10k_htc_connect_service
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_ath10k_err
	jmp	LBB0_3
LBB0_2:
	movq	%r15, %rdi
	callq	_init_completion
LBB0_3:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ath10k_htc_control_tx_complete,4,2 ## @ath10k_htc_control_tx_complete
	.comm	_ath10k_htc_control_rx_complete,4,2 ## @ath10k_htc_control_rx_complete
	.comm	_ATH10K_NUM_CONTROL_TX_BUFFERS,4,2 ## @ATH10K_NUM_CONTROL_TX_BUFFERS
	.comm	_ATH10K_HTC_SVC_ID_RSVD_CTRL,4,2 ## @ATH10K_HTC_SVC_ID_RSVD_CTRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not connect to htc service (%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_htc_init                ; -- Begin function ath10k_htc_init
	.p2align	2
_ath10k_htc_init:                       ; @ath10k_htc_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	add	x0, x0, #16
	bl	_spin_lock_init
	mov	x0, x19
	bl	_ath10k_htc_reset_endpoint_states
	str	x19, [x19, #8]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh0:
	adrp	x8, _ath10k_htc_control_tx_complete@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ath10k_htc_control_tx_complete@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ath10k_htc_control_rx_complete@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ath10k_htc_control_rx_complete@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #24]
Lloh6:
	adrp	x8, _ATH10K_NUM_CONTROL_TX_BUFFERS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATH10K_NUM_CONTROL_TX_BUFFERS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _ATH10K_HTC_SVC_ID_RSVD_CTRL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ATH10K_HTC_SVC_ID_RSVD_CTRL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #16]
	add	x1, sp, #16
	mov	x2, sp
	mov	x0, x19
	bl	_ath10k_htc_connect_service
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_ath10k_err
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_init_completion
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ath10k_htc_control_tx_complete,4,2 ; @ath10k_htc_control_tx_complete
	.comm	_ath10k_htc_control_rx_complete,4,2 ; @ath10k_htc_control_rx_complete
	.comm	_ATH10K_NUM_CONTROL_TX_BUFFERS,4,2 ; @ATH10K_NUM_CONTROL_TX_BUFFERS
	.comm	_ATH10K_HTC_SVC_ID_RSVD_CTRL,4,2 ; @ATH10K_HTC_SVC_ID_RSVD_CTRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not connect to htc service (%d)\n"

.subsections_via_symbols
