	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2500usb_config_channel
_rt2500usb_config_channel:              ## @rt2500usb_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_RF3_TXPOWER@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%edx, %edi
	callq	_TXPOWER_TO_DEV
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_rt2x00_set_field32
	movq	_RF2525E@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rt2x00_rf
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movslq	4(%rbx), %rax
	leaq	_rt2500usb_config_channel.vals(%rip), %rcx
	movl	-4(%rcx,%rax,4), %edx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_rt2500usb_rf_write
	movl	8(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_rt2500usb_rf_write
LBB0_3:
	movl	12(%rbx), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_rt2500usb_rf_write
	movl	16(%rbx), %edx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_rt2500usb_rf_write
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_rt2500usb_rf_write
	movl	8(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	movl	$4, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rt2500usb_rf_write             ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RF3_TXPOWER,4,2                ## @RF3_TXPOWER
	.comm	_RF2525E,4,2                    ## @RF2525E
	.section	__TEXT,__const
	.p2align	4                               ## @rt2500usb_config_channel.vals
_rt2500usb_config_channel.vals:
	.long	2218                            ## 0x8aa
	.long	2222                            ## 0x8ae
	.long	2222                            ## 0x8ae
	.long	2226                            ## 0x8b2
	.long	2226                            ## 0x8b2
	.long	2230                            ## 0x8b6
	.long	2230                            ## 0x8b6
	.long	2234                            ## 0x8ba
	.long	2234                            ## 0x8ba
	.long	2238                            ## 0x8be
	.long	2231                            ## 0x8b7
	.long	2306                            ## 0x902
	.long	2306                            ## 0x902
	.long	2310                            ## 0x906

	.no_dead_strip	_rt2500usb_config_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2500usb_config_channel
_rt2500usb_config_channel:              ; @rt2500usb_config_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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _RF3_TXPOWER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RF3_TXPOWER@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x2
	bl	_TXPOWER_TO_DEV
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_rt2x00_set_field32
Lloh3:
	adrp	x8, _RF2525E@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RF2525E@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_rf
	cbz	x0, LBB0_3
; %bb.1:
	ldrsw	x8, [x20, #4]
Lloh6:
	adrp	x9, _rt2500usb_config_channel.vals@PAGE
Lloh7:
	add	x9, x9, _rt2500usb_config_channel.vals@PAGEOFF
	add	x8, x9, x8, lsl #2
	ldur	w2, [x8, #-4]
	mov	x0, x19
	mov	w1, #2
	bl	_rt2500usb_rf_write
	ldr	w2, [x20, #8]
	cbz	w2, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #4
	bl	_rt2500usb_rf_write
LBB0_3:
	ldr	w2, [x20, #12]
	mov	x0, x19
	mov	w1, #1
	bl	_rt2500usb_rf_write
	ldr	w2, [x20, #16]
	mov	x0, x19
	mov	w1, #2
	bl	_rt2500usb_rf_write
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #3
	bl	_rt2500usb_rf_write
	ldr	w2, [x20, #8]
	cbz	w2, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #4
	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	_rt2500usb_rf_write
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RF3_TXPOWER,4,2                ; @RF3_TXPOWER
	.comm	_RF2525E,4,2                    ; @RF2525E
	.section	__TEXT,__const
	.p2align	2                               ; @rt2500usb_config_channel.vals
_rt2500usb_config_channel.vals:
	.long	2218                            ; 0x8aa
	.long	2222                            ; 0x8ae
	.long	2222                            ; 0x8ae
	.long	2226                            ; 0x8b2
	.long	2226                            ; 0x8b2
	.long	2230                            ; 0x8b6
	.long	2230                            ; 0x8b6
	.long	2234                            ; 0x8ba
	.long	2234                            ; 0x8ba
	.long	2238                            ; 0x8be
	.long	2231                            ; 0x8b7
	.long	2306                            ; 0x902
	.long	2306                            ; 0x902
	.long	2310                            ; 0x906

	.no_dead_strip	_rt2500usb_config_channel
.subsections_via_symbols
