	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822c_set_write_tx_power_ref
_rtw8822c_set_write_tx_power_ref:       ## @rtw8822c_set_write_tx_power_ref
	.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
	cmpq	$0, (%rdi)
	je	LBB0_6
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	leaq	L___const.rtw8822c_set_write_tx_power_ref.txref_cck(%rip), %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$15, %edi
	callq	_BIT
	movq	%r12, %rdi
	movl	$7312, %esi                     ## imm = 0x1C90
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_rtw_write32_mask
	movl	(%r13), %esi
	movq	(%r15,%rbx,8), %rcx
	movq	%r12, %rdi
	movl	$8323072, %edx                  ## imm = 0x7F0000
	callq	_rtw_write32_mask
	incq	%rbx
	movq	(%r12), %rax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jb	LBB0_2
## %bb.3:
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	leaq	L___const.rtw8822c_set_write_tx_power_ref.txref_ofdm(%rip), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$15, %edi
	callq	_BIT
	movq	%r12, %rdi
	movl	$7312, %esi                     ## imm = 0x1C90
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_rtw_write32_mask
	movl	(%r15), %esi
	movq	(%r14,%rbx,8), %rcx
	movq	%r12, %rdi
	movl	$130048, %edx                   ## imm = 0x1FC00
	callq	_rtw_write32_mask
	incq	%rbx
	addq	$4, %r15
	cmpq	(%r12), %rbx
	jb	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__literal8,8byte_literals
	.p2align	2                               ## @__const.rtw8822c_set_write_tx_power_ref.txref_cck
L___const.rtw8822c_set_write_tx_power_ref.txref_cck:
	.long	6304                            ## 0x18a0
	.long	16800                           ## 0x41a0

	.p2align	2                               ## @__const.rtw8822c_set_write_tx_power_ref.txref_ofdm
L___const.rtw8822c_set_write_tx_power_ref.txref_ofdm:
	.long	6376                            ## 0x18e8
	.long	16872                           ## 0x41e8

	.no_dead_strip	_rtw8822c_set_write_tx_power_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw8822c_set_write_tx_power_ref
_rtw8822c_set_write_tx_power_ref:       ; @rtw8822c_set_write_tx_power_ref
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x22, #0
Lloh0:
	adrp	x23, l___const.rtw8822c_set_write_tx_power_ref.txref_cck@PAGE
Lloh1:
	add	x23, x23, l___const.rtw8822c_set_write_tx_power_ref.txref_cck@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #15
	bl	_BIT
	mov	x2, x0
	mov	x0, x20
	mov	w1, #7312
	mov	x3, #0
	bl	_rtw_write32_mask
	ldr	w1, [x23, x22, lsl #2]
	ldr	x3, [x21, x22, lsl #3]
	mov	x0, x20
	mov	w2, #8323072
	bl	_rtw_write32_mask
	add	x22, x22, #1
	ldr	x8, [x20]
	cmp	x22, x8
	b.lo	LBB0_2
; %bb.3:
	cbz	x8, LBB0_6
; %bb.4:
	mov	x21, #0
Lloh2:
	adrp	x22, l___const.rtw8822c_set_write_tx_power_ref.txref_ofdm@PAGE
Lloh3:
	add	x22, x22, l___const.rtw8822c_set_write_tx_power_ref.txref_ofdm@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #15
	bl	_BIT
	mov	x2, x0
	mov	x0, x20
	mov	w1, #7312
	mov	x3, #0
	bl	_rtw_write32_mask
	ldr	w1, [x22, x21, lsl #2]
	ldr	x3, [x19, x21, lsl #3]
	mov	x0, x20
	mov	w2, #130048
	bl	_rtw_write32_mask
	add	x21, x21, #1
	ldr	x8, [x20]
	cmp	x21, x8
	b.lo	LBB0_5
LBB0_6:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__literal8,8byte_literals
	.p2align	2                               ; @__const.rtw8822c_set_write_tx_power_ref.txref_cck
l___const.rtw8822c_set_write_tx_power_ref.txref_cck:
	.long	6304                            ; 0x18a0
	.long	16800                           ; 0x41a0

	.p2align	2                               ; @__const.rtw8822c_set_write_tx_power_ref.txref_ofdm
l___const.rtw8822c_set_write_tx_power_ref.txref_ofdm:
	.long	6376                            ; 0x18e8
	.long	16872                           ; 0x41e8

	.no_dead_strip	_rtw8822c_set_write_tx_power_ref
.subsections_via_symbols
