	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl88e_phy_rf6052_set_ofdm_txpower ## -- Begin function rtl88e_phy_rf6052_set_ofdm_txpower
	.p2align	4, 0x90
_rtl88e_phy_rf6052_set_ofdm_txpower:    ## @rtl88e_phy_rf6052_set_ofdm_txpower
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-96(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-80(%rbp), %r12
	movq	%r12, %r9
	callq	_rtl88e_phy_get_power_base
	leaq	-100(%rbp), %rdx
	leaq	-112(%rbp), %rcx
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_rtl88e_dm_txpower_track_adjust
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-112(%rbp), %rcx
	subq	%rcx, -64(%rbp)
	movq	-56(%rbp), %rax
	subq	%rcx, %rax
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, -56(%rbp)
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	__rtl88e_write_ofdm_power_reg
	incl	%ebx
	cmpl	$6, %ebx
	je	LBB0_7
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movq	%r12, %rcx
	leaq	-96(%rbp), %r8
	movq	%r15, %r9
	callq	__rtl88e_get_txpower_writeval_by_regulatory
	movl	-100(%rbp), %eax
	cmpl	$2, %eax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-112(%rbp), %rax
	addq	%rax, -64(%rbp)
	addq	-56(%rbp), %rax
	jmp	LBB0_5
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl88e_phy_rf6052_set_ofdm_txpower ; -- Begin function rtl88e_phy_rf6052_set_ofdm_txpower
	.p2align	2
_rtl88e_phy_rf6052_set_ofdm_txpower:    ; @rtl88e_phy_rf6052_set_ofdm_txpower
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x4
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	add	x5, sp, #40
	add	x6, sp, #24
	bl	_rtl88e_phy_get_power_base
	add	x2, sp, #20
	add	x3, sp, #8
	mov	x0, x20
	mov	w1, #1
	bl	_rtl88e_dm_txpower_track_adjust
	mov	w21, #0
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #8]
	ldp	x9, x10, [sp, #56]
	sub	x9, x9, x8
	str	x9, [sp, #56]
	sub	x8, x10, x8
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x8, [sp, #64]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x2, sp, #56
	mov	x0, x20
	mov	x1, x21
	bl	__rtl88e_write_ofdm_power_reg
	add	w21, w21, #1
	cmp	w21, #6
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x3, sp, #40
	add	x4, sp, #24
	add	x5, sp, #56
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	__rtl88e_get_txpower_writeval_by_regulatory
	ldr	w8, [sp, #20]
	cmp	w8, #2
	b.eq	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #8]
	ldp	x9, x10, [sp, #56]
	add	x9, x9, x8
	str	x9, [sp, #56]
	add	x8, x10, x8
	b	LBB0_2
LBB0_7:
	ldur	x8, [x29, #-40]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
