	.file	"extr_phy_g.c_b43_set_original_gains.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	b43_set_original_gains, @function
b43_set_original_gains:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	cmp	DWORD PTR [rdi], 1
	jle	.L12
	mov	ebp, DWORD PTR B43_OFDMTAB_GAINX[rip]
	mov	r13d, 24
	mov	r12d, 8
.L6:
	xor	ebx, ebx
.L4:
	lea	ecx, [rbx+rbx]
	mov	eax, ebx
	mov	edx, ebx
	mov	esi, ebp
	sar	eax
	and	ecx, 2
	mov	rdi, r14
	add	ebx, 1
	or	ecx, eax
	call	b43_ofdmtab_write16@PLT
	cmp	ebx, 4
	jne	.L4
	sub	r13d, r12d
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L5:
	lea	edx, [r12+rbx]
	mov	ecx, ebx
	mov	esi, ebp
	mov	rdi, r14
	call	b43_ofdmtab_write16@PLT
	add	ebx, 1
	cmp	r13d, ebx
	jne	.L5
	mov	rdi, r14
	mov	ecx, 16448
	mov	edx, 49087
	mov	esi, 1184
	call	b43_phy_maskset@PLT
	mov	rdi, r14
	mov	ecx, 16448
	mov	edx, 49087
	mov	esi, 1185
	call	b43_phy_maskset@PLT
	mov	rdi, r14
	mov	edx, 49087
	mov	esi, 1186
	mov	ecx, 16384
	call	b43_phy_maskset@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r14
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	edx, 1
	pop	r12
	.cfi_def_cfa_offset 24
	xor	esi, esi
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	b43_dummy_transmission@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	ebp, DWORD PTR B43_OFDMTAB_GAINX_R1[rip]
	mov	r13d, 32
	mov	r12d, 16
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	b43_set_original_gains, .-b43_set_original_gains
	.comm	B43_OFDMTAB_GAINX_R1,4,4
	.comm	B43_OFDMTAB_GAINX,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_phy_g.c_b43_set_original_gains.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	b43_set_original_gains, %function
b43_set_original_gains:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #1
	mov	r5, r0
	ble	.L12
	mov	r7, #24
	mov	r8, #8
	ldr	r3, .L13
	ldr	r6, [r3]
.L6:
	mov	r4, #0
.L4:
	lsl	r3, r4, #1
	and	r3, r3, #2
	mov	r2, r4
	orr	r3, r3, r4, asr #1
	mov	r1, r6
	mov	r0, r5
	add	r4, r4, #1
	bl	b43_ofdmtab_write16
	cmp	r4, #4
	bne	.L4
	mov	r4, #0
	sub	r7, r7, r8
.L5:
	mov	r3, r4
	add	r2, r8, r4
	mov	r1, r6
	mov	r0, r5
	add	r4, r4, #1
	bl	b43_ofdmtab_write16
	cmp	r7, r4
	bne	.L5
	mov	r1, #1184
	mov	r0, r5
	ldr	r3, .L13+4
	ldr	r2, .L13+8
	bl	b43_phy_maskset
	mov	r0, r5
	ldr	r3, .L13+4
	ldr	r2, .L13+8
	ldr	r1, .L13+12
	bl	b43_phy_maskset
	mov	r0, r5
	ldr	r2, .L13+8
	ldr	r1, .L13+16
	mov	r3, #16384
	bl	b43_phy_maskset
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r2, #1
	mov	r1, #0
	b	b43_dummy_transmission
.L12:
	ldr	r3, .L13+20
	mov	r7, #32
	mov	r8, #16
	ldr	r6, [r3]
	b	.L6
.L14:
	.align	2
.L13:
	.word	B43_OFDMTAB_GAINX
	.word	16448
	.word	49087
	.word	1185
	.word	1186
	.word	B43_OFDMTAB_GAINX_R1
	.size	b43_set_original_gains, .-b43_set_original_gains
	.comm	B43_OFDMTAB_GAINX_R1,4,4
	.comm	B43_OFDMTAB_GAINX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
