	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8723be_phy_sw_chnl          ## -- Begin function rtl8723be_phy_sw_chnl
	.p2align	4, 0x90
_rtl8723be_phy_sw_chnl:                 ## @rtl8723be_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %r15
	xorl	%eax, %eax
	cmpl	$0, (%r14)
	jne	LBB0_7
## %bb.1:
	cmpq	$0, 24(%r14)
	jne	LBB0_7
## %bb.2:
	xorl	%edi, %edi
	cmpl	$15, 4(%r14)
	setge	%dil
	leaq	L_.str(%rip), %rsi
	callq	_WARN_ONCE
	movl	$1, (%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r14)
	movq	%r15, %rdi
	callq	_is_hal_stop
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_RT_CANNOT_IO
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	movq	_COMP_CHAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
LBB0_6:
	movl	$0, (%r14)
	movl	$1, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, %rdi
	callq	_rtl8723be_phy_sw_chnl_callback
	movq	_COMP_CHAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%r14), %r8d
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rtl8723be: WIRELESS_MODE_G but channel>14"

	.comm	_COMP_CHAN,4,2                  ## @COMP_CHAN
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
L_.str.1:                               ## @.str.1
	.asciz	"sw_chnl_inprogress false schedule workitem current channel %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"sw_chnl_inprogress false driver sleep or unload\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8723be_phy_sw_chnl          ; -- Begin function rtl8723be_phy_sw_chnl
	.p2align	2
_rtl8723be_phy_sw_chnl:                 ; @rtl8723be_phy_sw_chnl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_hal
	ldr	w8, [x19]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
	mov	x21, x0
	ldr	w8, [x19, #4]
	cmp	w8, #14
	cset	w0, gt
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN_ONCE
	mov	w8, #1
	str	w8, [x19]
	stp	xzr, xzr, [x19, #8]
	mov	x0, x21
	bl	_is_hal_stop
	cbnz	w0, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_RT_CANNOT_IO
	cbz	w0, LBB0_8
LBB0_6:
Lloh2:
	adrp	x8, _COMP_CHAN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _COMP_CHAN@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x3, l_.str.2@PAGE
Lloh9:
	add	x3, x3, l_.str.2@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_RT_TRACE
	str	wzr, [x19]
	mov	w0, #1
	b	LBB0_3
LBB0_8:
	mov	x0, x20
	bl	_rtl8723be_phy_sw_chnl_callback
Lloh10:
	adrp	x8, _COMP_CHAN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _COMP_CHAN@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	ldr	w8, [x19, #4]
	str	x8, [sp]
Lloh16:
	adrp	x3, l_.str.1@PAGE
Lloh17:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rtl8723be: WIRELESS_MODE_G but channel>14"

	.comm	_COMP_CHAN,4,2                  ; @COMP_CHAN
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
l_.str.1:                               ; @.str.1
	.asciz	"sw_chnl_inprogress false schedule workitem current channel %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"sw_chnl_inprogress false driver sleep or unload\n"

.subsections_via_symbols
