	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rc2_expandKey
_rc2_expandKey:                         ## @rc2_expandKey
	.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
	movl	%edx, %ebx
	leal	-129(%rbx), %ecx
	xorl	%eax, %eax
	cmpl	$-128, %ecx
	jb	LBB0_18
## %bb.1:
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	movl	%ebx, %edx
	callq	_memcpy
	movq	_PITABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14), %rdx
	cmpl	$127, %ebx
	ja	LBB0_6
## %bb.2:
	movl	$4294967295, %r8d               ## imm = 0xFFFFFFFF
	movl	%ebx, %esi
	movq	%rsi, %rdi
	testb	$1, %bl
	je	LBB0_4
## %bb.3:
	leal	(%rsi,%r8), %edi
	movl	(%rdx,%rdi,4), %edi
	addl	(%rdx), %edi
	movzbl	%dil, %edi
	movl	(%rax,%rdi,4), %edi
	movl	%edi, (%rdx,%rsi,4)
	leaq	1(%rsi), %rdi
LBB0_4:
	cmpl	$127, %ebx
	je	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdi, %rbx
	subq	%rsi, %rbx
	leal	(%rdi,%r8), %ecx
	movl	(%rdx,%rcx,4), %ecx
	addl	(%rdx,%rbx,4), %ecx
	movzbl	%cl, %ecx
	movl	(%rax,%rcx,4), %ecx
	movl	%ecx, (%rdx,%rdi,4)
	leaq	1(%rdi), %rcx
	subq	%rsi, %rcx
	movl	%edi, %ebx
	movl	(%rdx,%rbx,4), %ebx
	addl	(%rdx,%rcx,4), %ebx
	movzbl	%bl, %ecx
	movl	(%rax,%rcx,4), %ecx
	movl	%ecx, 4(%rdx,%rdi,4)
	addq	$2, %rdi
	cmpl	$128, %edi
	jne	LBB0_5
LBB0_6:
	movq	_BITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	7(%rcx), %esi
	sarl	$3, %esi
	leal	-128(%rsi), %edi
	negb	%cl
	andb	$7, %cl
	movl	$255, %ebx
                                        ## kill: def $cl killed $cl killed $rcx
	shrq	%cl, %rbx
	negl	%edi
	movslq	%edi, %rcx
	andl	(%rdx,%rcx,4), %ebx
	movl	(%rax,%rbx,4), %edi
	movl	%edi, (%rdx,%rcx,4)
	cmpl	$128, %esi
	je	LBB0_12
## %bb.7:
	movslq	%esi, %r8
	testb	$1, %cl
	je	LBB0_9
## %bb.8:
	leaq	(%rcx,%r8), %rbx
	decq	%rbx
	xorl	(%rdx,%rbx,4), %edi
	movslq	%edi, %rdi
	movl	(%rax,%rdi,4), %edi
	movl	%edi, -4(%rdx,%rcx,4)
	decq	%rcx
LBB0_9:
	cmpl	$127, %esi
	je	LBB0_12
## %bb.10:
	leaq	-4(%rdx), %rsi
	leaq	(%rdx,%r8,4), %rbx
	addq	$-4, %rbx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	xorl	(%rbx,%rcx,4), %edi
	movslq	%edi, %rdi
	movl	(%rax,%rdi,4), %edi
	movl	%edi, (%rsi,%rcx,4)
	xorl	-4(%rbx,%rcx,4), %edi
	movslq	%edi, %rdi
	movl	(%rax,%rdi,4), %edi
	movl	%edi, -4(%rsi,%rcx,4)
	addq	$-2, %rcx
	jne	LBB0_11
LBB0_12:
	movq	_RC2_KEY_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	jle	LBB0_18
## %bb.13:
	movq	%rcx, %rsi
	testb	$1, %cl
	je	LBB0_15
## %bb.14:
	leaq	-1(%rcx), %rsi
	leal	(%rsi,%rsi), %edi
	movslq	%edi, %rdi
	leal	(%rsi,%rsi), %ebx
	incl	%ebx
	movslq	%ebx, %rbx
	movl	(%rdx,%rbx,4), %ebx
	shll	$8, %ebx
	addl	(%rdx,%rdi,4), %ebx
	movl	%ebx, -4(%rdx,%rcx,4)
LBB0_15:
	cmpl	$1, %ecx
	je	LBB0_18
