	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar9003_paprd_populate_single_table ## -- Begin function ar9003_paprd_populate_single_table
	.p2align	4, 0x90
_ar9003_paprd_populate_single_table:    ## @ar9003_paprd_populate_single_table
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	(%rsi), %rcx
	movslq	%edx, %rax
	testl	%eax, %eax
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_1
## %bb.2:
	cmpl	$2, %edx
	je	LBB0_6
## %bb.3:
	cmpl	$1, %edx
	jne	LBB0_4
## %bb.5:
	movq	_AR_PHY_PAPRD_MEM_TAB_B1@GOTPCREL(%rip), %rdx
	jmp	LBB0_7
LBB0_1:
	movq	_AR_PHY_PAPRD_MEM_TAB_B0@GOTPCREL(%rip), %rdx
	jmp	LBB0_7
LBB0_6:
	movq	_AR_PHY_PAPRD_MEM_TAB_B2@GOTPCREL(%rip), %rdx
LBB0_7:
	movq	(%rdx), %rbx
	jmp	LBB0_8
LBB0_4:
	xorl	%ebx, %ebx
LBB0_8:
	movq	(%rcx,%rax,8), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	_PAPRD_TABLE_SZ@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_11
## %bb.9:
	movq	8(%rsi), %rcx
	movq	(%rcx,%rax,8), %r14
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%r15,8), %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_REG_WRITE
	addq	$4, %rbx
	incq	%r15
	movslq	(%r12), %rax
	cmpq	%rax, %r15
	jl	LBB0_10
LBB0_11:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$1, %ecx
	jne	LBB0_12
## %bb.13:
	movq	_AR_PHY_PA_GAIN123_B1@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_AR_PHY_PA_GAIN123_B2@GOTPCREL(%rip), %rax
LBB0_14:
	testl	%ecx, %ecx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_16
## %bb.15:
	movq	_AR_PHY_PA_GAIN123_B0@GOTPCREL(%rip), %rax
LBB0_16:
	movq	(%rax), %rsi
	movq	_AR_PHY_PA_GAIN123_PA_GAIN1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_REG_RMW_FIELD
	movq	_AR_PHY_PAPRD_CTRL1_B0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_AR_PHY_PAPRD_CTRL1_PAPRD_POWER_AT_AM2AM_CAL@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%r13, %rdi
	movq	%r15, %rcx
	callq	_REG_RMW_FIELD
	movl	(%r13), %ebx
	movl	$1, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_18
## %bb.17:
	movq	_AR_PHY_PAPRD_CTRL1_B1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	(%r14), %edx
	movq	%r13, %rdi
	movq	%r15, %rcx
	callq	_REG_RMW_FIELD
LBB0_18:
	movl	(%r13), %ebx
	movl	$2, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_19
## %bb.20:
	movq	_AR_PHY_PAPRD_CTRL1_B2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	(%r14), %edx
	movq	%r13, %rdi
	movq	%r15, %rcx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_RMW_FIELD                  ## TAILCALL
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_PHY_PAPRD_MEM_TAB_B0,8,3    ## @AR_PHY_PAPRD_MEM_TAB_B0
	.comm	_AR_PHY_PAPRD_MEM_TAB_B1,8,3    ## @AR_PHY_PAPRD_MEM_TAB_B1
	.comm	_AR_PHY_PAPRD_MEM_TAB_B2,8,3    ## @AR_PHY_PAPRD_MEM_TAB_B2
	.comm	_PAPRD_TABLE_SZ,4,2             ## @PAPRD_TABLE_SZ
	.comm	_AR_PHY_PA_GAIN123_B0,8,3       ## @AR_PHY_PA_GAIN123_B0
	.comm	_AR_PHY_PA_GAIN123_B1,8,3       ## @AR_PHY_PA_GAIN123_B1
	.comm	_AR_PHY_PA_GAIN123_B2,8,3       ## @AR_PHY_PA_GAIN123_B2
	.comm	_AR_PHY_PA_GAIN123_PA_GAIN1,4,2 ## @AR_PHY_PA_GAIN123_PA_GAIN1
	.comm	_AR_PHY_PAPRD_CTRL1_B0,8,3      ## @AR_PHY_PAPRD_CTRL1_B0
	.comm	_AR_PHY_PAPRD_CTRL1_PAPRD_POWER_AT_AM2AM_CAL,4,2 ## @AR_PHY_PAPRD_CTRL1_PAPRD_POWER_AT_AM2AM_CAL
	.comm	_AR_PHY_PAPRD_CTRL1_B1,8,3      ## @AR_PHY_PAPRD_CTRL1_B1
	.comm	_AR_PHY_PAPRD_CTRL1_B2,8,3      ## @AR_PHY_PAPRD_CTRL1_B2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar9003_paprd_populate_single_table ; -- Begin function ar9003_paprd_populate_single_table
	.p2align	2
