	.file	"extr_lib.c_iwlagn_send_tx_power.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"TX Power requested while scanning!\n"
	.text
	.p2align 4
	.globl	iwlagn_send_tx_power
	.type	iwlagn_send_tx_power, @function
iwlagn_send_tx_power:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rsi, 24[rdi]
	mov	rbp, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR STATUS_SCAN_HW[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	test_bit@PLT
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	WARN_ONCE@PLT
	test	rax, rax
	jne	.L10
	mov	eax, DWORD PTR 0[rbp]
	mov	rdx, QWORD PTR 16[rbp]
	add	eax, eax
	mov	rdx, QWORD PTR [rdx]
	cdqe
	cmp	rax, rdx
	cmovg	rax, rdx
	mov	QWORD PTR [rsp], rax
	mov	eax, DWORD PTR IWLAGN_TX_POWER_NO_CLOSED[rip]
	mov	DWORD PTR 12[rsp], eax
	mov	eax, DWORD PTR IWLAGN_TX_POWER_AUTO[rip]
	mov	DWORD PTR 8[rsp], eax
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR [rax]
	call	IWL_UCODE_API@PLT
	mov	r8, rsp
	mov	ecx, 16
	mov	rdi, rbp
	mov	esi, DWORD PTR REPLY_TX_POWER_DBM_CMD_V1[rip]
	cmp	eax, 1
	mov	edx, DWORD PTR CMD_SYNC[rip]
	cmovne	esi, DWORD PTR REPLY_TX_POWER_DBM_CMD[rip]
	call	iwl_dvm_send_cmd_pdu@PLT
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L11
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	eax, DWORD PTR EAGAIN[rip]
	neg	eax
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	iwlagn_send_tx_power, .-iwlagn_send_tx_power
	.comm	STATUS_SCAN_HW,4,4
	.comm	REPLY_TX_POWER_DBM_CMD_V1,4,4
	.comm	REPLY_TX_POWER_DBM_CMD,4,4
	.comm	IWLAGN_TX_POWER_NO_CLOSED,4,4
	.comm	IWLAGN_TX_POWER_AUTO,4,4
	.comm	EAGAIN,4,4
	.comm	CMD_SYNC,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_lib.c_iwlagn_send_tx_power.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"TX Power requested while scanning!\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	iwlagn_send_tx_power
	.syntax unified
	.arm
	.fpu softvfp
	.type	iwlagn_send_tx_power, %function
iwlagn_send_tx_power:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r3, .L12
	add	r1, r0, #12
	mov	r4, r0
	ldr	r0, [r3]
	ldr	r3, .L12+4
	sub	sp, sp, #24
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	test_bit
	ldr	r1, .L12+8
	bl	WARN_ONCE
	cmp	r0, #0
	bne	.L10
	ldr	r3, [r4, #8]
	ldr	r2, [r4]
	ldr	r3, [r3]
	lsl	r2, r2, #1
	cmp	r3, r2
	movge	r3, r2
	ldr	r1, .L12+12
	ldr	r2, .L12+16
	ldr	r0, [r4, #4]
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	r0, [r0]
	str	r3, [sp, #8]
	str	r1, [sp, #16]
	str	r2, [sp, #12]
	bl	IWL_UCODE_API
	cmp	r0, #1
	ldreq	r3, .L12+20
	ldrne	r3, .L12+24
	ldr	r2, .L12+28
	ldr	r1, [r3]
	add	r3, sp, #8
	ldr	r2, [r2]
	mov	r0, r4
	str	r3, [sp]
	mov	r3, #12
	bl	iwl_dvm_send_cmd_pdu
.L1:
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #24
	@ sp needed
	pop	{r4, pc}
.L10:
	ldr	r3, .L12+32
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	STATUS_SCAN_HW
	.word	.LC1
	.word	.LC0
	.word	IWLAGN_TX_POWER_NO_CLOSED
	.word	IWLAGN_TX_POWER_AUTO
	.word	REPLY_TX_POWER_DBM_CMD_V1
	.word	REPLY_TX_POWER_DBM_CMD
	.word	CMD_SYNC
	.word	EAGAIN
	.size	iwlagn_send_tx_power, .-iwlagn_send_tx_power
	.comm	STATUS_SCAN_HW,4,4
	.comm	REPLY_TX_POWER_DBM_CMD_V1,4,4
	.comm	REPLY_TX_POWER_DBM_CMD,4,4
	.comm	IWLAGN_TX_POWER_NO_CLOSED,4,4
	.comm	IWLAGN_TX_POWER_AUTO,4,4
	.comm	EAGAIN,4,4
	.comm	CMD_SYNC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