## %bb.16:
	leaq	(%rdx,%rsi,4), %r11
	addq	$-4, %r11
	leal	(%rsi,%rsi), %r8d
	addl	$-4, %r8d
	orq	$1, %r8
	movq	%rsi, %rdi
	incq	%rdi
	leal	(%rsi,%rsi), %r10d
	addl	$-2, %r10d
	leaq	1(%r10), %r9
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	leal	(%r10,%rsi), %ebx
	movslq	%ebx, %rbx
	leal	(%r9,%rsi), %ecx
	movslq	%ecx, %rcx
	movl	(%rdx,%rcx,4), %ecx
	shll	$8, %ecx
	addl	(%rdx,%rbx,4), %ecx
	movl	%ecx, (%r11,%rsi,2)
	leaq	(%r8,%rsi), %rcx
	leal	-1(%rcx), %ebx
	movslq	%ebx, %rbx
	movslq	%ecx, %rcx
	movl	(%rdx,%rcx,4), %ecx
	shll	$8, %ecx
	addl	(%rdx,%rbx,4), %ecx
	movl	%ecx, -4(%r11,%rsi,2)
	addq	$-4, %rsi
	addq	$-2, %rdi
	cmpq	$1, %rdi
	ja	LBB0_17
LBB0_18:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PITABLE,8,3                    ## @PITABLE
	.comm	_BITS,4,2                       ## @BITS
	.comm	_RC2_KEY_SIZE,4,2               ## @RC2_KEY_SIZE
	.no_dead_strip	_rc2_expandKey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rc2_expandKey
_rc2_expandKey:                         ; @rc2_expandKey
	.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
	sub	w8, w2, #129
	cmn	w8, #128
	b.hs	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_12
LBB0_2:
	mov	x19, x2
	mov	x20, x0
	ldr	x0, [x0]
	bl	_memcpy
Lloh0:
	adrp	x8, _PITABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PITABLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	ldr	x8, [x20]
	cmp	w19, #127
	b.hi	LBB0_5
; %bb.3:
	mov	x10, #0
	mov	w11, w19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x8, x10]
	sub	w13, w11, #1
	ldr	w13, [x8, w13, uxtw #2]
	add	w12, w13, w12
	and	w12, w12, #0xff
	ldr	w12, [x9, w12, uxtw #2]
	str	w12, [x8, x11, lsl #2]
	add	x11, x11, #1
	add	x10, x10, #4
	cmp	w11, #128
	b.ne	LBB0_4
LBB0_5:
Lloh3:
	adrp	x10, _BITS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BITS@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	add	w11, w10, #7
	asr	w12, w11, #3
	mov	w11, #128
	sub	w11, w11, w12
	sbfiz	x11, x11, #2, #32
	ldr	w13, [x8, x11]
	neg	w10, w10
	and	x10, x10, #0x7
	mov	w14, #255
	lsr	x10, x14, x10
	and	x10, x13, x10
	ldr	w10, [x9, x10, lsl #2]
	str	w10, [x8, x11]
	cmp	w12, #128
	b.eq	LBB0_8
; %bb.6:
	mov	x13, #0
	sxtw	x11, w12
	sub	x11, x11, #128
	sub	x12, x13, w12, sxtw #2
	add	x13, x8, #508
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x13]
	eor	w10, w14, w10
	ldr	w10, [x9, w10, sxtw #2]
	str	w10, [x13, x12]
	sub	x13, x13, #4
	adds	x11, x11, #1
	b.lo	LBB0_7
LBB0_8:
Lloh6:
	adrp	x9, _RC2_KEY_SIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RC2_KEY_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.9:
	lsl	w10, w9, #1
	sub	w11, w10, #1
	sub	x10, x8, #4
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	sub	w12, w11, #1
	ldr	w13, [x8, w11, sxtw #2]
	sub	w11, w11, #2
	ldr	w12, [x8, w12, sxtw #2]
	add	w12, w12, w13, lsl #8
	str	w12, [x10, x9, lsl #2]
	subs	x9, x9, #1
	b.hi	LBB0_10
LBB0_11:
	mov	w0, #1
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PITABLE,8,3                    ; @PITABLE
	.comm	_BITS,4,2                       ; @BITS
	.comm	_RC2_KEY_SIZE,4,2               ; @RC2_KEY_SIZE
	.no_dead_strip	_rc2_expandKey
.subsections_via_symbols
