	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2400pci_config_channel
_rt2400pci_config_channel:              ## @rt2400pci_config_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	%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	%rsi, %rbx
	movq	%rdi, %r14
	movq	_RF1_TUNER@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field32
	leaq	4(%rbx), %r15
	movq	_RF3_TUNER@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field32
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_rt2400pci_rf_write
	movl	8(%rbx), %edx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_rt2400pci_rf_write
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_rt2400pci_rf_write
	movq	_RF2420@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rt2x00_rf
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_rt2400pci_rf_write
	movq	%r14, %rdi
	movl	$2, %esi
	movl	$797234, %edx                   ## imm = 0xC2A32
	callq	_rt2400pci_rf_write
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_rt2400pci_rf_write
	movl	$1, %edi
	callq	_msleep
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_rt2400pci_rf_write
	movl	8(%rbx), %edx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_rt2400pci_rf_write
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_rt2400pci_rf_write
	movl	$1, %edi
	callq	_msleep
	movl	(%r12), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field32
	movl	(%r13), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field32
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_rt2400pci_rf_write
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_rt2400pci_rf_write
	movq	_CNT0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rt2x00mmio_register_read
	movl	%eax, (%rbx)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RF1_TUNER,4,2                  ## @RF1_TUNER
	.comm	_RF3_TUNER,4,2                  ## @RF3_TUNER
	.comm	_RF2420,4,2                     ## @RF2420
	.comm	_CNT0,4,2                       ## @CNT0
	.no_dead_strip	_rt2400pci_config_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2400pci_config_channel
_rt2400pci_config_channel:              ; @rt2400pci_config_channel
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _RF1_TUNER@GOTPAGE
Lloh1:
	ldr	x22, [x22, _RF1_TUNER@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #1
	bl	_rt2x00_set_field32
	add	x21, x19, #4
Lloh2:
	adrp	x23, _RF3_TUNER@GOTPAGE
Lloh3:
	ldr	x23, [x23, _RF3_TUNER@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x21
	mov	w2, #1
	bl	_rt2x00_set_field32
	ldr	w2, [x19]
	mov	x0, x20
	mov	w1, #1
	bl	_rt2400pci_rf_write
	ldr	w2, [x19, #8]
	mov	x0, x20
	mov	w1, #2
	bl	_rt2400pci_rf_write
	ldr	w2, [x19, #4]
	mov	x0, x20
	mov	w1, #3
	bl	_rt2400pci_rf_write
Lloh4:
	adrp	x8, _RF2420@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RF2420@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_rf
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w2, [x19]
	mov	x0, x20
	mov	w1, #1
	bl	_rt2400pci_rf_write
	mov	x0, x20
	mov	w1, #2
	mov	w2, #10802
	movk	w2, #12, lsl #16
	bl	_rt2400pci_rf_write
	ldr	w2, [x19, #4]
	mov	x0, x20
	mov	w1, #3
	bl	_rt2400pci_rf_write
	mov	w0, #1
	bl	_msleep
	ldr	w2, [x19]
	mov	x0, x20
	mov	w1, #1
	bl	_rt2400pci_rf_write
	ldr	w2, [x19, #8]
	mov	x0, x20
	mov	w1, #2
	bl	_rt2400pci_rf_write
	ldr	w2, [x19, #4]
	mov	x0, x20
	mov	w1, #3
	bl	_rt2400pci_rf_write
	mov	w0, #1
	bl	_msleep
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_rt2x00_set_field32
	ldr	w1, [x23]
	mov	x0, x21
	mov	w2, #0
	bl	_rt2x00_set_field32
	ldr	w2, [x19]
	mov	x0, x20
	mov	w1, #1
	bl	_rt2400pci_rf_write
	ldr	w2, [x19, #4]
	mov	x0, x20
	mov	w1, #3
	bl	_rt2400pci_rf_write
Lloh7:
	adrp	x8, _CNT0@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CNT0@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00mmio_register_read
	str	w0, [x19]
LBB0_2:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_RF1_TUNER,4,2                  ; @RF1_TUNER
	.comm	_RF3_TUNER,4,2                  ; @RF3_TUNER
	.comm	_RF2420,4,2                     ; @RF2420
	.comm	_CNT0,4,2                       ; @CNT0
	.no_dead_strip	_rt2400pci_config_channel
.subsections_via_symbols
