	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rs_init
__rs_init:                              ## @_rs_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_assert
	movq	_KEYSZ@GOTPCREL(%rip), %r15
	movq	_IVSZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	(%r15), %rax
	cmpq	%rbx, %rax
	jbe	LBB0_1
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_rs@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_3
## %bb.2:
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movq	_PROT_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_MAP_ANON@GOTPCREL(%rip), %rax
	movq	_MAP_PRIVATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%edi, %edi
	movl	$4, %esi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	_mmap
	movq	%rax, (%rbx)
	movq	_MAP_FAILED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
LBB0_3:
	movq	_rsx@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_5
## %bb.4:
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movq	_PROT_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_MAP_ANON@GOTPCREL(%rip), %rax
	movq	_MAP_PRIVATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%edi, %edi
	movl	$4, %esi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	_mmap
	movq	%rax, %rdi
	movq	%rax, (%rbx)
	movq	_MAP_FAILED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_7
LBB0_5:
	movq	(%r15), %rdx
	shlq	$3, %rdx
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_chacha_keysetup
	movq	(%rbx), %rdi
	movq	(%r15), %rax
	leaq	(%r14,%rax,4), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_chacha_ivsetup                 ## TAILCALL
LBB0_7:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_KEYSZ,8,3                      ## @KEYSZ
	.comm	_IVSZ,8,3                       ## @IVSZ
	.comm	_rs,8,3                         ## @rs
	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_PROT_WRITE,4,2                 ## @PROT_WRITE
	.comm	_MAP_ANON,4,2                   ## @MAP_ANON
	.comm	_MAP_PRIVATE,4,2                ## @MAP_PRIVATE
	.comm	_MAP_FAILED,8,3                 ## @MAP_FAILED
	.comm	_rsx,8,3                        ## @rsx
	.comm	_MAP_INHERIT_ZERO,4,2           ## @MAP_INHERIT_ZERO
	.no_dead_strip	__rs_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rs_init
__rs_init:                              ; @_rs_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	x20, x1
	mov	x19, x0
	bl	_assert
Lloh0:
	adrp	x21, _KEYSZ@GOTPAGE
Lloh1:
	ldr	x21, [x21, _KEYSZ@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _IVSZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IVSZ@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x8, x9, x8
	cmp	x8, x20
	b.ls	LBB0_2
; %bb.1:
	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_2:
Lloh5:
	adrp	x20, _rs@GOTPAGE
Lloh6:
	ldr	x20, [x20, _rs@GOTPAGEOFF]
	ldr	x8, [x20]
	cbnz	x8, LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _PROT_WRITE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PROT_WRITE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x10, _MAP_ANON@GOTPAGE
Lloh14:
	ldr	x10, [x10, _MAP_ANON@GOTPAGEOFF]
	orr	w2, w9, w8
Lloh15:
	ldr	w8, [x10]
Lloh16:
	adrp	x9, _MAP_PRIVATE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MAP_PRIVATE@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, #0
	mov	w1, #4
	mov	w4, #-1
	mov	w5, #0
	bl	_mmap
	str	x0, [x20]
Lloh19:
	adrp	x8, _MAP_FAILED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MAP_FAILED@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_7
LBB0_4:
Lloh22:
	adrp	x20, _rsx@GOTPAGE
Lloh23:
	ldr	x20, [x20, _rsx@GOTPAGEOFF]
	ldr	x0, [x20]
	cbnz	x0, LBB0_6
; %bb.5:
Lloh24:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _PROT_WRITE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _PROT_WRITE@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
Lloh30:
	adrp	x10, _MAP_ANON@GOTPAGE
Lloh31:
	ldr	x10, [x10, _MAP_ANON@GOTPAGEOFF]
	orr	w2, w9, w8
Lloh32:
	ldr	w8, [x10]
Lloh33:
	adrp	x9, _MAP_PRIVATE@GOTPAGE
Lloh34:
	ldr	x9, [x9, _MAP_PRIVATE@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	w1, #4
	mov	w4, #-1
	mov	w5, #0
	bl	_mmap
	str	x0, [x20]
Lloh36:
	adrp	x8, _MAP_FAILED@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MAP_FAILED@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_7
LBB0_6:
	ldr	x8, [x21]
	lsl	x2, x8, #3
	mov	x1, x19
	mov	w3, #0
	bl	_chacha_keysetup
	ldr	x0, [x20]
	ldr	x8, [x21]
	add	x1, x19, x8, lsl #2
	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
	b	_chacha_ivsetup
LBB0_7:
	bl	_abort
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_KEYSZ,8,3                      ; @KEYSZ
	.comm	_IVSZ,8,3                       ; @IVSZ
	.comm	_rs,8,3                         ; @rs
	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_PROT_WRITE,4,2                 ; @PROT_WRITE
	.comm	_MAP_ANON,4,2                   ; @MAP_ANON
	.comm	_MAP_PRIVATE,4,2                ; @MAP_PRIVATE
	.comm	_MAP_FAILED,8,3                 ; @MAP_FAILED
	.comm	_rsx,8,3                        ; @rsx
	.comm	_MAP_INHERIT_ZERO,4,2           ; @MAP_INHERIT_ZERO
	.no_dead_strip	__rs_init
.subsections_via_symbols
