	.file	"extr_phy_n.c_b43_nphy_gen_load_samples.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"allocation for samples generation failed\n"
	.text
	.p2align 4
	.type	b43_nphy_gen_load_samples, @function
b43_nphy_gen_load_samples:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	cmp	QWORD PTR 8[rdi], 1
	sbb	r13d, r13d
	mov	QWORD PTR 8[rsp], rdi
	and	r13b, 96
	add	r13d, 320
	cmp	QWORD PTR 8[rdi], 1
	sbb	ebx, ebx
	and	ebx, -20
	add	ebx, 40
	test	ecx, ecx
	jne	.L18
.L3:
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 8
	mov	edi, r13d
	call	kcalloc@PLT
	mov	QWORD PTR [rsp], rax
	test	rax, rax
	je	.L19
	lea	eax, [r12+r12*8]
	mov	rcx, QWORD PTR [rsp]
	sal	eax, 2
	cdq
	mov	r15, rcx
	idiv	ebx
	xor	ebx, ebx
	sal	eax, 16
	movsx	r12, eax
	sar	eax, 31
	imul	r12, r12, 1374389535
	sar	r12, 37
	sub	r12d, eax
	lea	eax, -1[r13]
	lea	r14, 8[rcx+rax*8]
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, ebx
	add	r15, 8
	add	ebx, r12d
	call	b43_cordic@PLT
	mov	edi, eax
	mov	QWORD PTR -8[r15], rax
	imul	edi, ebp
	call	CORDIC_CONVERT@PLT
	mov	edi, DWORD PTR -4[r15]
	mov	DWORD PTR -8[r15], eax
	imul	edi, ebp
	call	CORDIC_CONVERT@PLT
	mov	DWORD PTR -4[r15], eax
	cmp	r15, r14
	jne	.L8
	mov	r14, QWORD PTR [rsp]
	mov	rdi, QWORD PTR 8[rsp]
	mov	edx, r13d
	mov	rsi, r14
	call	b43_nphy_load_samples@PLT
	mov	rdi, r14
	mov	ebx, eax
	call	kfree@PLT
	test	ebx, ebx
	mov	eax, 0
	cmovs	r13d, eax
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L18:
	.cfi_restore_state
	mov	esi, DWORD PTR B43_NPHY_BBCFG[rip]
	mov	r14, rdi
	call	b43_phy_read@PLT
	and	eax, DWORD PTR B43_NPHY_BBCFG_RSTRX[rip]
	cmp	eax, 1
	sbb	r13d, r13d
	and	r13d, -4
	add	r13d, 164
	cmp	eax, 1
	sbb	ebx, ebx
	and	ebx, -2
	add	ebx, 82
	cmp	QWORD PTR 8[r14], 0
	je	.L3
	mov	ebx, r13d
	add	r13d, r13d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rax, QWORD PTR 8[rsp]
	lea	rsi, .LC0[rip]
	xor	r13d, r13d
	mov	edi, DWORD PTR [rax]
	call	b43err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	b43_nphy_gen_load_samples, .-b43_nphy_gen_load_samples
	.comm	GFP_KERNEL,4,4
	.comm	B43_NPHY_BBCFG_RSTRX,4,4
	.comm	B43_NPHY_BBCFG,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_n.c_b43_nphy_gen_load_samples.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"allocation for samples generation failed\012\000"
	.global	__aeabi_idiv
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	b43_nphy_gen_load_samples, %function
b43_nphy_gen_load_samples:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	ip, [r0, #4]
	sub	sp, sp, #28
	cmp	ip, #0
	movne	r10, #320
	moveq	r10, #160
	movne	r5, #40
	moveq	r5, #20
	cmp	r3, #0
	ldr	r3, .L25
	str	r0, [sp, #4]
	mov	r4, r1
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bne	.L22
.L3:
	ldr	r3, .L25+4
	mov	r1, #8
	mov	r0, r10
	ldr	r2, [r3]
	bl	kcalloc
	subs	r9, r0, #0
	beq	.L23
	add	r4, r4, r4, lsl #3
	mov	r1, r5
	lsl	r0, r4, #2
	bl	__aeabi_idiv
	mov	r4, r9
	mov	fp, #0
	ldr	r7, .L25+8
	lsl	r0, r0, #16
	smull	r3, r7, r0, r7
	asr	r0, r0, #31
	rsb	r7, r0, r7, asr #5
	add	r8, r9, r10, lsl #3
	add	r5, sp, #8
.L8:
	mov	r1, fp
	mov	r0, r5
	bl	b43_cordic
	ldm	r5, {r0, r1}
	stm	r4, {r0, r1}
	mul	r0, r6, r0
	bl	CORDIC_CONVERT
	ldr	r2, [r4, #4]
	str	r0, [r4]
	mul	r0, r2, r6
	bl	CORDIC_CONVERT
	add	r4, r4, #8
	str	r0, [r4, #-4]
	cmp	r4, r8
	add	fp, fp, r7
	bne	.L8
	mov	r2, r10
	mov	r1, r9
	ldr	r0, [sp, #4]
	bl	b43_nphy_load_samples
	mov	r4, r0
	mov	r0, r9
	bl	kfree
	cmp	r4, #0
	movlt	r10, #0
.L1:
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	mov	r0, r10
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	ldr	r3, .L25+12
	ldr	r1, [r3]
	bl	b43_phy_read
	ldr	r2, .L25+16
	ldr	r3, [sp, #4]
	ldr	r2, [r2]
	ldr	r3, [r3, #4]
	and	r0, r0, r2
	cmp	r0, #0
	movne	r10, #164
	movne	r5, #82
	moveq	r10, #160
	moveq	r5, #80
	cmp	r3, #0
	movne	r5, r10
	lslne	r10, r10, #1
	b	.L3
.L23:
	ldr	r3, [sp, #4]
	ldr	r1, .L25+20
	ldr	r0, [r3]
	mov	r10, r9
	bl	b43err
	b	.L1
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	.LC1
	.word	GFP_KERNEL
	.word	1374389535
	.word	B43_NPHY_BBCFG
	.word	B43_NPHY_BBCFG_RSTRX
	.word	.LC0
	.size	b43_nphy_gen_load_samples, .-b43_nphy_gen_load_samples
	.comm	GFP_KERNEL,4,4
	.comm	B43_NPHY_BBCFG_RSTRX,4,4
	.comm	B43_NPHY_BBCFG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
