	.file	"extr_mci.c_ath_mci_add_profile.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ath_mci_add_profile, @function
ath_mci_add_profile:
.LFB0:
	.cfi_startproc
	endbr64
	movabs	rcx, 481036337262
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	sub	rsp, 48
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 8[rsp], rcx
	movabs	rax, 472446402670
	mov	QWORD PTR [rsp], rax
	mov	QWORD PTR 16[rsp], rax
	movabs	rax, 498216206450
	mov	QWORD PTR 24[rsp], rax
	mov	rax, QWORD PTR ATH_MCI_MAX_SCO_PROFILE[rip]
	mov	DWORD PTR 32[rsp], 118
	cmp	QWORD PTR [rsi], rax
	jne	.L2
	mov	rax, QWORD PTR MCI_GPM_COEX_PROFILE_VOICE[rip]
	cmp	QWORD PTR [rdx], rax
	je	.L5
.L2:
	mov	rdi, rbx
	call	NUM_PROF@PLT
	sub	rax, QWORD PTR [rbx]
	cmp	rax, QWORD PTR ATH_MCI_MAX_ACL_PROFILE[rip]
	jne	.L4
	mov	rax, QWORD PTR MCI_GPM_COEX_PROFILE_VOICE[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L4
.L5:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L14
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	esi, DWORD PTR GFP_ATOMIC[rip]
	mov	edi, 16
	call	kzalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L5
	mov	edx, 10
	mov	rsi, rbp
	mov	rdi, rax
	call	memcpy@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	call	INC_PROF@PLT
	lea	rsi, 12[rbx]
	lea	rdi, 12[r12]
	call	list_add_tail@PLT
	mov	rcx, QWORD PTR MCI_GPM_COEX_PROFILE_VOICE[rip]
	mov	eax, 1
	cmp	QWORD PTR 0[rbp], rcx
	jne	.L1
	movsx	rdx, DWORD PTR 8[rbp]
	cmp	edx, 35
	ja	.L6
	mov	edx, DWORD PTR [rsp+rdx*4]
	mov	DWORD PTR 8[rbx], edx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	DWORD PTR 8[rbx], 110
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ath_mci_add_profile, .-ath_mci_add_profile
	.comm	MCI_GPM_COEX_PROFILE_VOICE,8,8
	.comm	GFP_ATOMIC,4,4
	.comm	ATH_MCI_MAX_SCO_PROFILE,8,8
	.comm	ATH_MCI_MAX_ACL_PROFILE,8,8
	.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_add_profile.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath_mci_add_profile, %function
ath_mci_add_profile:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	sub	sp, sp, #40
	mov	ip, sp
	mov	r4, r1
	ldr	lr, .L15
	mov	r5, r2
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, .L15+4
	ldr	r1, [r4]
	ldr	r2, [r3]
	ldr	r3, [lr]
	cmp	r1, r2
	ldr	r2, .L15+8
	ldr	r2, [r2]
	str	r2, [sp, #36]
	mov	r2,#0
	str	r3, [ip]
	bne	.L2
	ldr	r3, .L15+12
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L5
.L2:
	mov	r0, r4
	bl	NUM_PROF
	ldr	r3, .L15+16
	ldr	r2, [r4]
	ldr	r3, [r3]
	sub	r0, r0, r2
	cmp	r0, r3
	bne	.L4
	ldr	r3, .L15+12
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L4
.L5:
	mov	r0, #0
.L1:
	ldr	r3, .L15+8
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, pc}
.L4:
	ldr	r3, .L15+20
	mov	r0, #12
	ldr	r1, [r3]
	bl	kzalloc
	subs	r6, r0, #0
	beq	.L5
	mov	r2, #10
	mov	r1, r5
	bl	memcpy
	mov	r1, r5
	mov	r0, r4
	bl	INC_PROF
	add	r0, r6, #8
	add	r1, r4, #8
	bl	list_add_tail
	ldr	r3, .L15+12
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	movne	r0, #1
	bne	.L1
	ldr	r3, [r5, #4]
	mov	r0, #1
	cmp	r3, #35
	movhi	r3, #110
	addls	r2, sp, #40
	addls	r3, r2, r3, lsl #2
	ldrls	r3, [r3, #-40]
	str	r3, [r4, #4]
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LANCHOR0
	.word	ATH_MCI_MAX_SCO_PROFILE
	.word	.LC1
	.word	MCI_GPM_COEX_PROFILE_VOICE
	.word	ATH_MCI_MAX_ACL_PROFILE
	.word	GFP_ATOMIC
	.size	ath_mci_add_profile, .-ath_mci_add_profile
	.comm	MCI_GPM_COEX_PROFILE_VOICE,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	ATH_MCI_MAX_SCO_PROFILE,4,4
	.comm	ATH_MCI_MAX_ACL_PROFILE,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC0:
	.word	110
	.word	110
	.word	110
	.word	112
	.word	110
	.word	110
	.word	114
	.word	116
	.word	118
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
