	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prng_bytes                     ## -- Begin function prng_bytes
	.p2align	4, 0x90
_prng_bytes:                            ## @prng_bytes
	.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	%esi, %r14d
	movq	%rdi, %r15
	movq	_nonce_md@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	callq	_md_kt_size
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_6
## %bb.2:
	movslq	-44(%rbp), %r13                 ## 4-byte Folded Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r15,%rbx,4), %r15
	testl	%r14d, %r14d
	jle	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_min_int
	movl	%eax, %r12d
	movq	_nonce_md@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_nonce_data@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	_nonce_secret_len@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	%r13, %rdx
	movl	%ecx, %esi
	callq	_md_full
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_memcpy
	movslq	%r12d, %rbx
	subl	%ebx, %r14d
	movq	_prng_bytes.processed(%rip), %rax
	addq	%rbx, %rax
	movq	%rax, _prng_bytes.processed(%rip)
	movq	_PRNG_NONCE_RESET_BYTES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jbe	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_prng_reset_nonce
	movq	$0, _prng_bytes.processed(%rip)
	jmp	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_rand_bytes
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ASSERT                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_prng_bytes.processed,8,3 ## @prng_bytes.processed
	.comm	_nonce_md,8,3                   ## @nonce_md
	.comm	_nonce_data,4,2                 ## @nonce_data
	.comm	_nonce_secret_len,8,3           ## @nonce_secret_len
	.comm	_PRNG_NONCE_RESET_BYTES,8,3     ## @PRNG_NONCE_RESET_BYTES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prng_bytes                     ; -- Begin function prng_bytes
	.p2align	2
_prng_bytes:                            ; @prng_bytes
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _nonce_md@GOTPAGE
Lloh1:
	ldr	x23, [x23, _nonce_md@GOTPAGEOFF]
	ldr	x0, [x23]
	cbz	x0, LBB0_7
; %bb.1:
	bl	_md_kt_size
	cmp	w19, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x21, x0
Lloh2:
	adrp	x24, _nonce_data@GOTPAGE
Lloh3:
	ldr	x24, [x24, _nonce_data@GOTPAGEOFF]
	sxtw	x25, w21
Lloh4:
	adrp	x26, _nonce_secret_len@GOTPAGE
Lloh5:
	ldr	x26, [x26, _nonce_secret_len@GOTPAGEOFF]
	adrp	x27, _prng_bytes.processed@PAGE
Lloh6:
	adrp	x28, _PRNG_NONCE_RESET_BYTES@GOTPAGE
Lloh7:
	ldr	x28, [x28, _PRNG_NONCE_RESET_BYTES@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, w22, sxtw #2
	cmp	w19, #0
	b.le	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_min_int
	mov	x22, x0
	ldr	x0, [x23]
	ldr	w1, [x24]
	ldr	x8, [x26]
	add	x2, x8, x25
	mov	x3, x1
	bl	_md_full
	ldr	w1, [x24]
	mov	x0, x20
	mov	x2, x22
	bl	_memcpy
	sxtw	x8, w22
	sub	w19, w19, w22
	ldr	x9, [x27, _prng_bytes.processed@PAGEOFF]
	ldr	x10, [x28]
	add	x8, x9, x8
	cmp	x8, x10
	str	x8, [x27, _prng_bytes.processed@PAGEOFF]
	b.ls	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_prng_reset_nonce
	str	xzr, [x27, _prng_bytes.processed@PAGEOFF]
	b	LBB0_3
LBB0_6:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	bl	_rand_bytes
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ASSERT
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_prng_bytes.processed,8,3 ; @prng_bytes.processed
	.comm	_nonce_md,8,3                   ; @nonce_md
	.comm	_nonce_data,4,2                 ; @nonce_data
	.comm	_nonce_secret_len,8,3           ; @nonce_secret_len
	.comm	_PRNG_NONCE_RESET_BYTES,8,3     ; @PRNG_NONCE_RESET_BYTES
.subsections_via_symbols
