	.file	"extr_phy.c_rtl8723e_phy_sw_chnl_callback.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"switch to channel%d\n"
.LC1:
	.string	"\n"
	.text
	.p2align 4
	.globl	rtl8723e_phy_sw_chnl_callback
	.type	rtl8723e_phy_sw_chnl_callback, @function
rtl8723e_phy_sw_chnl_callback:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	rtl_priv@PLT
	mov	rdi, rbx
	mov	rbp, rax
	call	rtl_priv@PLT
	mov	rdi, rax
	call	rtl_hal@PLT
	mov	r8d, DWORD PTR 12[rbp]
	mov	edx, DWORD PTR DBG_TRACE[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR COMP_SCAN[rip]
	mov	r12, rax
	lea	rcx, .LC0[rip]
	xor	eax, eax
	call	RT_TRACE@PLT
	mov	rdi, r12
	call	is_hal_stop@PLT
	test	rax, rax
	jne	.L1
	mov	r12, rsp
.L2:
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	je	.L4
	mov	esi, DWORD PTR 12[rbp]
	lea	rcx, 4[rbp]
	lea	rdx, 8[rbp]
	mov	r8, r12
	mov	rdi, rbx
	call	_rtl8723e_phy_sw_chnl_step_by_step@PLT
	test	eax, eax
	jne	.L5
	mov	rdi, QWORD PTR [rsp]
	test	rdi, rdi
	jle	.L2
	call	mdelay@PLT
.L4:
	mov	edx, DWORD PTR DBG_TRACE[rip]
	mov	esi, DWORD PTR COMP_SCAN[rip]
	mov	rdi, rbp
	xor	eax, eax
	lea	rcx, .LC1[rip]
	call	RT_TRACE@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	DWORD PTR 0[rbp], 0
	jmp	.L4
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rtl8723e_phy_sw_chnl_callback, .-rtl8723e_phy_sw_chnl_callback
	.comm	DBG_TRACE,4,4
	.comm	COMP_SCAN,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.c_rtl8723e_phy_sw_chnl_callback.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"switch to channel%d\012\000"
	.align	2
.LC1:
	.ascii	"\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	rtl8723e_phy_sw_chnl_callback
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtl8723e_phy_sw_chnl_callback, %function
rtl8723e_phy_sw_chnl_callback:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L15
	sub	sp, sp, #16
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r5, r0
	bl	rtl_priv
	mov	r4, r0
	mov	r0, r5
	bl	rtl_priv
	bl	rtl_hal
	mov	r6, r0
	ldr	r3, [r4, #12]
	ldr	r8, .L15+4
	ldr	r7, .L15+8
	ldr	r2, [r8]
	ldr	r1, [r7]
	str	r3, [sp]
	mov	r0, r4
	ldr	r3, .L15+12
	bl	RT_TRACE
	mov	r0, r6
	bl	is_hal_stop
	cmp	r0, #0
	bne	.L1
	add	r10, r4, #4
	add	r9, r4, #8
	add	r6, sp, #8
.L2:
	ldr	r1, [r4]
	cmp	r1, #0
	beq	.L4
	ldr	r1, [r4, #12]
	mov	r3, r10
	mov	r2, r9
	mov	r0, r5
	str	r6, [sp]
	bl	_rtl8723e_phy_sw_chnl_step_by_step
	cmp	r0, #0
	bne	.L5
	ldr	r0, [sp, #8]
	cmp	r0, #0
	ble	.L2
	bl	mdelay
.L4:
	mov	r0, r4
	ldr	r2, [r8]
	ldr	r1, [r7]
	ldr	r3, .L15+16
	bl	RT_TRACE
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	mov	r3, #0
	str	r3, [r4]
	b	.L4
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC2
	.word	DBG_TRACE
	.word	COMP_SCAN
	.word	.LC0
	.word	.LC1
	.size	rtl8723e_phy_sw_chnl_callback, .-rtl8723e_phy_sw_chnl_callback
	.comm	DBG_TRACE,4,4
	.comm	COMP_SCAN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
