	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8225sez2_rf_set_tx_power
_rtl8225sez2_rf_set_tx_power:           ## @rtl8225sez2_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, %r14
	movq	(%rdi), %r12
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movslq	%esi, %rbx
	movzbl	-4(%rcx,%rbx,4), %ecx
	cmpl	$35, %ecx
	movl	$35, %r15d
	cmovael	%r15d, %ecx
	addq	$4, %rax
	movq	_cck_ofdm_gain_settings@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	movl	(%rdx,%rcx,4), %edx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_rtl818x_iowrite8
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$5000, %esi                     ## imm = 0x1388
	callq	_usleep_range
	movq	8(%r12), %rax
	movl	-4(%rax,%rbx,4), %ebx
	sarl	$8, %ebx
	cmpl	$35, %ebx
	cmovgel	%r15d, %ebx
	movq	(%r12), %rsi
	movq	(%r13), %rax
	movslq	%ebx, %r15
	movl	(%rax,%r15,4), %edx
	movq	%r12, %rdi
	callq	_rtl818x_iowrite8
	cmpl	$11, %r15d
	jg	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	$7, %esi
	movl	$92, %edx
	callq	_rtl8225se_write_phy_ofdm
	movq	%r14, %rdi
	movl	$9, %esi
	movl	$92, %edx
	callq	_rtl8225se_write_phy_ofdm
	movl	$84, %ebx
	jmp	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	cmpl	$18, %ebx
	setb	%al
	leal	80(,%rax,4), %ebx
LBB0_3:
	movq	%r14, %rdi
	movl	$7, %esi
	movl	%ebx, %edx
	callq	_rtl8225se_write_phy_ofdm
	movq	%r14, %rdi
	movl	$9, %esi
	movl	%ebx, %edx
	callq	_rtl8225se_write_phy_ofdm
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$5000, %esi                     ## imm = 0x1388
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usleep_range                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cck_ofdm_gain_settings,8,3     ## @cck_ofdm_gain_settings
	.no_dead_strip	_rtl8225sez2_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 rtl8225sez2_rf_set_tx_power
_rtl8225sez2_rf_set_tx_power:           ; @rtl8225sez2_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
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	ldr	x20, [x0]
	sbfiz	x8, x1, #2, #32
	sub	x21, x8, #4
	ldp	x9, x8, [x20]
	ldrb	w8, [x8, x21]
	mov	w22, #35
	cmp	w8, #35
	csel	w8, w8, w22, lo
	add	x1, x9, #4
Lloh0:
	adrp	x23, _cck_ofdm_gain_settings@GOTPAGE
Lloh1:
	ldr	x23, [x23, _cck_ofdm_gain_settings@GOTPAGEOFF]
	ldr	x9, [x23]
	ldr	w2, [x9, w8, uxtw #2]
	mov	x0, x20
	bl	_rtl818x_iowrite8
	mov	w0, #1000
	mov	w1, #5000
	bl	_usleep_range
	ldp	x1, x8, [x20]
	ldr	w8, [x8, x21]
	asr	w8, w8, #8
	cmp	w8, #35
	csel	w21, w8, w22, lt
	ldr	x8, [x23]
	ldr	w2, [x8, w21, sxtw #2]
	mov	x0, x20
	bl	_rtl818x_iowrite8
	cmp	w21, #11
	b.gt	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #7
	mov	w2, #92
	bl	_rtl8225se_write_phy_ofdm
	mov	x0, x19
	mov	w1, #9
	mov	w2, #92
	bl	_rtl8225se_write_phy_ofdm
	mov	w20, #84
	b	LBB0_3
LBB0_2:
	mov	w8, #80
	mov	w9, #84
	cmp	w21, #18
	csel	w20, w9, w8, lo
LBB0_3:
	mov	x0, x19
	mov	w1, #7
	mov	x2, x20
	bl	_rtl8225se_write_phy_ofdm
	mov	x0, x19
	mov	w1, #9
	mov	x2, x20
	bl	_rtl8225se_write_phy_ofdm
	mov	w0, #1000
	mov	w1, #5000
	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	_usleep_range
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_cck_ofdm_gain_settings,8,3     ; @cck_ofdm_gain_settings
	.no_dead_strip	_rtl8225sez2_rf_set_tx_power
.subsections_via_symbols
