	.file	"extr_testmode.c_iwlagn_mac_testmode_cmd.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"testmode cmd to driver\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"testmode change uCode ownership\n"
	.section	.rodata.str1.1
.LC2:
	.string	"Unknown testmode command\n"
.LC3:
	.string	"Test cmd failed result=%d\n"
	.text
	.p2align 4
	.globl	iwlagn_mac_testmode_cmd
	.type	iwlagn_mac_testmode_cmd, @function
iwlagn_mac_testmode_cmd:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rdi
	push	r12
	.cfi_offset 12, -48
	mov	r12, rsi
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR IWL_TM_ATTR_MAX[rip]
	mov	rcx, rsp
	lea	rax, 15[0+rax*8]
	mov	rsi, rax
	and	rax, -4096
	sub	rcx, rax
	and	rsi, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L21:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L21
.L3:
	and	esi, 4095
	sub	rsp, rsi
	test	rsi, rsi
	jne	.L22
.L4:
	mov	rdi, r13
	mov	DWORD PTR -68[rbp], edx
	mov	r15, rsp
	call	IWL_MAC80211_GET_DVM@PLT
	mov	edx, DWORD PTR -68[rbp]
	mov	rsi, r15
	lea	rbx, 4[rax]
	mov	r14, rax
	mov	ecx, edx
	mov	rdi, rbx
	mov	rdx, r12
	call	iwl_test_parse@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L23
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	lea	rsp, -40[rbp]
	mov	eax, r12d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	rdi, r14
	call	mutex_lock@PLT
	mov	rax, QWORD PTR IWL_TM_ATTR_COMMAND[rip]
	mov	rdi, QWORD PTR [r15+rax*8]
	call	nla_get_u32@PLT
	add	eax, -128
	cmp	eax, 19
	ja	.L6
	lea	rdx, .L8[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L8:
	.long	.L7-.L8
	.long	.L10-.L8
	.long	.L7-.L8
	.long	.L9-.L8
	.long	.L9-.L8
	.long	.L9-.L8
	.long	.L7-.L8
	.long	.L7-.L8
	.long	.L7-.L8
	.long	.L9-.L8
	.long	.L9-.L8
	.long	.L7-.L8
	.long	.L9-.L8
	.long	.L9-.L8
	.long	.L7-.L8
	.long	.L7-.L8
	.long	.L7-.L8
	.long	.L7-.L8
	.long	.L9-.L8
	.long	.L7-.L8
	.text
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rsi, r15
	mov	rdi, rbx
	call	iwl_test_handle_cmd@PLT
	mov	r12d, eax
.L11:
	mov	rdi, r14
	call	mutex_unlock@PLT
	test	r12d, r12d
	je	.L1
	mov	edx, r12d
	lea	rsi, .LC3[rip]
	mov	rdi, r14
	xor	eax, eax
	call	IWL_ERR@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rsi, .LC0[rip]
	mov	rdi, r14
	call	IWL_DEBUG_INFO@PLT
	mov	rsi, r15
	mov	rdi, r13
	call	iwl_testmode_driver@PLT
	mov	r12d, eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L22:
	or	QWORD PTR -8[rsp+rsi], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rsi, .LC1[rip]
	mov	rdi, r14
	call	IWL_DEBUG_INFO@PLT
	mov	rsi, r15
	mov	rdi, r13
	call	iwl_testmode_ownership@PLT
	mov	r12d, eax
	jmp	.L11
.L6:
	lea	rsi, .LC2[rip]
	mov	rdi, r14
	xor	eax, eax
	call	IWL_ERR@PLT
	mov	r12d, DWORD PTR ENOSYS[rip]
	neg	r12d
	jmp	.L11
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	iwlagn_mac_testmode_cmd, .-iwlagn_mac_testmode_cmd
	.comm	IWL_TM_ATTR_MAX,4,4
	.comm	IWL_TM_ATTR_COMMAND,8,8
	.comm	ENOSYS,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_testmode.c_iwlagn_mac_testmode_cmd.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"testmode cmd to driver\012\000"
	.align	2
.LC1:
	.ascii	"testmode change uCode ownership\012\000"
	.align	2
.LC2:
	.ascii	"Unknown testmode command\012\000"
	.align	2
.LC3:
	.ascii	"Test cmd failed result=%d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	iwlagn_mac_testmode_cmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	iwlagn_mac_testmode_cmd, %function
iwlagn_mac_testmode_cmd:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #8
	ldr	r3, .L17
	mov	r4, r1
	ldr	ip, [r3]
	ldr	r3, .L17+4
	lsl	ip, ip, #2
	add	ip, ip, #7
	bic	ip, ip, #7
	sub	sp, sp, ip
	mov	r9, r2
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r6, r0
	bl	IWL_MAC80211_GET_DVM
	mov	r7, sp
	add	r8, r0, #4
	mov	r2, r4
	mov	r5, r0
	mov	r3, r9
	mov	r1, r7
	mov	r0, r8
	bl	iwl_test_parse
	subs	r4, r0, #0
	beq	.L15
.L1:
	ldr	r3, .L17+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r4
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L15:
	mov	r0, r5
	bl	mutex_lock
	ldr	r3, .L17+8
	ldr	r3, [r3]
	ldr	r0, [r7, r3, lsl #2]
	bl	nla_get_u32
	sub	r0, r0, #128
	cmp	r0, #19
	ldrls	pc, [pc, r0, asl #2]
	b	.L3
.L5:
	.word	.L4
	.word	.L7
	.word	.L4
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L6
	.word	.L6
	.word	.L4
	.word	.L6
	.word	.L6
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L6
	.word	.L4
.L4:
	mov	r1, r7
	mov	r0, r8
	bl	iwl_test_handle_cmd
	mov	r4, r0
.L8:
	mov	r0, r5
	bl	mutex_unlock
	cmp	r4, #0
	beq	.L1
	mov	r0, r5
	mov	r2, r4
	ldr	r1, .L17+12
	bl	IWL_ERR
	b	.L1
.L6:
	ldr	r1, .L17+16
	mov	r0, r5
	bl	IWL_DEBUG_INFO
	mov	r1, r7
	mov	r0, r6
	bl	iwl_testmode_driver
	mov	r4, r0
	b	.L8
.L7:
	ldr	r1, .L17+20
	mov	r0, r5
	bl	IWL_DEBUG_INFO
	mov	r1, r7
	mov	r0, r6
	bl	iwl_testmode_ownership
	mov	r4, r0
	b	.L8
.L16:
	bl	__stack_chk_fail
.L3:
	mov	r0, r5
	ldr	r1, .L17+24
	bl	IWL_ERR
	ldr	r3, .L17+28
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L8
.L18:
	.align	2
.L17:
	.word	IWL_TM_ATTR_MAX
	.word	.LC4
	.word	IWL_TM_ATTR_COMMAND
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	ENOSYS
	.size	iwlagn_mac_testmode_cmd, .-iwlagn_mac_testmode_cmd
	.comm	IWL_TM_ATTR_MAX,4,4
	.comm	IWL_TM_ATTR_COMMAND,4,4
	.comm	ENOSYS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
