	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ARC4Init                       ## -- Begin function ARC4Init
	.p2align	4, 0x90
_ARC4Init:                              ## @ARC4Init
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HPDF_ARC4_BUF_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movq	%rbx, %r9
	cmpl	$0, (%r13)
	jle	LBB0_10
## %bb.1:
	movq	(%r9), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, (%rax,%rcx,4)
	incq	%rcx
	movslq	(%r13), %rsi
	cmpq	%rsi, %rcx
	jl	LBB0_2
## %bb.3:
	testl	%esi, %esi
	jle	LBB0_10
## %bb.4:
	movl	%esi, %r8d
	cmpl	$1, %esi
	jne	LBB0_12
## %bb.5:
	xorl	%ecx, %ecx
	jmp	LBB0_6
LBB0_12:
	movl	%r8d, %edi
	andl	$-2, %edi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	cltd
	idivl	%r12d
                                        ## kill: def $edx killed $edx def $rdx
	movl	(%r15,%rdx,4), %eax
	movl	%eax, (%r14,%rcx,4)
	leal	1(%rcx), %eax
	cltd
	idivl	%r12d
                                        ## kill: def $edx killed $edx def $rdx
	movl	(%r15,%rdx,4), %eax
	movl	%eax, 4(%r14,%rcx,4)
	addq	$2, %rcx
	cmpq	%rdi, %rcx
	jne	LBB0_13
LBB0_6:
	testb	$1, %r8b
	je	LBB0_8
## %bb.7:
	movl	%ecx, %eax
	cltd
	idivl	%r12d
                                        ## kill: def $edx killed $edx def $rdx
	movl	(%r15,%rdx,4), %eax
	movl	%eax, (%r14,%rcx,4)
LBB0_8:
	movq	(%r9), %rcx
	xorl	%edi, %edi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdi,4), %ebx
	addl	%ebx, %edx
	addl	(%r14,%rdi,4), %edx
	movl	%edx, %eax
	cltd
	idivl	%esi
	movslq	%edx, %rax
	movl	(%rcx,%rax,4), %esi
	movl	%esi, (%rcx,%rdi,4)
	movl	%ebx, (%rcx,%rax,4)
	incq	%rdi
	movslq	(%r13), %rsi
	cmpq	%rsi, %rdi
	jl	LBB0_9
LBB0_10:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r9)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.14:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HPDF_ARC4_BUF_SIZE,4,2         ## @HPDF_ARC4_BUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" ARC4Init\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ARC4Init                       ; -- Begin function ARC4Init
	.p2align	2
_ARC4Init:                              ; @ARC4Init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x22, _HPDF_ARC4_BUF_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _HPDF_ARC4_BUF_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x9, #0
	ldr	x10, [x19]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	w9, [x10, x9, lsl #2]
	add	x9, x9, #1
	ldrsw	x8, [x22]
	cmp	x9, x8
	b.lt	LBB0_2
; %bb.3:
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.4:
	and	x9, x8, #0xffffffff
	cmp	w8, #4
	b.hs	LBB0_6
; %bb.5:
	mov	x10, #0
	b	LBB0_9
LBB0_6:
	mov	x11, #0
	and	x10, x9, #0xfffffffc
	add	x12, x23, #8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	w13, w11, #1
	add	w14, w11, #2
	add	w15, w11, #3
	sdiv	w16, w11, w20
	msub	w16, w16, w20, w11
	sdiv	w17, w13, w20
	msub	w13, w17, w20, w13
	sdiv	w17, w14, w20
	msub	w14, w17, w20, w14
	ldr	w16, [x21, w16, uxtw #2]
	ldr	w13, [x21, w13, uxtw #2]
	sdiv	w17, w15, w20
	msub	w15, w17, w20, w15
	ldr	w14, [x21, w14, uxtw #2]
	ldr	w15, [x21, w15, uxtw #2]
	stp	w16, w13, [x12, #-8]
	stp	w14, w15, [x12], #16
	add	x11, x11, #4
	cmp	x10, x11
	b.ne	LBB0_7
; %bb.8:
	cmp	x10, x9
	b.eq	LBB0_10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	sdiv	w11, w10, w20
	msub	w11, w11, w20, w10
	ldr	w11, [x21, w11, uxtw #2]
	str	w11, [x23, x10, lsl #2]
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_9
LBB0_10:
	mov	x9, #0
	mov	w11, #0
	ldr	x10, [x19]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	lsl	x12, x9, #2
	ldr	w13, [x10, x12]
	ldr	w14, [x23, x12]
	add	w11, w13, w11
	add	w11, w11, w14
	sdiv	w14, w11, w8
	msub	w11, w14, w8, w11
	sbfiz	x8, x11, #2, #32
	ldr	w14, [x10, x8]
	str	w14, [x10, x12]
	str	w13, [x10, x8]
	add	x9, x9, #1
	ldrsw	x8, [x22]
	cmp	x9, x8
	b.lt	LBB0_11
LBB0_12:
	stp	xzr, xzr, [x19, #8]
	ldur	x8, [x29, #-56]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_ARC4_BUF_SIZE,4,2         ; @HPDF_ARC4_BUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" ARC4Init\n"

.subsections_via_symbols
