	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcom_rng_read
_qcom_rng_read:                         ## @qcom_rng_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	xorl	%ebx, %ebx
	movq	_WORD_SZ@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_PRNG_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r12), %rdi
	callq	_readl_relaxed
	movl	%eax, -44(%rbp)
	movq	_PRNG_STATUS_DATA_AVAIL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_PRNG_DATA_OUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r12), %rdi
	callq	_readl_relaxed
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %edx
	subl	%ebx, %edx
	movl	(%r13), %eax
	cmpl	%eax, %edx
	jb	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	leaq	-44(%rbp), %rsi
	movl	%eax, %edx
	callq	_memcpy
	movl	(%r13), %eax
	leaq	(%r14,%rax,4), %r14
	addl	%eax, %ebx
	cmpl	%r15d, %ebx
	jb	LBB0_1
	jmp	LBB0_6
LBB0_5:
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	callq	_memcpy
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PRNG_STATUS,8,3                ## @PRNG_STATUS
	.comm	_PRNG_STATUS_DATA_AVAIL,4,2     ## @PRNG_STATUS_DATA_AVAIL
	.comm	_PRNG_DATA_OUT,8,3              ## @PRNG_DATA_OUT
	.comm	_WORD_SZ,4,2                    ## @WORD_SZ
	.no_dead_strip	_qcom_rng_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcom_rng_read
_qcom_rng_read:                         ; @qcom_rng_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x2
	mov	x20, x1
	mov	x22, x0
	mov	w19, #0
Lloh0:
	adrp	x23, _PRNG_STATUS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PRNG_STATUS@GOTPAGEOFF]
Lloh2:
	adrp	x24, _PRNG_STATUS_DATA_AVAIL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _PRNG_STATUS_DATA_AVAIL@GOTPAGEOFF]
Lloh4:
	adrp	x25, _PRNG_DATA_OUT@GOTPAGE
Lloh5:
	ldr	x25, [x25, _PRNG_DATA_OUT@GOTPAGEOFF]
Lloh6:
	adrp	x26, _WORD_SZ@GOTPAGE
Lloh7:
	ldr	x26, [x26, _WORD_SZ@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl_relaxed
	str	w0, [sp, #12]
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_readl_relaxed
	str	w0, [sp, #12]
	cbz	w0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x26]
	sub	w2, w21, w19
	add	x1, sp, #12
	cmp	w2, w8
	b.lo	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	mov	x2, x8
	bl	_memcpy
	ldr	w8, [x26]
	add	x20, x20, x8, lsl #2
	add	w19, w8, w19
	cmp	w19, w21
	b.lo	LBB0_1
	b	LBB0_6
LBB0_5:
	mov	x0, x20
	bl	_memcpy
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PRNG_STATUS,8,3                ; @PRNG_STATUS
	.comm	_PRNG_STATUS_DATA_AVAIL,4,2     ; @PRNG_STATUS_DATA_AVAIL
	.comm	_PRNG_DATA_OUT,8,3              ; @PRNG_DATA_OUT
	.comm	_WORD_SZ,4,2                    ; @WORD_SZ
	.no_dead_strip	_qcom_rng_read
.subsections_via_symbols
