	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edi, (%rax)
	movq	_rand_type@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_TYPE_0@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_12
## %bb.1:
	movq	_rand_deg@GOTPCREL(%rip), %r14
	movq	(%r14), %r8
	cmpq	$2, %r8
	jl	LBB0_9
## %bb.2:
	leaq	-1(%r8), %rdx
	leaq	-2(%r8), %rbx
	movl	%edx, %ecx
	andl	$3, %ecx
	movl	$1, %esi
	cmpq	$3, %rbx
	jb	LBB0_6
## %bb.3:
	andq	$-4, %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	imull	$1103515145, %edi, %edi         ## imm = 0x41C64E09
	addl	$12345, %edi                    ## imm = 0x3039
	movl	%edi, 4(%rax,%rsi,4)
	imull	$1103515145, %edi, %edi         ## imm = 0x41C64E09
	addl	$12345, %edi                    ## imm = 0x3039
	movl	%edi, 8(%rax,%rsi,4)
	imull	$1103515145, %edi, %edi         ## imm = 0x41C64E09
	addl	$12345, %edi                    ## imm = 0x3039
	movl	%edi, 12(%rax,%rsi,4)
	imull	$1103515145, %edi, %edi         ## imm = 0x41C64E09
	addl	$12345, %edi                    ## imm = 0x3039
	movl	%edi, 16(%rax,%rsi,4)
	addq	$4, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_4
## %bb.5:
	incq	%rsi
LBB0_6:
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.7:
	leaq	(%rax,%rsi,4), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	imull	$1103515145, %edi, %edi         ## imm = 0x41C64E09
	addl	$12345, %edi                    ## imm = 0x3039
	movl	%edi, (%rdx,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_8
LBB0_9:
	movq	_rand_sep@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rcx
	movq	_fptr@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	movq	_rptr@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%r8, %r8
	jle	LBB0_12
## %bb.10:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_random
	incq	%rbx
	movq	(%r14), %rax
	addq	%rax, %rax
	leaq	(%rax,%rax,4), %rax
	cmpq	%rax, %rbx
	jl	LBB0_11
LBB0_12:
	popq	%rbx
	popq	%r14
	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	_rand_deg,8,3                   ## @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	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _state@GOTPAGE
Lloh1:
	ldr	x8, [x8, _state@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _rand_type@GOTPAGE
Lloh4:
	ldr	x9, [x9, _rand_type@GOTPAGEOFF]
	str	w0, [x8]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _TYPE_0@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TYPE_0@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_7
; %bb.1:
Lloh9:
	adrp	x19, _rand_deg@GOTPAGE
Lloh10:
	ldr	x19, [x19, _rand_deg@GOTPAGEOFF]
	ldr	x9, [x19]
	subs	x10, x9, #1
	b.le	LBB0_4
; %bb.2:
	add	x11, x8, #4
	mov	w12, #19977
	movk	w12, #16838, lsl #16
	mov	w13, #12345
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	madd	w0, w0, w12, w13
	str	w0, [x11], #4
	subs	x10, x10, #1
	b.ne	LBB0_3
LBB0_4:
Lloh11:
	adrp	x10, _rand_sep@GOTPAGE
Lloh12:
	ldr	x10, [x10, _rand_sep@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
Lloh14:
	adrp	x11, _fptr@GOTPAGE
Lloh15:
	ldr	x11, [x11, _fptr@GOTPAGEOFF]
	add	x10, x8, x10, lsl #2
Lloh16:
	str	x10, [x11]
Lloh17:
	adrp	x10, _rptr@GOTPAGE
Lloh18:
	ldr	x10, [x10, _rptr@GOTPAGEOFF]
Lloh19:
	str	x8, [x10]
	cmp	x9, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x20, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	bl	_random
	add	x20, x20, #1
	ldr	x8, [x19]
	add	x8, x8, x8, lsl #2
	cmp	x20, x8, lsl #1
	b.lt	LBB0_6
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_state,8,3                      ; @state
	.comm	_rand_type,8,3                  ; @rand_type
	.comm	_TYPE_0,8,3                     ; @TYPE_0
	.comm	_rand_deg,8,3                   ; @rand_deg
	.comm	_rand_sep,8,3                   ; @rand_sep
	.comm	_fptr,8,3                       ; @fptr
	.comm	_rptr,8,3                       ; @rptr
.subsections_via_symbols
