	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aria_set_decrypt_key           ## -- Begin function aria_set_decrypt_key
	.p2align	4, 0x90
_aria_set_decrypt_key:                  ## @aria_set_decrypt_key
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	callq	_aria_set_encrypt_key
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	8(%r14), %rbx
	movslq	(%r14), %r15
	leaq	(%rbx,%r15,8), %rsi
	movq	(%rbx), %rax
	movq	(%rax), %r13
	movq	8(%rax), %r14
	movq	16(%rax), %r12
	movq	24(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_ARIA_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_memcpy
	movq	%r13, %rdx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx,%r15,8), %rax
	movq	%r13, (%rax)
	movq	(%rbx,%r15,8), %rax
	movq	%r14, 8(%rax)
	movq	%rbx, %r14
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	(%r14,%r15,8), %rax
	movq	%r12, 16(%rax)
	movq	(%r14,%r15,8), %rax
	movq	%rbx, 24(%rax)
	cmpq	$3, %r15
	jl	LBB0_2
## %bb.3:
	leaq	-8(,%r15,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	-16(,%r15,8), %rdi
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movl	$8, %r12d
	xorl	%esi, %esi
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	(%r14,%r12), %rax
	movq	(%rax), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_ARIA_DEC_DIFF_BYTE
	movq	(%r14,%r12), %rax
	movq	8(%rax), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_ARIA_DEC_DIFF_BYTE
	movq	(%r14,%r12), %rax
	movq	16(%rax), %rdi
	movq	%r13, %rsi
	callq	_ARIA_DEC_DIFF_BYTE
	movq	(%r14,%r12), %rax
	movq	24(%rax), %rdi
	movq	%r15, %rsi
	callq	_ARIA_DEC_DIFF_BYTE
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	_ARIA_DIFF_WORD
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	_ARIA_DIFF_BYTE
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	_ARIA_DIFF_WORD
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	(%r14,%rbx), %rax
	movq	(%rax), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_ARIA_DEC_DIFF_BYTE
	movq	(%r14,%rbx), %rax
	movq	8(%rax), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_ARIA_DEC_DIFF_BYTE
	movq	(%r14,%rbx), %rax
	movq	16(%rax), %rdi
	movq	%r13, %rsi
	callq	_ARIA_DEC_DIFF_BYTE
	movq	(%r14,%rbx), %rax
	movq	24(%rax), %rdi
	movq	%r15, %rsi
	callq	_ARIA_DEC_DIFF_BYTE
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	_ARIA_DIFF_WORD
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	_ARIA_DIFF_BYTE
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	_ARIA_DIFF_WORD
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%r14,%r12), %rax
	movq	%rdx, (%rax)
	movq	(%r14,%r12), %rax
	movq	%rcx, 8(%rax)
	movq	(%r14,%r12), %rax
	movq	%r13, 16(%rax)
	movq	(%r14,%r12), %rax
	movq	%r15, 24(%rax)
	movq	(%r14,%rbx), %rax
	movq	%rdx, (%rax)
	movq	(%r14,%rbx), %rax
	movq	%rcx, 8(%rax)
	movq	(%r14,%rbx), %rax
	movq	%r13, 16(%rax)
	movq	(%r14,%rbx), %rax
	movq	%r15, 24(%rax)
	leaq	(%r14,%rdi), %rax
	addq	$-8, %rsi
	leaq	(%r14,%r12), %rcx
	addq	$8, %rcx
	addq	$8, %r12
	addq	$-8, %rbx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	addq	$-8, %rdi
	cmpq	%rax, %rcx
	jb	LBB0_4
## %bb.5:
	addq	%r14, -64(%rbp)                 ## 8-byte Folded Spill
	subq	%rsi, %r14
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_2:
	leaq	(%r14,%r15,8), %rax
	addq	$-8, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_6:
	movq	8(%r14), %rax
	movq	(%rax), %rdi
	movq	%rdx, %r13
	movq	%rdx, %rsi
	callq	_ARIA_DEC_DIFF_BYTE
	movq	8(%r14), %rax
	movq	8(%rax), %rdi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_ARIA_DEC_DIFF_BYTE
	movq	8(%r14), %rax
	movq	16(%rax), %rdi
	movq	%r12, %rsi
	callq	_ARIA_DEC_DIFF_BYTE
	movq	8(%r14), %rax
	movq	24(%rax), %rdi
	movq	%rbx, %rsi
	callq	_ARIA_DEC_DIFF_BYTE
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	callq	_ARIA_DIFF_WORD
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	callq	_ARIA_DIFF_BYTE
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	callq	_ARIA_DIFF_WORD
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	%r13, (%rax)
	movq	(%rcx), %rax
	movq	%r15, 8(%rax)
	movq	(%rcx), %rax
	movq	%r12, 16(%rax)
	movq	(%rcx), %rax
	movq	%rbx, 24(%rax)
	xorl	%eax, %eax
