	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrb_random_init
_mrb_random_init:                       ## @mrb_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	%esi, %r14d
	movq	%rdi, %r15
	callq	_get_opt
	movl	%eax, %r12d
	movl	%r14d, %edi
	callq	_DATA_PTR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_mrb_free
LBB0_2:
	movq	_mt_state_type@GOTPCREL(%rip), %rdx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_mrb_data_init
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_mrb_malloc
	movq	%rax, %rbx
	movq	_N@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incq	%rax
	movq	%rax, 8(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_mrb_random_mt_srand
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_mrb_nil_p
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	jmp	LBB0_5
LBB0_4:
	movl	%r15d, %edi
	callq	_mrb_fixnum_p
	movl	%eax, %edi
	callq	_mrb_assert
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	%r15d, %edi
	callq	_mrb_fixnum
	movl	%eax, (%rbx)
LBB0_5:
	movq	_mt_state_type@GOTPCREL(%rip), %rdx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_mrb_data_init
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mt_state_type,4,2              ## @mt_state_type
	.comm	_N,8,3                          ## @N
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_mrb_random_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrb_random_init
_mrb_random_init:                       ; @mrb_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, x1
	mov	x21, x0
	bl	_get_opt
	mov	x22, x0
	mov	x0, x19
	bl	_DATA_PTR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x1, x0
	mov	x0, x21
	bl	_mrb_free
LBB0_2:
Lloh0:
	adrp	x2, _mt_state_type@GOTPAGE
Lloh1:
	ldr	x2, [x2, _mt_state_type@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, #0
	bl	_mrb_data_init
	mov	x0, x21
	mov	w1, #16
	bl	_mrb_malloc
	mov	x20, x0
Lloh2:
	adrp	x8, _N@GOTPAGE
Lloh3:
	ldr	x8, [x8, _N@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x8, x8, #1
	str	x8, [x0, #8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_mrb_random_mt_srand
	mov	x21, x0
	bl	_mrb_nil_p
	cbz	x0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _FALSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20, #4]
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_mrb_fixnum_p
	bl	_mrb_assert
Lloh8:
	adrp	x8, _TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20, #4]
	mov	x0, x21
	bl	_mrb_fixnum
	str	w0, [x20]
LBB0_5:
Lloh11:
	adrp	x2, _mt_state_type@GOTPAGE
Lloh12:
	ldr	x2, [x2, _mt_state_type@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	bl	_mrb_data_init
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_mt_state_type,4,2              ; @mt_state_type
	.comm	_N,8,3                          ; @N
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_mrb_random_init
.subsections_via_symbols
