	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92c_phy_sw_chnl             ## -- Begin function rtl92c_phy_sw_chnl
	.p2align	4, 0x90
_rtl92c_phy_sw_chnl:                    ## @rtl92c_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_6
## %bb.1:
	cmpq	$0, 24(%r14)
	jne	LBB0_6
## %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
	leaq	L_.str.2(%rip), %r15
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_RT_CANNOT_IO
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_rtl92c_phy_sw_chnl_callback
	leaq	L_.str.1(%rip), %r15
LBB0_5:
	movq	_COMP_CHAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_RT_TRACE
	movl	$0, (%r14)
	movl	$1, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rtl8192c-common: 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\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	_rtl92c_phy_sw_chnl             ; -- Begin function rtl92c_phy_sw_chnl
	.p2align	2
_rtl92c_phy_sw_chnl:                    ; @rtl92c_phy_sw_chnl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	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	x3, l_.str.2@PAGE
Lloh3:
	add	x3, x3, l_.str.2@PAGEOFF
LBB0_7:
Lloh4:
	adrp	x8, _COMP_CHAN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _COMP_CHAN@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_RT_TRACE
	str	wzr, [x19]
	mov	w0, #1
	b	LBB0_3
LBB0_8:
	mov	x0, x20
	bl	_rtl92c_phy_sw_chnl_callback
Lloh10:
	adrp	x3, l_.str.1@PAGE
Lloh11:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rtl8192c-common: 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\n"

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

.subsections_via_symbols
