	.file	"extr_htc.c_ath10k_htc_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"could not connect to htc service (%d)\n"
	.text
	.p2align 4
	.globl	ath10k_htc_init
	.type	ath10k_htc_init, @function
ath10k_htc_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	add	rdi, 16
	sub	rsp, 48
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	r12, rsp
	lea	r13, 16[rsp]
	call	spin_lock_init@PLT
	mov	rdi, rbp
	call	ath10k_htc_reset_endpoint_states@PLT
	mov	QWORD PTR 8[rbp], rbp
	mov	rdi, r12
	xor	esi, esi
	mov	edx, 16
	call	memset@PLT
	mov	edx, 16
	xor	esi, esi
	mov	rdi, r13
	call	memset@PLT
	mov	rsi, r12
	mov	rdx, r13
	mov	rdi, rbp
	mov	eax, DWORD PTR ath10k_htc_control_tx_complete[rip]
	mov	DWORD PTR 12[rsp], eax
	mov	eax, DWORD PTR ath10k_htc_control_rx_complete[rip]
	mov	DWORD PTR 8[rsp], eax
	mov	eax, DWORD PTR ATH10K_NUM_CONTROL_TX_BUFFERS[rip]
	mov	DWORD PTR 4[rsp], eax
	mov	eax, DWORD PTR ATH10K_HTC_SVC_ID_RSVD_CTRL[rip]
	mov	DWORD PTR [rsp], eax
	call	ath10k_htc_connect_service@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L7
	mov	rdi, rbp
	call	init_completion@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edx, eax
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	ath10k_err@PLT
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ath10k_htc_init, .-ath10k_htc_init
	.comm	ath10k_htc_control_tx_complete,4,4
	.comm	ath10k_htc_control_rx_complete,4,4
	.comm	ATH10K_NUM_CONTROL_TX_BUFFERS,4,4
	.comm	ATH10K_HTC_SVC_ID_RSVD_CTRL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_htc.c_ath10k_htc_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"could not connect to htc service (%d)\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ath10k_htc_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath10k_htc_init, %function
ath10k_htc_init:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r0
	ldr	r3, .L9
	sub	sp, sp, #44
	add	r0, r0, #8
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	bl	spin_lock_init
	mov	r0, r4
	bl	ath10k_htc_reset_endpoint_states
	mov	r3, #0
	ldr	r2, .L9+4
	ldr	r1, .L9+8
	ldr	ip, .L9+12
	ldr	r0, .L9+16
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	lr, [ip]
	ldr	ip, [r0]
	str	r2, [sp, #8]
	str	r1, [sp, #4]
	mov	r0, r4
	str	r4, [r4, #4]
	add	r2, sp, #20
	add	r1, sp, #4
	str	lr, [sp, #16]
	str	ip, [sp, #12]
	str	r3, [sp, #20]
	str	r3, [sp, #24]
	str	r3, [sp, #28]
	str	r3, [sp, #32]
	bl	ath10k_htc_connect_service
	subs	r5, r0, #0
	mov	r0, r4
	bne	.L7
	bl	init_completion
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	mov	r0, r5
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, pc}
.L7:
	mov	r2, r5
	ldr	r1, .L9+20
	bl	ath10k_err
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	ATH10K_NUM_CONTROL_TX_BUFFERS
	.word	ATH10K_HTC_SVC_ID_RSVD_CTRL
	.word	ath10k_htc_control_tx_complete
	.word	ath10k_htc_control_rx_complete
	.word	.LC0
	.size	ath10k_htc_init, .-ath10k_htc_init
	.comm	ath10k_htc_control_tx_complete,4,4
	.comm	ath10k_htc_control_rx_complete,4,4
	.comm	ATH10K_NUM_CONTROL_TX_BUFFERS,4,4
	.comm	ATH10K_HTC_SVC_ID_RSVD_CTRL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
