	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_random_init                    ## -- Begin function random_init
	.p2align	4, 0x90
_random_init:                           ## @random_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movl	%edi, %r12d
	testl	%esi, %esi
	movl	$268435456, %ebx                ## imm = 0x10000000
	cmovgl	%esi, %ebx
	movl	%ebx, %edi
	callq	_zmalloc
	movq	_buffer@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_qsize@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movq	_qleft@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_qright@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_qtotal@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_B@GOTPCREL(%rip), %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_bbs_init
	testq	%rax, %rax
	js	LBB0_4
## %bb.1:
	movl	$64, %ebx
	movq	_B@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_bbs_next_random_byte
	decl	%ebx
	jne	LBB0_2
## %bb.3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_kprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_buffer,4,2                     ## @buffer
	.comm	_qsize,4,2                      ## @qsize
	.comm	_qleft,8,3                      ## @qleft
	.comm	_qright,8,3                     ## @qright
	.comm	_qtotal,8,3                     ## @qtotal
	.comm	_B,4,2                          ## @B
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Random number generator initialization failed.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_random_init                    ; -- Begin function random_init
	.p2align	2
_random_init:                           ; @random_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	mov	w8, #268435456
	cmp	w1, #1
	csel	w22, w8, w1, lt
	mov	x0, x22
	bl	_zmalloc
Lloh0:
	adrp	x8, _buffer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _buffer@GOTPAGEOFF]
Lloh2:
	str	w0, [x8]
Lloh3:
	adrp	x8, _qsize@GOTPAGE
Lloh4:
	ldr	x8, [x8, _qsize@GOTPAGEOFF]
Lloh5:
	str	w22, [x8]
Lloh6:
	adrp	x8, _qleft@GOTPAGE
Lloh7:
	ldr	x8, [x8, _qleft@GOTPAGEOFF]
Lloh8:
	str	xzr, [x8]
Lloh9:
	adrp	x8, _qright@GOTPAGE
Lloh10:
	ldr	x8, [x8, _qright@GOTPAGEOFF]
Lloh11:
	str	xzr, [x8]
Lloh12:
	adrp	x8, _qtotal@GOTPAGE
Lloh13:
	ldr	x8, [x8, _qtotal@GOTPAGEOFF]
Lloh14:
	str	xzr, [x8]
Lloh15:
	adrp	x0, _B@GOTPAGE
Lloh16:
	ldr	x0, [x0, _B@GOTPAGEOFF]
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_bbs_init
	tbnz	x0, #63, LBB0_4
; %bb.1:
	mov	w20, #64
Lloh17:
	adrp	x19, _B@GOTPAGE
Lloh18:
	ldr	x19, [x19, _B@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_bbs_next_random_byte
	subs	w20, w20, #1
	b.ne	LBB0_2
; %bb.3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	_kprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_buffer,4,2                     ; @buffer
	.comm	_qsize,4,2                      ; @qsize
	.comm	_qleft,8,3                      ; @qleft
	.comm	_qright,8,3                     ; @qright
	.comm	_qtotal,8,3                     ; @qtotal
	.comm	_B,4,2                          ; @B
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Random number generator initialization failed.\n"

.subsections_via_symbols
