	.file	"extr_mci.c_ath_mci_cal_msg.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"MCI State : %d\n"
.LC1:
	.string	"Unknown GPM CAL message\n"
	.text
	.p2align 4
	.type	ath_mci_cal_msg, @function
ath_mci_cal_msg:
.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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	r13, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rdi, r13
	call	ath9k_hw_common@PLT
	mov	QWORD PTR [rsp], 0
	mov	QWORD PTR 8[rsp], 0
	mov	r12, rax
	cmp	ebx, 128
	je	.L2
	cmp	ebx, 129
	je	.L3
	mov	esi, DWORD PTR MCI[rip]
	mov	rdi, rax
	lea	rdx, .LC1[rip]
	xor	eax, eax
	call	ath_dbg@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	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
.L2:
	.cfi_restore_state
	mov	ecx, DWORD PTR 0[r13]
	cmp	ecx, DWORD PTR MCI_BT_AWAKE[rip]
	je	.L12
.L5:
	mov	esi, DWORD PTR MCI[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, r12
	xor	eax, eax
	call	ath_dbg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	r12, rsp
	mov	esi, DWORD PTR MCI_GPM_WLAN_CAL_DONE[rip]
	mov	rdi, r12
	call	MCI_GPM_SET_CAL_TYPE@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	rdi, QWORD PTR 0[rbp]
	xor	edx, edx
	push	1
	.cfi_def_cfa_offset 96
	mov	esi, DWORD PTR MCI_GPM[rip]
	xor	r9d, r9d
	mov	rcx, r12
	mov	r8d, 16
	call	ar9003_mci_send_message@PLT
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR MCI_BT_CAL_START[rip]
	mov	rdi, rbp
	mov	DWORD PTR 0[r13], eax
	mov	esi, DWORD PTR RESET_TYPE_MCI[rip]
	call	ath9k_queue_reset@PLT
	mov	ecx, DWORD PTR 0[r13]
	jmp	.L5
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ath_mci_cal_msg, .-ath_mci_cal_msg
	.comm	RESET_TYPE_MCI,4,4
	.comm	MCI_GPM_WLAN_CAL_DONE,4,4
	.comm	MCI_GPM,4,4
	.comm	MCI_BT_CAL_START,4,4
	.comm	MCI_BT_AWAKE,4,4
	.comm	MCI,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_mci.c_ath_mci_cal_msg.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"MCI State : %d\012\000"
	.align	2
.LC1:
	.ascii	"Unknown GPM CAL message\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath_mci_cal_msg, %function
ath_mci_cal_msg:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r4, #0
	ldr	r8, [r0]
	ldr	r3, .L13
	sub	sp, sp, #40
	mov	r6, r0
	mov	r0, r8
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	bl	ath9k_hw_common
	cmp	r5, #128
	str	r4, [sp, #20]
	str	r4, [sp, #24]
	str	r4, [sp, #28]
	str	r4, [sp, #32]
	beq	.L2
	cmp	r5, #129
	beq	.L3
	ldr	r3, .L13+4
	ldr	r2, .L13+8
	ldr	r1, [r3]
	bl	ath_dbg
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r2, .L13+12
	ldr	r3, [r8]
	ldr	r2, [r2]
	mov	r7, r0
	cmp	r3, r2
	beq	.L12
.L5:
	ldr	r2, .L13+4
	mov	r0, r7
	ldr	r1, [r2]
	ldr	r2, .L13+16
	bl	ath_dbg
	b	.L1
.L3:
	ldr	r3, .L13+20
	add	r0, sp, #20
	ldr	r1, [r3]
	bl	MCI_GPM_SET_CAL_TYPE
	mov	lr, #1
	mov	ip, #16
	str	r4, [sp, #4]
	ldr	r1, .L13+24
	ldr	r0, [r6]
	str	lr, [sp, #8]
	str	ip, [sp]
	mov	r2, r4
	ldr	r1, [r1]
	add	r3, sp, #20
	bl	ar9003_mci_send_message
	b	.L1
.L12:
	ldr	r2, .L13+28
	ldr	r3, .L13+32
	ldr	r2, [r2]
	mov	r0, r6
	str	r2, [r8]
	ldr	r1, [r3]
	bl	ath9k_queue_reset
	ldr	r3, [r8]
	b	.L5
.L11:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC2
	.word	MCI
	.word	.LC1
	.word	MCI_BT_AWAKE
	.word	.LC0
	.word	MCI_GPM_WLAN_CAL_DONE
	.word	MCI_GPM
	.word	MCI_BT_CAL_START
	.word	RESET_TYPE_MCI
	.size	ath_mci_cal_msg, .-ath_mci_cal_msg
	.comm	RESET_TYPE_MCI,4,4
	.comm	MCI_GPM_WLAN_CAL_DONE,4,4
	.comm	MCI_GPM,4,4
	.comm	MCI_BT_CAL_START,4,4
	.comm	MCI_BT_AWAKE,4,4
	.comm	MCI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
