	.file	"extr_hif.c_ath6kl_hif_setup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"hif block size %d mbox addr 0x%x\n"
	.text
	.p2align 4
	.globl	ath6kl_hif_setup
	.type	ath6kl_hif_setup, @function
ath6kl_hif_setup:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	add	rdi, 16
	call	spin_lock_init@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rcx, QWORD PTR 8[rbp]
	mov	edx, DWORD PTR [rax]
	lea	esi, -1[rdx]
	mov	DWORD PTR [rcx], edx
	test	edx, esi
	jne	.L7
	mov	DWORD PTR 4[rcx], esi
	mov	edi, DWORD PTR ATH6KL_DBG_HIF[rip]
	lea	rsi, .LC0[rip]
	mov	ecx, DWORD PTR 4[rax]
	call	ath6kl_dbg@PLT
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	ath6kl_hif_disable_intrs@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edi, 1
	call	WARN_ON@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
.L3:
	.cfi_endproc
.LFE0:
	.size	ath6kl_hif_setup, .-ath6kl_hif_setup
	.comm	EINVAL,4,4
	.comm	ATH6KL_DBG_HIF,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_hif.c_ath6kl_hif_setup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"hif block size %d mbox addr 0x%x\012\000"
	.text
	.align	2
	.global	ath6kl_hif_setup
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath6kl_hif_setup, %function
ath6kl_hif_setup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	add	r0, r0, #8
	bl	spin_lock_init
	ldr	r3, [r4]
	ldr	r1, [r4, #4]
	ldr	r2, [r3]
	sub	r0, r2, #1
	tst	r2, r0
	str	r2, [r1]
	bne	.L7
	ldr	ip, .L8
	str	r0, [r1, #4]
	ldr	r3, [r3, #4]
	ldr	r0, [ip]
	ldr	r1, .L8+4
	bl	ath6kl_dbg
	mov	r0, r4
	pop	{r4, lr}
	b	ath6kl_hif_disable_intrs
.L7:
	mov	r0, #1
	bl	WARN_ON
	ldr	r3, .L8+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L9:
	.align	2
.L8:
	.word	ATH6KL_DBG_HIF
	.word	.LC0
	.word	EINVAL
.L3:
	.size	ath6kl_hif_setup, .-ath6kl_hif_setup
	.comm	EINVAL,4,4
	.comm	ATH6KL_DBG_HIF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
