	.file	"extr_main.c_b43_write_template_common.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	b43_write_template_common, @function
b43_write_template_common:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, r8d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	movsx	rsi, edx
	mov	rdx, r9
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	add	rsi, QWORD PTR FCS_LEN[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rdi, rsp
	mov	QWORD PTR [rsp], 0
	call	b43_generate_plcp_hdr@PLT
	mov	rdi, QWORD PTR [rsp]
	call	le32_to_cpu@PLT
	mov	esi, r14d
	mov	rdi, r15
	mov	edx, eax
	call	b43_ram_write@PLT
	mov	eax, DWORD PTR [r12]
	lea	esi, 4[r14]
	mov	rdi, r15
	mov	edx, DWORD PTR 8[r12]
	add	r14d, 8
	sal	eax, 16
	sal	edx, 24
	or	edx, eax
	call	b43_ram_write@PLT
	cmp	ebp, 2
	jle	.L2
	mov	ebx, 2
	.p2align 4,,10
	.p2align 3
.L6:
	movsx	rax, ebx
	lea	esi, 1[rbx]
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR [r12+rax*8]
	mov	edx, eax
	cmp	ebp, esi
	jle	.L3
	mov	edx, DWORD PTR 8[r12+rcx]
	sal	edx, 8
	or	edx, eax
.L3:
	lea	eax, 2[rbx]
	cmp	ebp, eax
	jle	.L4
	mov	eax, DWORD PTR 16[r12+rcx]
	sal	eax, 16
	or	edx, eax
.L4:
	lea	eax, 3[rbx]
	cmp	ebp, eax
	jle	.L5
	mov	rax, QWORD PTR 24[r12+rcx]
	sal	eax, 24
	or	edx, eax
.L5:
	lea	esi, -2[r14+rbx]
	mov	rdi, r15
	add	ebx, 4
	call	b43_ram_write@PLT
	cmp	ebp, ebx
	jg	.L6
.L2:
	mov	esi, DWORD PTR B43_SHM_SHARED[rip]
	lea	ecx, 4[rbp]
	mov	edx, r13d
	mov	rdi, r15
	call	b43_shm_write16@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 24
	.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
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	b43_write_template_common, .-b43_write_template_common
	.comm	FCS_LEN,8,8
	.comm	B43_SHM_SHARED,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_main.c_b43_write_template_common.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	b43_write_template_common, %function
b43_write_template_common:
	@ args = 8, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r6, r2
	mov	ip, #0
	mov	r7, r3
	ldr	r3, .L12
	mov	r5, r1
	ldr	r1, [r3]
	sub	sp, sp, #12
	ldr	r3, .L12+4
	mov	r8, r0
	ldr	r2, [sp, #44]
	add	r1, r6, r1
	mov	r0, sp
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	str	ip, [sp]
	bl	b43_generate_plcp_hdr
	ldr	r0, [sp]
	bl	le32_to_cpu
	mov	r1, r7
	mov	r2, r0
	mov	r0, r8
	bl	b43_ram_write
	ldm	r5, {r2, r3}
	lsl	r3, r3, #24
	mov	r0, r8
	orr	r2, r3, r2, lsl #16
	add	r1, r7, #4
	bl	b43_ram_write
	cmp	r6, #2
	ble	.L2
	mov	r4, #3
	sub	r9, r6, #3
	bic	r9, r9, #3
	add	r7, r7, #5
	add	r9, r9, #7
.L6:
	cmp	r6, r4
	ldr	r2, [r5, #8]
	ldrgt	r3, [r5, #12]
	add	ip, r4, #2
	orrgt	r2, r2, r3, lsl #8
	add	r3, r4, #1
	cmp	r6, r3
	ldrgt	r3, [r5, #16]
	add	r1, r7, r4
	orrgt	r2, r2, r3, lsl #16
	cmp	r6, ip
	ldrgt	r3, [r5, #20]
	mov	r0, r8
	orrgt	r2, r2, r3, lsl #24
	add	r4, r4, #4
	bl	b43_ram_write
	cmp	r4, r9
	add	r5, r5, #16
	bne	.L6
.L2:
	ldr	r2, .L12+8
	add	r3, r6, #4
	ldr	r1, [r2]
	mov	r0, r8
	ldr	r2, [sp, #40]
	bl	b43_shm_write16
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	FCS_LEN
	.word	.LC0
	.word	B43_SHM_SHARED
	.size	b43_write_template_common, .-b43_write_template_common
	.comm	FCS_LEN,4,4
	.comm	B43_SHM_SHARED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
