	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rs_stir
__rs_stir:                              ## @_rs_stir
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_KEYSZ@GOTPCREL(%rip), %rax
	movq	_IVSZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	addl	(%rax), %ebx
	leaq	(,%rbx,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	shll	$2, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_getentropy
	cmpl	$-1, %eax
	jne	LBB0_3
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOSYS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.2:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_fallback_getentropy_urandom
	cmpl	$-1, %eax
	je	LBB0_8
LBB0_3:
	movq	_rs@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	__rs_rekey
	jmp	LBB0_6
LBB0_4:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	__rs_init
LBB0_6:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_explicit_bzero
	movq	(%r15), %rax
	movq	$0, 8(%rax)
	movq	_rsx@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	(%r15), %rax
	movl	$1600000, (%rax)                ## imm = 0x186A00
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_9
## %bb.7:
	leaq	-24(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
LBB0_8:
	movl	$9, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_KEYSZ,4,2                      ## @KEYSZ
	.comm	_IVSZ,4,2                       ## @IVSZ
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOSYS,8,3                     ## @ENOSYS
	.comm	_rs,8,3                         ## @rs
	.comm	_rsx,8,3                        ## @rsx
	.comm	_SIGKILL,4,2                    ## @SIGKILL
	.no_dead_strip	__rs_stir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rs_stir
__rs_stir:                              ; @_rs_stir
	.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
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _KEYSZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KEYSZ@GOTPAGEOFF]
Lloh5:
	adrp	x9, _IVSZ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IVSZ@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	add	w8, w9, w8
	lsl	x9, x8, #2
	add	x10, x9, #15
	and	x12, x10, #0x7fffffff0
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x19, x9, x12
	mov	sp, x19
	lsl	w20, w8, #2
	mov	x0, x19
	mov	x1, x20
	bl	_getentropy
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.1:
Lloh11:
	adrp	x8, _errno@GOTPAGE
Lloh12:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _ENOSYS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ENOSYS@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_fallback_getentropy_urandom
	cmn	w0, #1
	b.eq	LBB0_9
LBB0_3:
Lloh17:
	adrp	x21, _rs@GOTPAGE
Lloh18:
	ldr	x21, [x21, _rs@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	__rs_rekey
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	__rs_init
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_explicit_bzero
	ldr	x8, [x21]
	str	xzr, [x8, #8]
Lloh19:
	adrp	x8, _rsx@GOTPAGE
Lloh20:
	ldr	x8, [x8, _rsx@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	w0, [x8]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x8, [x21]
	mov	w9, #27136
	movk	w9, #24, lsl #16
	str	w9, [x8]
	ldur	x8, [x29, #-40]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	sub	sp, x29, #32
	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_8:
	bl	___stack_chk_fail
LBB0_9:
	mov	w0, #9
	bl	_exit
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_KEYSZ,4,2                      ; @KEYSZ
	.comm	_IVSZ,4,2                       ; @IVSZ
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOSYS,8,3                     ; @ENOSYS
	.comm	_rs,8,3                         ; @rs
	.comm	_rsx,8,3                        ; @rsx
	.comm	_SIGKILL,4,2                    ; @SIGKILL
	.no_dead_strip	__rs_stir
.subsections_via_symbols
