	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_srandom                        ## -- Begin function srandom
	.p2align	4, 0x90
_srandom:                               ## @srandom
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_state@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	%edi, (%rcx)
	movq	_rand_type@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_TYPE_0@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_1
## %bb.8:
	movq	_NSHUFF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jg	LBB0_6
	jmp	LBB0_7
LBB0_1:
	movq	_rand_deg@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	cmpl	$2, %edx
	jl	LBB0_4
## %bb.2:
	movl	%edi, %eax
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edi
	callq	_good_rand
	movq	(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	(%r15), %rdx
	cmpq	%rdx, %rbx
	jl	LBB0_3
LBB0_4:
	movq	_rand_sep@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rcx,%rax,4), %rax
	movq	_fptr@GOTPCREL(%rip), %rsi
	movq	%rax, (%rsi)
	movq	_rptr@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
	addl	%edx, %edx
	leal	(%rdx,%rdx,4), %ebx
	testl	%ebx, %ebx
	jle	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_random
	decl	%ebx
	jne	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_state,8,3                      ## @state
	.comm	_rand_type,8,3                  ## @rand_type
	.comm	_TYPE_0,8,3                     ## @TYPE_0
	.comm	_NSHUFF,4,2                     ## @NSHUFF
	.comm	_rand_deg,4,2                   ## @rand_deg
	.comm	_rand_sep,8,3                   ## @rand_sep
	.comm	_fptr,8,3                       ## @fptr
	.comm	_rptr,8,3                       ## @rptr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_srandom                        ; -- Begin function srandom
	.p2align	2
_srandom:                               ; @srandom
	.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
Lloh0:
	adrp	x19, _state@GOTPAGE
Lloh1:
	ldr	x19, [x19, _state@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _rand_type@GOTPAGE
Lloh3:
	ldr	x9, [x9, _rand_type@GOTPAGEOFF]
	str	w0, [x8]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _TYPE_0@GOTPAGE
Lloh6:
	ldr	x10, [x10, _TYPE_0@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _NSHUFF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NSHUFF@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
	cmp	w19, #1
	b.ge	LBB0_6
	b	LBB0_7
LBB0_2:
Lloh11:
	adrp	x20, _rand_deg@GOTPAGE
Lloh12:
	ldr	x20, [x20, _rand_deg@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w9, #2
	b.lt	LBB0_5
; %bb.3:
	mov	w21, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	bl	_good_rand
	ldr	x8, [x19]
	str	w0, [x8, x21, lsl #2]
	add	x21, x21, #1
	ldrsw	x9, [x20]
	cmp	x21, x9
	b.lt	LBB0_4
LBB0_5:
Lloh13:
	adrp	x10, _rand_sep@GOTPAGE
Lloh14:
	ldr	x10, [x10, _rand_sep@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	add	x10, x8, x10, lsl #2
Lloh16:
	adrp	x11, _fptr@GOTPAGE
Lloh17:
	ldr	x11, [x11, _fptr@GOTPAGEOFF]
Lloh18:
	str	x10, [x11]
Lloh19:
	adrp	x10, _rptr@GOTPAGE
Lloh20:
	ldr	x10, [x10, _rptr@GOTPAGEOFF]
Lloh21:
	str	x8, [x10]
	add	w8, w9, w9, lsl #2
	lsl	w19, w8, #1
	cmp	w19, #1
	b.lt	LBB0_7
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	bl	_random
	subs	w19, w19, #1
	b.ne	LBB0_6
LBB0_7:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_state,8,3                      ; @state
	.comm	_rand_type,8,3                  ; @rand_type
	.comm	_TYPE_0,8,3                     ; @TYPE_0
	.comm	_NSHUFF,4,2                     ; @NSHUFF
	.comm	_rand_deg,4,2                   ; @rand_deg
	.comm	_rand_sep,8,3                   ; @rand_sep
	.comm	_fptr,8,3                       ; @fptr
	.comm	_rptr,8,3                       ; @rptr
.subsections_via_symbols
