	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8225z2_rf_set_tx_power
_rtl8225z2_rf_set_tx_power:             ## @rtl8225z2_rf_set_tx_power
	.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	%rdi, %r13
	movq	(%rdi), %r14
	movq	8(%r14), %rax
	movslq	%esi, %rcx
	movl	-4(%rax,%rcx,4), %r15d
	movzbl	%r15b, %r12d
	cmpl	$13, %r12d
	jne	LBB0_1
## %bb.2:
	movq	_rtl8225z2_tx_power_cck_A@GOTPCREL(%rip), %rax
	cmpl	$12, %r12d
	je	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_rtl8225z2_tx_power_cck@GOTPCREL(%rip), %rax
	cmpl	$12, %r12d
	jne	LBB0_5
LBB0_4:
	movq	_rtl8225z2_tx_power_cck_B@GOTPCREL(%rip), %rax
LBB0_5:
	cmpl	$14, %esi
	jne	LBB0_7
## %bb.6:
	movq	_rtl8225z2_tx_power_cck_ch14@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %rbx
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movl	$68, %esi
	callq	_rtl8225_write_phy_cck
	movl	4(%rbx), %edx
	movq	%r13, %rdi
	movl	$69, %esi
	callq	_rtl8225_write_phy_cck
	movl	8(%rbx), %edx
	movq	%r13, %rdi
	movl	$70, %esi
	callq	_rtl8225_write_phy_cck
	movl	12(%rbx), %edx
	movq	%r13, %rdi
	movl	$71, %esi
	callq	_rtl8225_write_phy_cck
	movl	16(%rbx), %edx
	movq	%r13, %rdi
	movl	$72, %esi
	callq	_rtl8225_write_phy_cck
	movl	20(%rbx), %edx
	movq	%r13, %rdi
	movl	$73, %esi
	callq	_rtl8225_write_phy_cck
	movl	24(%rbx), %edx
	movq	%r13, %rdi
	movl	$74, %esi
	callq	_rtl8225_write_phy_cck
	movl	28(%rbx), %edx
	movq	%r13, %rdi
	movl	$75, %esi
	callq	_rtl8225_write_phy_cck
	movl	%r12d, %edi
	movl	$35, %esi
	callq	_min
                                        ## kill: def $eax killed $eax def $rax
	leal	-13(%rax), %ecx
	cmpl	$2, %ecx
	movl	$12, %ecx
	cmovael	%eax, %ecx
	leal	-2(%rcx), %edx
	cmpl	$15, %ecx
	cmovll	%ecx, %edx
	sarl	$8, %r15d
	movq	(%r14), %rsi
	addq	$4, %rsi
	movq	%r14, %rdi
	callq	_rtl818x_iowrite8
	movq	(%r14), %rsi
	addq	$4, %rsi
	movq	%r14, %rdi
	callq	_rtl818x_ioread8
	movl	$1, %edi
	callq	_msleep
	movl	%r15d, %edi
	movl	$35, %esi
	callq	_min
	movq	(%r14), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_rtl818x_iowrite8
	movq	%r13, %rdi
	movl	$2, %esi
	movl	$98, %edx
	callq	_rtl8225_write_phy_ofdm
	movq	%r13, %rdi
	movl	$5, %esi
	xorl	%edx, %edx
	callq	_rtl8225_write_phy_ofdm
	movq	%r13, %rdi
	movl	$6, %esi
	movl	$64, %edx
	callq	_rtl8225_write_phy_ofdm
	movq	%r13, %rdi
	movl	$7, %esi
	xorl	%edx, %edx
	callq	_rtl8225_write_phy_ofdm
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$64, %edx
	callq	_rtl8225_write_phy_ofdm
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msleep                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_rtl8225z2_tx_power_cck_ch14,8,3 ## @rtl8225z2_tx_power_cck_ch14
	.comm	_rtl8225z2_tx_power_cck_B,8,3   ## @rtl8225z2_tx_power_cck_B
	.comm	_rtl8225z2_tx_power_cck_A,8,3   ## @rtl8225z2_tx_power_cck_A
	.comm	_rtl8225z2_tx_power_cck,8,3     ## @rtl8225z2_tx_power_cck
	.no_dead_strip	_rtl8225z2_rf_set_tx_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8225z2_rf_set_tx_power
