	.file	"extr_phy_n.c_wlc_phy_stay_in_carriersearch_nphy.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	wlc_phy_stay_in_carriersearch_nphy
	.type	wlc_phy_stay_in_carriersearch_nphy, @function
wlc_phy_stay_in_carriersearch_nphy:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	movabs	rax, 281470681808895
	mov	QWORD PTR [rsp], rax
	mov	rax, QWORD PTR [rdi]
	test	esi, esi
	je	.L2
	test	rax, rax
	je	.L8
.L3:
	add	rax, 1
	mov	rdi, rbp
	mov	QWORD PTR 0[rbp], rax
	call	wlc_phy_resetcca_nphy@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	sub	rax, 1
	mov	QWORD PTR [rdi], rax
	jne	.L1
	mov	edx, DWORD PTR 8[rdi]
	mov	esi, 7
	call	wlc_phy_classifier_nphy@PLT
	mov	rdx, QWORD PTR 16[rbp]
	mov	esi, 1
	mov	rdi, rbp
	call	wlc_phy_clip_det_nphy@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	xor	edx, edx
	xor	esi, esi
	call	wlc_phy_classifier_nphy@PLT
	mov	edx, 4
	mov	esi, 7
	mov	rdi, rbp
	mov	DWORD PTR 8[rbp], eax
	call	wlc_phy_classifier_nphy@PLT
	mov	rdx, QWORD PTR 16[rbp]
	xor	esi, esi
	mov	rdi, rbp
	call	wlc_phy_clip_det_nphy@PLT
	mov	rdx, rsp
	mov	esi, 1
	mov	rdi, rbp
	call	wlc_phy_clip_det_nphy@PLT
	mov	rax, QWORD PTR 0[rbp]
	jmp	.L3
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	wlc_phy_stay_in_carriersearch_nphy, .-wlc_phy_stay_in_carriersearch_nphy
	.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_wlc_phy_stay_in_carriersearch_nphy.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	wlc_phy_stay_in_carriersearch_nphy
	.syntax unified
	.arm
	.fpu softvfp
	.type	wlc_phy_stay_in_carriersearch_nphy, %function
wlc_phy_stay_in_carriersearch_nphy:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	sub	sp, sp, #16
	ldr	r3, .L10
	ldr	r2, .L10+4
	cmp	r1, #0
	add	r6, sp, #4
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	ldm	r3, {r0, r1}
	ldr	r5, [r4]
	stm	r6, {r0, r1}
	beq	.L2
	cmp	r5, #0
	beq	.L8
.L3:
	add	r5, r5, #1
	mov	r0, r4
	str	r5, [r4]
	bl	wlc_phy_resetcca_nphy
.L1:
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	sub	r5, r5, #1
	cmp	r5, #0
	str	r5, [r4]
	bne	.L1
	ldr	r2, [r4, #4]
	mov	r1, #7
	mov	r0, r4
	bl	wlc_phy_classifier_nphy
	mov	r0, r4
	mov	r1, #1
	ldr	r2, [r4, #8]
	bl	wlc_phy_clip_det_nphy
	b	.L1
.L8:
	mov	r2, r5
	mov	r1, r5
	mov	r0, r4
	bl	wlc_phy_classifier_nphy
	mov	r2, #4
	mov	r1, #7
	str	r0, [r4, #4]
	mov	r0, r4
	bl	wlc_phy_classifier_nphy
	mov	r1, r5
	ldr	r2, [r4, #8]
	mov	r0, r4
	bl	wlc_phy_clip_det_nphy
	mov	r2, r6
	mov	r1, #1
	mov	r0, r4
	bl	wlc_phy_clip_det_nphy
	ldr	r5, [r4]
	b	.L3
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LANCHOR0
	.word	.LC1
	.size	wlc_phy_stay_in_carriersearch_nphy, .-wlc_phy_stay_in_carriersearch_nphy
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC0:
	.word	65535
	.word	65535
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