_ar9003_paprd_populate_single_table:    ; @ar9003_paprd_populate_single_table
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x19, x0
	sbfiz	x8, x22, #3, #32
	ldr	x9, [x1]
	ldr	x21, [x9, x8]
	ldr	x20, [x0, #8]
	cbz	w2, LBB0_4
; %bb.1:
	cmp	w22, #2
	b.eq	LBB0_5
; %bb.2:
	cmp	w22, #1
	b.ne	LBB0_7
; %bb.3:
Lloh0:
	adrp	x9, _AR_PHY_PAPRD_MEM_TAB_B1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AR_PHY_PAPRD_MEM_TAB_B1@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x9, _AR_PHY_PAPRD_MEM_TAB_B0@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AR_PHY_PAPRD_MEM_TAB_B0@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x9, _AR_PHY_PAPRD_MEM_TAB_B2@GOTPAGE
Lloh5:
	ldr	x9, [x9, _AR_PHY_PAPRD_MEM_TAB_B2@GOTPAGEOFF]
LBB0_6:
	ldr	x23, [x9]
	b	LBB0_8
LBB0_7:
	mov	x23, #0
LBB0_8:
Lloh6:
	adrp	x24, _PAPRD_TABLE_SZ@GOTPAGE
Lloh7:
	ldr	x24, [x24, _PAPRD_TABLE_SZ@GOTPAGEOFF]
	ldr	w9, [x24]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x25, #0
	ldr	x9, [x1, #8]
	ldr	x26, [x9, x8]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x26, x25, lsl #3]
	mov	x0, x19
	mov	x1, x23
	bl	_REG_WRITE
	add	x23, x23, #4
	add	x25, x25, #1
	ldrsw	x8, [x24]
	cmp	x25, x8
	b.lt	LBB0_10
LBB0_11:
Lloh8:
	adrp	x8, _AR_PHY_PA_GAIN123_B0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AR_PHY_PA_GAIN123_B0@GOTPAGEOFF]
Lloh10:
	adrp	x9, _AR_PHY_PA_GAIN123_B1@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AR_PHY_PA_GAIN123_B1@GOTPAGEOFF]
Lloh12:
	adrp	x10, _AR_PHY_PA_GAIN123_B2@GOTPAGE
Lloh13:
	ldr	x10, [x10, _AR_PHY_PA_GAIN123_B2@GOTPAGEOFF]
	cmp	w22, #1
	csel	x9, x9, x10, eq
	cmp	w22, #0
	csel	x8, x8, x9, eq
	ldr	x1, [x8]
Lloh14:
	adrp	x8, _AR_PHY_PA_GAIN123_PA_GAIN1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AR_PHY_PA_GAIN123_PA_GAIN1@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x21
	bl	_REG_RMW_FIELD
Lloh17:
	adrp	x8, _AR_PHY_PAPRD_CTRL1_B0@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AR_PHY_PAPRD_CTRL1_B0@GOTPAGEOFF]
Lloh19:
	ldr	x1, [x8]
Lloh20:
	adrp	x21, _AR_PHY_PAPRD_CTRL1_PAPRD_POWER_AT_AM2AM_CAL@GOTPAGE
Lloh21:
	ldr	x21, [x21, _AR_PHY_PAPRD_CTRL1_PAPRD_POWER_AT_AM2AM_CAL@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	x3, x20
	bl	_REG_RMW_FIELD
	ldr	w22, [x19]
	mov	w0, #1
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_13
; %bb.12:
Lloh22:
	adrp	x8, _AR_PHY_PAPRD_CTRL1_B1@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AR_PHY_PAPRD_CTRL1_B1@GOTPAGEOFF]
Lloh24:
	ldr	x1, [x8]
	ldr	w2, [x21]
	mov	x0, x19
	mov	x3, x20
	bl	_REG_RMW_FIELD
LBB0_13:
	ldr	w22, [x19]
	mov	w0, #2
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_15
; %bb.14:
Lloh25:
	adrp	x8, _AR_PHY_PAPRD_CTRL1_B2@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AR_PHY_PAPRD_CTRL1_B2@GOTPAGEOFF]
Lloh27:
	ldr	x1, [x8]
	ldr	w2, [x21]
	mov	x0, x19
	mov	x3, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_REG_RMW_FIELD
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_PHY_PAPRD_MEM_TAB_B0,8,3    ; @AR_PHY_PAPRD_MEM_TAB_B0
	.comm	_AR_PHY_PAPRD_MEM_TAB_B1,8,3    ; @AR_PHY_PAPRD_MEM_TAB_B1
	.comm	_AR_PHY_PAPRD_MEM_TAB_B2,8,3    ; @AR_PHY_PAPRD_MEM_TAB_B2
	.comm	_PAPRD_TABLE_SZ,4,2             ; @PAPRD_TABLE_SZ
	.comm	_AR_PHY_PA_GAIN123_B0,8,3       ; @AR_PHY_PA_GAIN123_B0
	.comm	_AR_PHY_PA_GAIN123_B1,8,3       ; @AR_PHY_PA_GAIN123_B1
	.comm	_AR_PHY_PA_GAIN123_B2,8,3       ; @AR_PHY_PA_GAIN123_B2
	.comm	_AR_PHY_PA_GAIN123_PA_GAIN1,4,2 ; @AR_PHY_PA_GAIN123_PA_GAIN1
	.comm	_AR_PHY_PAPRD_CTRL1_B0,8,3      ; @AR_PHY_PAPRD_CTRL1_B0
	.comm	_AR_PHY_PAPRD_CTRL1_PAPRD_POWER_AT_AM2AM_CAL,4,2 ; @AR_PHY_PAPRD_CTRL1_PAPRD_POWER_AT_AM2AM_CAL
	.comm	_AR_PHY_PAPRD_CTRL1_B1,8,3      ; @AR_PHY_PAPRD_CTRL1_B1
	.comm	_AR_PHY_PAPRD_CTRL1_B2,8,3      ; @AR_PHY_PAPRD_CTRL1_B2
.subsections_via_symbols