_rtl8225z2_rf_set_tx_power:             ; @rtl8225z2_rf_set_tx_power
	.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, x0
	ldr	x20, [x0]
	ldr	x8, [x20, #8]
	add	x8, x8, w1, sxtw #2
	ldur	w22, [x8, #-4]
	and	w21, w22, #0xff
Lloh0:
	adrp	x8, _rtl8225z2_tx_power_cck_ch14@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rtl8225z2_tx_power_cck_ch14@GOTPAGEOFF]
Lloh2:
	adrp	x9, _rtl8225z2_tx_power_cck_B@GOTPAGE
Lloh3:
	ldr	x9, [x9, _rtl8225z2_tx_power_cck_B@GOTPAGEOFF]
Lloh4:
	adrp	x10, _rtl8225z2_tx_power_cck_A@GOTPAGE
Lloh5:
	ldr	x10, [x10, _rtl8225z2_tx_power_cck_A@GOTPAGEOFF]
Lloh6:
	adrp	x11, _rtl8225z2_tx_power_cck@GOTPAGE
Lloh7:
	ldr	x11, [x11, _rtl8225z2_tx_power_cck@GOTPAGEOFF]
	cmp	w21, #13
	csel	x10, x10, x11, eq
	cmp	w21, #12
	csel	x9, x9, x10, eq
	cmp	w1, #14
	csel	x8, x8, x9, eq
	ldr	x23, [x8]
	ldr	w2, [x23]
	mov	w1, #68
	bl	_rtl8225_write_phy_cck
	ldr	w2, [x23, #4]
	mov	x0, x19
	mov	w1, #69
	bl	_rtl8225_write_phy_cck
	ldr	w2, [x23, #8]
	mov	x0, x19
	mov	w1, #70
	bl	_rtl8225_write_phy_cck
	ldr	w2, [x23, #12]
	mov	x0, x19
	mov	w1, #71
	bl	_rtl8225_write_phy_cck
	ldr	w2, [x23, #16]
	mov	x0, x19
	mov	w1, #72
	bl	_rtl8225_write_phy_cck
	ldr	w2, [x23, #20]
	mov	x0, x19
	mov	w1, #73
	bl	_rtl8225_write_phy_cck
	ldr	w2, [x23, #24]
	mov	x0, x19
	mov	w1, #74
	bl	_rtl8225_write_phy_cck
	ldr	w2, [x23, #28]
	mov	x0, x19
	mov	w1, #75
	bl	_rtl8225_write_phy_cck
	mov	x0, x21
	mov	w1, #35
	bl	_min
	sub	w8, w0, #13
	mov	w9, #12
	cmp	w8, #2
	csel	w8, w9, w0, lo
	sub	w9, w8, #2
	cmp	w8, #14
	csel	w2, w9, w8, gt
	asr	w21, w22, #8
	ldr	x8, [x20]
	add	x1, x8, #4
	mov	x0, x20
	bl	_rtl818x_iowrite8
	ldr	x8, [x20]
	add	x1, x8, #4
	mov	x0, x20
	bl	_rtl818x_ioread8
	mov	w0, #1
	bl	_msleep
	mov	x0, x21
	mov	w1, #35
	bl	_min
	mov	x2, x0
	ldr	x1, [x20]
	mov	x0, x20
	bl	_rtl818x_iowrite8
	mov	x0, x19
	mov	w1, #2
	mov	w2, #98
	bl	_rtl8225_write_phy_ofdm
	mov	x0, x19
	mov	w1, #5
	mov	w2, #0
	bl	_rtl8225_write_phy_ofdm
	mov	x0, x19
	mov	w1, #6
	mov	w2, #64
	bl	_rtl8225_write_phy_ofdm
	mov	x0, x19
	mov	w1, #7
	mov	w2, #0
	bl	_rtl8225_write_phy_ofdm
	mov	x0, x19
	mov	w1, #8
	mov	w2, #64
	bl	_rtl8225_write_phy_ofdm
	mov	w0, #1
	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
	b	_msleep
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_rtl8225z2_tx_power_cck_ch14,8,3 ; @rtl8225z2_tx_power_cck_ch14
	.comm	_rtl8225z2_tx_power_cck_B,8,3   ; @rtl8225z2_tx_power_cck_B
	.comm	_rtl8225z2_tx_power_cck_A,8,3   ; @rtl8225z2_tx_power_cck_A
	.comm	_rtl8225z2_tx_power_cck,8,3     ; @rtl8225z2_tx_power_cck
	.no_dead_strip	_rtl8225z2_rf_set_tx_power
.subsections_via_symbols
