	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8225_rf_set_channel
_rtl8225_rf_set_channel:                ## @rtl8225_rf_set_channel
	.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
	movq	(%rdi), %r15
	movq	(%rsi), %rax
	movl	(%rax), %edi
	callq	_ieee80211_frequency_to_channel
	movl	%eax, %r14d
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_rtl8225_rf_init@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_rtl8225_rf_set_tx_power
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_rtl8225z2_rf_set_tx_power
LBB0_3:
	movq	_rtl8225_chan@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rcx
	movl	-4(%rax,%rcx,4), %edx
	movq	%rbx, %rdi
	movl	$7, %esi
	callq	_rtl8225_write
	movl	$10, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msleep                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_rtl8225_rf_init,8,3            ## @rtl8225_rf_init
	.comm	_rtl8225_chan,8,3               ## @rtl8225_chan
	.no_dead_strip	_rtl8225_rf_set_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8225_rf_set_channel
_rtl8225_rf_set_channel:                ; @rtl8225_rf_set_channel
	.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	x19, x0
	ldr	x21, [x0]
	ldr	x8, [x1]
	ldr	w0, [x8]
	bl	_ieee80211_frequency_to_channel
	mov	x20, x0
	ldr	x8, [x21]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _rtl8225_rf_init@GOTPAGE
Lloh1:
	ldr	x9, [x9, _rtl8225_rf_init@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	x0, x19
	mov	x1, x20
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	bl	_rtl8225_rf_set_tx_power
	b	LBB0_3
LBB0_2:
	bl	_rtl8225z2_rf_set_tx_power
LBB0_3:
Lloh3:
	adrp	x8, _rtl8225_chan@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rtl8225_chan@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	sub	w9, w20, #1
	ldr	w2, [x8, w9, sxtw #2]
	mov	x0, x19
	mov	w1, #7
	bl	_rtl8225_write
	mov	w0, #10
	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
	b	_msleep
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_rtl8225_rf_init,8,3            ; @rtl8225_rf_init
	.comm	_rtl8225_chan,8,3               ; @rtl8225_chan
	.no_dead_strip	_rtl8225_rf_set_channel
.subsections_via_symbols
