	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_rng_kthread
_ath9k_rng_kthread:                     ## @ath9k_rng_kthread
	.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	_ATH9K_RNG_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, %esi
	callq	_kmalloc_array
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testl	%eax, %eax
	je	LBB0_2
LBB0_6:
	movq	%r15, %rdi
	callq	_kfree
LBB0_7:
	movq	$0, (%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movq	%r13, %rdi
	callq	_ath9k_rng_delay_get
	movq	%rax, %rbx
	movq	_rng_queue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_kthread_should_stop
	movq	%r15, %r12
	movq	%r14, %r15
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_msecs_to_jiffies
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	movq	%r15, %r14
	movq	%r12, %r15
	movl	%eax, %edx
	callq	_wait_event_interruptible_timeout
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testl	%eax, %eax
	jne	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ATH9K_RNG_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ath9k_rng_data_read
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	callq	_ATH9K_RNG_ENTROPY
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_add_hwgenerator_randomness
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH9K_RNG_BUF_SIZE,4,2         ## @ATH9K_RNG_BUF_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_rng_queue,4,2                  ## @rng_queue
	.no_dead_strip	_ath9k_rng_kthread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_rng_kthread
_ath9k_rng_kthread:                     ; @ath9k_rng_kthread
	.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	x19, x0
Lloh0:
	adrp	x25, _ATH9K_RNG_BUF_SIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ATH9K_RNG_BUF_SIZE@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #8
	bl	_kmalloc_array
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_kthread_should_stop
	cbz	w0, LBB0_4
LBB0_2:
	mov	x0, x20
	bl	_kfree
LBB0_3:
	str	xzr, [x19]
	mov	w0, #0
	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
LBB0_4:
	mov	x21, #0
Lloh5:
	adrp	x26, _rng_queue@GOTPAGE
Lloh6:
	ldr	x26, [x26, _rng_queue@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	mov	x0, x21
	bl	_ath9k_rng_delay_get
	mov	x22, x0
	ldr	w23, [x26]
	bl	_kthread_should_stop
	mov	x24, x0
	mov	x0, x22
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_wait_event_interruptible_timeout
	bl	_kthread_should_stop
	cbnz	w0, LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x20
	bl	_ath9k_rng_data_read
	mov	x22, x0
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_ATH9K_RNG_ENTROPY
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_add_hwgenerator_randomness
	mov	x21, #0
	bl	_kthread_should_stop
	cbz	w0, LBB0_6
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH9K_RNG_BUF_SIZE,4,2         ; @ATH9K_RNG_BUF_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_rng_queue,4,2                  ; @rng_queue
	.no_dead_strip	_ath9k_rng_kthread
.subsections_via_symbols