LBB0_7:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARIA_BLOCK_SIZE,4,2            ## @ARIA_BLOCK_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aria_set_decrypt_key           ; -- Begin function aria_set_decrypt_key
	.p2align	2
_aria_set_decrypt_key:                  ; @aria_set_decrypt_key
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	bl	_aria_set_encrypt_key
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	x23, [x19, #8]
	ldrsw	x26, [x19]
	add	x24, x23, x26, lsl #3
	ldr	x8, [x23]
	ldp	x19, x20, [x8]
	ldp	x21, x22, [x8, #16]
Lloh0:
	adrp	x8, _ARIA_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARIA_BLOCK_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x24
	bl	_memcpy
	ldr	x8, [x24]
	str	x19, [x8]
	ldr	x8, [x24]
	str	x20, [x8, #8]
	ldr	x8, [x24]
	str	x21, [x8, #16]
	ldr	x8, [x24], #-8
	str	x22, [x8, #24]
	cmp	w26, #3
	b.lt	LBB0_5
; %bb.2:
	mov	x25, #0
	lsl	x24, x26, #3
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x26, x23, x25
	ldr	x8, [x26, #8]
	ldr	x0, [x8]
	mov	x1, x19
	bl	_ARIA_DEC_DIFF_BYTE
	ldr	x8, [x26, #8]
	ldr	x0, [x8, #8]
	mov	x1, x20
	bl	_ARIA_DEC_DIFF_BYTE
	ldr	x8, [x26, #8]
	ldr	x0, [x8, #16]
	mov	x1, x21
	bl	_ARIA_DEC_DIFF_BYTE
	ldr	x8, [x26, #8]
	ldr	x0, [x8, #24]
	mov	x1, x22
	bl	_ARIA_DEC_DIFF_BYTE
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_ARIA_DIFF_WORD
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_ARIA_DIFF_BYTE
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_ARIA_DIFF_WORD
	add	x27, x23, x24
	ldur	x8, [x27, #-8]
	ldr	x0, [x8]
	mov	x1, x19
	bl	_ARIA_DEC_DIFF_BYTE
	ldur	x8, [x27, #-8]
	ldr	x0, [x8, #8]
	mov	x1, x20
	bl	_ARIA_DEC_DIFF_BYTE
	ldur	x8, [x27, #-8]
	ldr	x0, [x8, #16]
	mov	x1, x21
	bl	_ARIA_DEC_DIFF_BYTE
	ldur	x8, [x27, #-8]
	ldr	x0, [x8, #24]
	mov	x1, x22
	bl	_ARIA_DEC_DIFF_BYTE
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_ARIA_DIFF_WORD
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_ARIA_DIFF_BYTE
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_ARIA_DIFF_WORD
	ldr	x8, [x26, #8]
	str	x19, [x8]
	ldr	x8, [x26, #8]
	str	x20, [x8, #8]
	ldr	x8, [x26, #8]
	str	x21, [x8, #16]
	ldr	x8, [x26, #8]
	str	x22, [x8, #24]
	ldur	x8, [x27, #-8]
	str	x19, [x8]
	ldur	x8, [x27, #-8]
	str	x20, [x8, #8]
	ldur	x8, [x27, #-8]
	str	x21, [x8, #16]
	ldur	x8, [x27, #-8]
	str	x22, [x8, #24]
	sub	x9, x27, #16
	add	x25, x25, #8
	add	x8, x23, x25
	add	x10, x8, #8
	sub	x24, x24, #8
	cmp	x10, x9
	b.lo	LBB0_3
; %bb.4:
	add	x9, x23, x24
	sub	x24, x9, #8
	mov	x23, x8
LBB0_5:
	ldr	x8, [x23, #8]
	ldr	x0, [x8]
	mov	x1, x19
	bl	_ARIA_DEC_DIFF_BYTE
	ldr	x8, [x23, #8]
	ldr	x0, [x8, #8]
	mov	x1, x20
	bl	_ARIA_DEC_DIFF_BYTE
	ldr	x8, [x23, #8]
	ldr	x0, [x8, #16]
	mov	x1, x21
	bl	_ARIA_DEC_DIFF_BYTE
	ldr	x8, [x23, #8]
	ldr	x0, [x8, #24]
	mov	x1, x22
	bl	_ARIA_DEC_DIFF_BYTE
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_ARIA_DIFF_WORD
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_ARIA_DIFF_BYTE
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_ARIA_DIFF_WORD
	mov	w0, #0
	ldr	x8, [x24]
	str	x19, [x8]
	ldr	x8, [x24]
	str	x20, [x8, #8]
	ldr	x8, [x24]
	str	x21, [x8, #16]
	ldr	x8, [x24]
	str	x22, [x8, #24]
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ARIA_BLOCK_SIZE,4,2            ; @ARIA_BLOCK_SIZE
.subsections_via_symbols
