	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_rng_data_read
_ath9k_rng_data_read:                   ## @ath9k_rng_data_read
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %r12d
	movq	8(%rdi), %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_ath9k_ps_wakeup
	movq	_AR_PHY_TEST@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_AR_PHY_TEST_BBB_OBS_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_REG_RMW_FIELD
	movl	(%r14), %esi
	movq	_AR_PHY_TEST_RX_OBS_SEL_BIT5@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_REG_CLR_BIT
	movq	_AR_PHY_TEST_CTL_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_TEST_CTL_RX_OBS_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_REG_RMW_FIELD
	testl	%r13d, %r13d
	jle	LBB0_15
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	decl	%r13d
	je	LBB0_15
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%r12d, %r15d
	movq	_AR_PHY_TST_ADC@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_REG_READ
	movl	%eax, %r14d
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_REG_READ
	movl	%r14d, %ecx
	movzwl	%ax, %r12d
	andl	$65535, %ecx                    ## imm = 0xFFFF
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%ecx, %r15d
	je	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$65535, %r12d                   ## imm = 0xFFFF
	je	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$65535, %ecx                    ## imm = 0xFFFF
	je	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r12d, %ecx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_3
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	shll	$16, %r14d
	orl	%r12d, %r14d
	movslq	%ebx, %rax
	incl	%ebx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%r14d, (%rcx,%rax,4)
	jmp	LBB0_3
LBB0_15:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_ath9k_ps_restore
	movl	%r12d, (%r14)
	shll	$2, %ebx
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_PHY_TEST,4,2                ## @AR_PHY_TEST
	.comm	_AR_PHY_TEST_BBB_OBS_SEL,4,2    ## @AR_PHY_TEST_BBB_OBS_SEL
	.comm	_AR_PHY_TEST_RX_OBS_SEL_BIT5,4,2 ## @AR_PHY_TEST_RX_OBS_SEL_BIT5
	.comm	_AR_PHY_TEST_CTL_STATUS,4,2     ## @AR_PHY_TEST_CTL_STATUS
	.comm	_AR_PHY_TEST_CTL_RX_OBS_SEL,4,2 ## @AR_PHY_TEST_CTL_RX_OBS_SEL
	.comm	_AR_PHY_TST_ADC,4,2             ## @AR_PHY_TST_ADC
	.no_dead_strip	_ath9k_rng_data_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_rng_data_read
_ath9k_rng_data_read:                   ; @ath9k_rng_data_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	ldr	w24, [x0]
	ldr	x22, [x0, #8]
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	bl	_ath9k_ps_wakeup
Lloh0:
	adrp	x23, _AR_PHY_TEST@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AR_PHY_TEST@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x8, _AR_PHY_TEST_BBB_OBS_SEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AR_PHY_TEST_BBB_OBS_SEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w3, #1
	bl	_REG_RMW_FIELD
	ldr	w1, [x23]
Lloh5:
	adrp	x8, _AR_PHY_TEST_RX_OBS_SEL_BIT5@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AR_PHY_TEST_RX_OBS_SEL_BIT5@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_REG_CLR_BIT
Lloh8:
	adrp	x8, _AR_PHY_TEST_CTL_STATUS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AR_PHY_TEST_CTL_STATUS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _AR_PHY_TEST_CTL_RX_OBS_SEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AR_PHY_TEST_CTL_RX_OBS_SEL@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w3, #0
	bl	_REG_RMW_FIELD
	cmp	w20, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w25, #0
Lloh14:
	adrp	x26, _AR_PHY_TST_ADC@GOTPAGE
Lloh15:
	ldr	x26, [x26, _AR_PHY_TST_ADC@GOTPAGEOFF]
	mov	w27, #65535
	mov	x28, x24
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, x24
	subs	w20, w20, #1
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x26]
	mov	x0, x22
	bl	_REG_READ
	mov	x23, x0
	and	w19, w0, #0xffff
	ldr	w1, [x26]
	mov	x0, x22
	bl	_REG_READ
	and	w24, w0, #0xffff
	cmp	w19, #0
	ccmp	w24, #0, #4, ne
	ccmp	w28, w19, #4, ne
	ccmp	w24, w27, #4, ne
	ccmp	w19, w27, #4, ne
	ccmp	w19, w24, #4, ne
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, x24
	bfi	w8, w23, #16, #16
	str	w8, [x21, w25, sxtw #2]
	add	w25, w25, #1
	b	LBB0_2
LBB0_5:
	mov	w25, #0
LBB0_6:
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x19
	bl	_ath9k_ps_restore
	str	w24, [x19]
	lsl	w0, w25, #2
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_PHY_TEST,4,2                ; @AR_PHY_TEST
	.comm	_AR_PHY_TEST_BBB_OBS_SEL,4,2    ; @AR_PHY_TEST_BBB_OBS_SEL
	.comm	_AR_PHY_TEST_RX_OBS_SEL_BIT5,4,2 ; @AR_PHY_TEST_RX_OBS_SEL_BIT5
	.comm	_AR_PHY_TEST_CTL_STATUS,4,2     ; @AR_PHY_TEST_CTL_STATUS
	.comm	_AR_PHY_TEST_CTL_RX_OBS_SEL,4,2 ; @AR_PHY_TEST_CTL_RX_OBS_SEL
	.comm	_AR_PHY_TST_ADC,4,2             ; @AR_PHY_TST_ADC
	.no_dead_strip	_ath9k_rng_data_read
.subsections_via_symbols
