	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_random_get_bytes               ## -- Begin function random_get_bytes
	.p2align	4, 0x90
_random_get_bytes:                      ## @random_get_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	_qtotal@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	cmpq	$0, (%rax)
	jle	LBB0_7
## %bb.1:
	testl	%r14d, %r14d
	jle	LBB0_7
## %bb.2:
	movq	_buffer@GOTPCREL(%rip), %r8
	movq	(%r8), %rsi
	movq	_qleft@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rcx
	xorl	%r13d, %r13d
	movq	_qsize@GOTPCREL(%rip), %r9
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rsi,%rcx,4), %ecx
	movb	%cl, (%r15,%r13)
	movq	(%r8), %rsi
	movq	(%rdx), %rcx
	movl	$0, (%rsi,%rcx,4)
	incq	%rcx
	cmpq	(%r9), %rcx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rcx, (%rdx)
	incq	%r13
	movq	(%rax), %rbx
	leaq	-1(%rbx), %rdi
	movq	%rdi, (%rax)
	cmpq	$2, %rbx
	jl	LBB0_6
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r14d, %r13d
	jl	LBB0_3
LBB0_6:
	addq	%r13, %r15
LBB0_7:
	cmpl	%r14d, %r13d
	jge	LBB0_12
## %bb.8:
	movl	%r13d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	_B@GOTPCREL(%rip), %rdi
	callq	_bbs_next_random_byte
	movb	%al, (%r15,%rbx)
	movl	%ebx, %eax
	leal	(%r12,%rax), %ecx
	incl	%ecx
	incq	%rbx
	cmpl	%r14d, %ecx
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jb	LBB0_9
LBB0_11:
	addl	%ebx, %r13d
LBB0_12:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qtotal,8,3                     ## @qtotal
	.comm	_buffer,8,3                     ## @buffer
	.comm	_qleft,8,3                      ## @qleft
	.comm	_qsize,8,3                      ## @qsize
	.comm	_B,4,2                          ## @B
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_random_get_bytes               ; -- Begin function random_get_bytes
	.p2align	2
_random_get_bytes:                      ; @random_get_bytes
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _qtotal@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qtotal@GOTPAGEOFF]
	ldr	x9, [x8]
	cmp	x9, #1
	ccmp	w1, #1, #8, ge
	b.ge	LBB0_2
; %bb.1:
	mov	w21, #0
	cmp	w21, w19
	b.lt	LBB0_5
	b	LBB0_9
LBB0_2:
	mov	x21, #0
Lloh2:
	adrp	x9, _buffer@GOTPAGE
Lloh3:
	ldr	x9, [x9, _buffer@GOTPAGEOFF]
	ldr	x11, [x9]
Lloh4:
	adrp	x10, _qleft@GOTPAGE
Lloh5:
	ldr	x10, [x10, _qleft@GOTPAGEOFF]
	ldr	x13, [x10]
Lloh6:
	adrp	x12, _qsize@GOTPAGE
Lloh7:
	ldr	x12, [x12, _qsize@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x11, x13, lsl #2]
	strb	w11, [x20, x21]
	ldr	x11, [x9]
	ldr	x13, [x10]
	str	wzr, [x11, x13, lsl #2]
	add	x14, x13, #1
	ldr	x15, [x12]
	cmp	x14, x15
	csinc	x13, xzr, x13, eq
	str	x13, [x10]
	add	x21, x21, #1
	ldr	x14, [x8]
	sub	x15, x14, #1
	str	x15, [x8]
	cmp	x14, #2
	ccmp	w21, w19, #0, ge
	b.lt	LBB0_3
; %bb.4:
	add	x20, x20, x21
	cmp	w21, w19
	b.ge	LBB0_9
LBB0_5:
	mov	x23, #0
Lloh8:
	adrp	x22, _B@GOTPAGE
Lloh9:
	ldr	x22, [x22, _B@GOTPAGEOFF]
	mov	w24, #65535
	mov	w25, w21
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_bbs_next_random_byte
	strb	w0, [x20, x23]
	mov	x8, x23
	add	w9, w25, w23
	add	w9, w9, #1
	add	x23, x23, #1
	cmp	w9, w19
	b.ge	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, w24
	b.lo	LBB0_6
LBB0_8:
	add	w21, w21, w23
LBB0_9:
	mov	x0, x21
	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	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_qtotal,8,3                     ; @qtotal
	.comm	_buffer,8,3                     ; @buffer
	.comm	_qleft,8,3                      ; @qleft
	.comm	_qsize,8,3                      ; @qsize
	.comm	_B,4,2                          ; @B
.subsections_via_symbols
