	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_rc2
_test_rc2:                              ## @test_rc2
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_RC2key@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rbx
	movq	(%rax,%rbx,8), %rdx
	leaq	-68(%rbp), %r14
	movq	%r14, %rdi
	movl	$16, %esi
	xorl	%ecx, %ecx
	callq	_RC2_set_key
	movq	_RC2plain@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	_RC2_ENCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-56(%rbp), %r15
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_RC2_ecb_encrypt
	movq	_RC2cipher@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rdi
	movl	$8, %esi
	movq	%r15, %rdx
	movl	$8, %ecx
	callq	_TEST_mem_eq
	testl	%eax, %eax
	setne	%r13b
	movq	_RC2_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-64(%rbp), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_RC2_ecb_encrypt
	movq	_RC2plain@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rdi
	movl	$8, %esi
	movq	%r12, %rdx
	movl	$8, %ecx
	callq	_TEST_mem_eq
	testl	%eax, %eax
	setne	%al
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_2
## %bb.1:
	andb	%r13b, %al
	movzbl	%al, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RC2key,8,3                     ## @RC2key
	.comm	_RC2plain,8,3                   ## @RC2plain
	.comm	_RC2_ENCRYPT,4,2                ## @RC2_ENCRYPT
	.comm	_RC2cipher,8,3                  ## @RC2cipher
	.comm	_RC2_DECRYPT,4,2                ## @RC2_DECRYPT
	.no_dead_strip	_test_rc2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_rc2
_test_rc2:                              ; @test_rc2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _RC2key@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RC2key@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	sbfiz	x20, x0, #3, #32
	ldr	x2, [x8, x20]
	add	x0, sp, #4
	mov	w1, #16
	mov	w3, #0
	bl	_RC2_set_key
Lloh6:
	adrp	x21, _RC2plain@GOTPAGE
Lloh7:
	ldr	x21, [x21, _RC2plain@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x0, [x8, x20]
Lloh8:
	adrp	x8, _RC2_ENCRYPT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RC2_ENCRYPT@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	add	x1, sp, #16
	add	x2, sp, #4
	bl	_RC2_ecb_encrypt
Lloh11:
	adrp	x8, _RC2cipher@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RC2cipher@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x0, [x8, x20]
	add	x2, sp, #16
	mov	w1, #8
	mov	w3, #8
	bl	_TEST_mem_eq
	mov	x19, x0
Lloh14:
	adrp	x8, _RC2_DECRYPT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RC2_DECRYPT@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	add	x0, sp, #16
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_RC2_ecb_encrypt
	ldr	x8, [x21]
	ldr	x0, [x8, x20]
	add	x2, sp, #8
	mov	w1, #8
	mov	w3, #8
	bl	_TEST_mem_eq
	cmp	w0, #0
	ccmp	w19, #0, #4, ne
	cset	w0, ne
	ldr	x8, [sp, #24]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RC2key,8,3                     ; @RC2key
	.comm	_RC2plain,8,3                   ; @RC2plain
	.comm	_RC2_ENCRYPT,4,2                ; @RC2_ENCRYPT
	.comm	_RC2cipher,8,3                  ; @RC2cipher
	.comm	_RC2_DECRYPT,4,2                ; @RC2_DECRYPT
	.no_dead_strip	_test_rc2
.subsections_via_symbols
