	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92s_phy_sw_chnl             ## -- Begin function rtl92s_phy_sw_chnl
	.p2align	4, 0x90
_rtl92s_phy_sw_chnl:                    ## @rtl92s_phy_sw_chnl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_rtl_priv
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %r12
	movq	_COMP_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	24(%rbx), %r8d
	leaq	L_.str(%rip), %rcx
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	cmpl	$0, (%rbx)
	jne	LBB0_9
## %bb.1:
	cmpq	$0, 32(%rbx)
	jne	LBB0_9
## %bb.2:
	movq	%r12, %rdi
	callq	_is_hal_stop
	testq	%rax, %rax
	jne	LBB0_9
## %bb.3:
	movl	$1, (%rbx)
	leaq	16(%rbx), %r15
	movq	%rbx, %r12
	addq	$8, %r12
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%rbx), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	movq	%r12, %rcx
	leaq	-48(%rbp), %r8
	callq	__rtl92s_phy_sw_chnl_step_by_step
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	jg	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, (%rbx)
	jne	LBB0_5
	jmp	LBB0_8
LBB0_7:
	callq	_mdelay
LBB0_8:
	movl	$0, (%rbx)
	movq	_COMP_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	$1, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_SCAN,4,2                  ## @COMP_SCAN
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"switch to channel%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"<==\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92s_phy_sw_chnl             ; -- Begin function rtl92s_phy_sw_chnl
	.p2align	2
_rtl92s_phy_sw_chnl:                    ; @rtl92s_phy_sw_chnl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_hal
	mov	x21, x0
Lloh0:
	adrp	x23, _COMP_SCAN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _COMP_SCAN@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x24, _DBG_TRACE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _DBG_TRACE@GOTPAGEOFF]
	ldr	w2, [x24]
	ldr	w8, [x19, #24]
	str	x8, [sp]
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	w8, [x19]
	cbnz	w8, LBB0_3
; %bb.1:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_is_hal_stop
	cbz	x0, LBB0_5
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	mov	w8, #1
	str	w8, [x19]
	mov	x21, x19
	str	xzr, [x21, #16]!
	mov	x22, x19
	str	xzr, [x22, #8]!
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, #24]
	add	x4, sp, #8
	mov	x0, x20
	mov	x2, x21
	mov	x3, x22
	bl	__rtl92s_phy_sw_chnl_step_by_step
	cbnz	w0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [sp, #8]
	cmp	x0, #1
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x19]
	cbnz	w8, LBB0_6
	b	LBB0_10
LBB0_9:
	bl	_mdelay
LBB0_10:
	str	wzr, [x19]
	ldr	w1, [x23]
	ldr	w2, [x24]
Lloh6:
	adrp	x3, l_.str.1@PAGE
Lloh7:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	mov	w0, #1
	b	LBB0_4
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_SCAN,4,2                  ; @COMP_SCAN
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"switch to channel%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"<==\n"

.subsections_via_symbols
