	.file	"extr_airo.c_transmit_802_11_packet.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Short packet %d"
	.text
	.p2align 4
	.type	transmit_802_11_packet, @function
transmit_802_11_packet:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	sar	r14d, 16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	edi, DWORD PTR [rdx]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	header_len@PLT
	cmp	r14d, eax
	jl	.L11
	mov	ecx, DWORD PTR BAP1[rip]
	mov	edx, 6
	mov	esi, ebx
	mov	rdi, rbp
	mov	r12d, eax
	call	bap_setup@PLT
	cmp	rax, QWORD PTR SUCCESS[rip]
	je	.L4
.L7:
	mov	eax, DWORD PTR ERROR[rip]
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L12
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	sub	r14d, r12d
	mov	edi, r14d
	call	cpu_to_le16@PLT
	mov	ecx, DWORD PTR BAP1[rip]
	lea	rsi, 8[rsp]
	mov	rdi, rbp
	mov	edx, 4
	mov	DWORD PTR 8[rsp], eax
	call	bap_write@PLT
	mov	ecx, DWORD PTR BAP1[rip]
	mov	esi, ebx
	mov	rdi, rbp
	mov	edx, 20
	call	bap_setup@PLT
	cmp	rax, QWORD PTR SUCCESS[rip]
	jne	.L7
	mov	ecx, DWORD PTR BAP1[rip]
	mov	edx, r12d
	mov	rsi, r13
	mov	rdi, rbp
	movsx	r15, r12d
	call	bap_write@PLT
	mov	ecx, DWORD PTR BAP1[rip]
	mov	edx, 38
	mov	rdi, rbp
	lea	rax, tail.1974[rip]
	sub	edx, r12d
	lea	r12, 16[rsp]
	lea	rsi, -40[rax+r15*4]
	call	bap_write@PLT
	lea	rsi, 0[r13+r15]
	mov	edx, r14d
	mov	rdi, rbp
	mov	ecx, DWORD PTR BAP1[rip]
	call	bap_write@PLT
	xor	esi, esi
	mov	edx, 8
	mov	rdi, r12
	call	memset@PLT
	lea	rdx, 12[rsp]
	mov	rsi, r12
	mov	rdi, rbp
	mov	eax, DWORD PTR CMD_TRANSMIT[rip]
	mov	DWORD PTR 16[rsp], ebx
	mov	DWORD PTR 20[rsp], eax
	call	issuecommand@PLT
	cmp	rax, QWORD PTR SUCCESS[rip]
	jne	.L7
	test	DWORD PTR 12[rsp], 65280
	je	.L1
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, r14d
	lea	rsi, .LC0[rip]
	mov	edi, DWORD PTR [rax]
	call	airo_print_warn@PLT
	mov	eax, DWORD PTR ERROR[rip]
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	transmit_802_11_packet, .-transmit_802_11_packet
	.data
	.align 32
	.type	tail.1974, @object
	.size	tail.1974, 112
tail.1974:
	.zero	80
	.long	6
	.zero	28
	.comm	SUCCESS,8,8
	.comm	ERROR,4,4
	.comm	CMD_TRANSMIT,4,4
	.comm	BAP1,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_airo.c_transmit_802_11_packet.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Short packet %d\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	transmit_802_11_packet, %function
transmit_802_11_packet:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L13
	mov	r4, r1
	sub	sp, sp, #24
	mov	r7, r0
	ldr	r0, [r2]
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	header_len
	asr	r6, r4, #16
	cmp	r6, r0
	blt	.L11
	ldr	r9, .L13+4
	mov	r5, r0
	ldr	r3, [r9]
	mov	r2, #6
	mov	r1, r4
	mov	r0, r7
	bl	bap_setup
	ldr	r10, .L13+8
	ldr	r3, [r10]
	cmp	r0, r3
	beq	.L4
.L7:
	ldr	r3, .L13+12
	ldr	r0, [r3]
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	sub	r6, r6, r5
	mov	r0, r6
	bl	cpu_to_le16
	mov	r2, #4
	mov	ip, r0
	add	r1, sp, r2
	ldr	r3, [r9]
	mov	r0, r7
	str	ip, [sp, #4]
	bl	bap_write
	ldr	r3, [r9]
	mov	r2, #20
	mov	r1, r4
	mov	r0, r7
	bl	bap_setup
	ldr	r3, [r10]
	cmp	r0, r3
	bne	.L7
	mov	r2, r5
	mov	r1, r8
	ldr	r3, [r9]
	mov	r0, r7
	bl	bap_write
	ldr	r3, .L13+16
	sub	r1, r5, #-1073741814
	add	r1, r3, r1, lsl #2
	rsb	r2, r5, #38
	ldr	r3, [r9]
	mov	r0, r7
	bl	bap_write
	mov	r2, r6
	ldr	r3, [r9]
	add	r1, r8, r5
	mov	r0, r7
	bl	bap_write
	ldr	r3, .L13+20
	mov	r0, r7
	ldr	r3, [r3]
	add	r2, sp, #8
	add	r1, sp, #12
	str	r3, [sp, #16]
	str	r4, [sp, #12]
	bl	issuecommand
	mov	r3, r0
	ldr	r0, [r10]
	cmp	r3, r0
	bne	.L7
	ldr	r3, [sp, #8]
	tst	r3, #65280
	beq	.L1
	b	.L7
.L11:
	ldr	r3, [r7]
	mov	r2, r6
	ldr	r0, [r3]
	ldr	r1, .L13+24
	bl	airo_print_warn
	ldr	r3, .L13+12
	ldr	r0, [r3]
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC1
	.word	BAP1
	.word	SUCCESS
	.word	ERROR
	.word	.LANCHOR0
	.word	CMD_TRANSMIT
	.word	.LC0
	.size	transmit_802_11_packet, .-transmit_802_11_packet
	.comm	SUCCESS,4,4
	.comm	ERROR,4,4
	.comm	CMD_TRANSMIT,4,4
	.comm	BAP1,4,4
	.data
	.align	2
	.set	.LANCHOR0,. + 0
	.type	tail.4258, %object
	.size	tail.4258, 112
tail.4258:
	.space	80
	.word	6
	.space	28
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
