	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function aes_unwrap
LCPI0_0:
	.long	166                             ## 0xa6
	.long	166                             ## 0xa6
	.long	166                             ## 0xa6
	.long	166                             ## 0xa6
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_aes_unwrap
	.p2align	4, 0x90
_aes_unwrap:                            ## @aes_unwrap
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r13
	movl	%edx, %r15d
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	leaq	-144(%rbp), %rdi
	movq	%r13, %rsi
	movl	$8, %edx
	callq	_os_memcpy
	addq	$32, %r13
	leal	(,%r15,8), %r12d
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_os_memcpy
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_aes_decrypt_init
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	addl	$-8, %r12d
	movslq	%r12d, %rax
	leaq	(%r14,%rax,4), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	addq	$32, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leal	1(%r15), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	leal	(%r15,%r15), %eax
	leal	(%rax,%rax,2), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	$5, %eax
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-104(%rbp), %r15                ## 8-byte Reload
	subl	%r15d, -52(%rbp)                ## 4-byte Folded Spill
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	subl	$1, %eax
	jb	LBB0_7
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	testl	%r15d, %r15d
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	-76(%rbp), %r13d                ## 4-byte Reload
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	leaq	-144(%rbp), %rsi
	movl	$8, %edx
	callq	_os_memcpy
	movl	%r15d, %eax
	shrl	$8, %eax
	movl	%r15d, %ecx
	shrl	$16, %ecx
	movl	%r15d, %edx
	shrl	$24, %edx
	movd	%edx, %xmm0
	pinsrd	$1, %ecx, %xmm0
	pinsrd	$2, %eax, %xmm0
	pinsrd	$3, %r15d, %xmm0
	pxor	16(%rbx), %xmm0
	movdqa	%xmm0, 16(%rbx)
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_os_memcpy
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_aes_decrypt
	leaq	-144(%rbp), %rdi
	movq	%rbx, %rsi
	movl	$8, %edx
	callq	_os_memcpy
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$8, %edx
	callq	_os_memcpy
	addq	$-32, %r14
	decl	%r13d
	decl	%r15d
	cmpl	$1, %r13d
	ja	LBB0_5
	jmp	LBB0_6
LBB0_7:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_aes_decrypt_deinit
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [166,166,166,166]
	movdqa	-128(%rbp), %xmm1
	pcmpeqd	%xmm0, %xmm1
	pcmpeqd	%xmm2, %xmm2
	pcmpeqd	-144(%rbp), %xmm0
	pxor	%xmm2, %xmm1
	pxor	%xmm2, %xmm0
	packssdw	%xmm1, %xmm0
	pmovmskb	%xmm0, %ecx
	xorl	%eax, %eax
	negl	%ecx
	sbbl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	movl	$-1, %eax
LBB0_8:
	movq	-88(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ## @AES_BLOCK_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function aes_unwrap
lCPI0_0:
	.long	4294967272                      ; 0xffffffe8
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_aes_unwrap
	.p2align	2
_aes_unwrap:                            ; @aes_unwrap
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	sub	sp, sp, #80
	mov	x22, x4
	mov	x21, x3
	mov	x19, x2
	mov	x24, x1
	mov	x25, x0
	mov	x26, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-104]
Lloh3:
	adrp	x8, _AES_BLOCK_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AES_BLOCK_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	sub	x0, x29, #144
	mov	x1, x3
	mov	w2, #8
	bl	_os_memcpy
	add	x1, x21, #32
	lsl	w23, w19, #3
	mov	x0, x22
	mov	x2, x23
	bl	_os_memcpy
	mov	x0, x25
	mov	x1, x24
	bl	_aes_decrypt_init
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	sub	w8, w23, #8
	add	x8, x22, w8, sxtw #2
	stp	x26, x8, [x29, #-168]           ; 16-byte Folded Spill
	add	x22, x20, #32
	add	w24, w19, #1
	add	w8, w19, w19, lsl #1
	lsl	w26, w8, #1
	mov	w8, #5
Lloh8:
	adrp	x9, lCPI0_0@PAGE
Lloh9:
	ldr	d8, [x9, lCPI0_0@PAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	w8, w28, #1
	sub	w26, w26, w19
	cbz	w28, LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	x28, x8
	cmp	w19, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, x26
	mov	x25, x24
	ldur	x23, [x29, #-160]               ; 8-byte Folded Reload
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	x1, x29, #144
	mov	x0, x20
	mov	w2, #8
	bl	_os_memcpy
	ldp	w9, w8, [x20, #24]
	eor	w8, w8, w27
	eor	w9, w9, w27, lsr #8
	stp	w9, w8, [x20, #24]
	dup.2s	v0, w27
	ushl.2s	v0, v0, v8
	ldr	d1, [x20, #16]
	eor.8b	v0, v1, v0
	str	d0, [x20, #16]
	mov	x0, x22
	mov	x1, x23
	mov	w2, #8
	bl	_os_memcpy
	mov	x0, x21
	mov	x1, x20
	mov	x2, x20
	bl	_aes_decrypt
	sub	x0, x29, #144
	mov	x1, x20
	mov	w2, #8
	bl	_os_memcpy
	mov	x0, x23
	mov	x1, x22
	mov	w2, #8
	bl	_os_memcpy
	sub	x23, x23, #32
	sub	w25, w25, #1
	sub	w27, w27, #1
	cmp	w25, #1
	b.hi	LBB0_5
	b	LBB0_2
LBB0_6:
	mov	x0, x21
	bl	_aes_decrypt_deinit
	ldp	q1, q0, [x29, #-144]
	movi.4s	v2, #166
	cmeq.4s	v0, v0, v2
	mvn.16b	v0, v0
	cmeq.4s	v1, v1, v2
	mvn.16b	v1, v1
	uzp1.8h	v0, v1, v0
	xtn.8b	v0, v0
	umov.b	w8, v0[1]
	and	w8, w8, #0x1
	umov.b	w9, v0[0]
	and	w9, w9, #0x1
	umov.b	w10, v0[2]
	bfi	w9, w8, #1, #1
	and	w8, w10, #0x1
	bfi	w9, w8, #2, #1
	umov.b	w8, v0[3]
	and	w8, w8, #0x1
	bfi	w9, w8, #3, #1
	umov.b	w8, v0[4]
	and	w8, w8, #0x1
	umov.b	w10, v0[5]
	bfi	w9, w8, #4, #1
	and	w8, w10, #0x1
	bfi	w9, w8, #5, #1
	umov.b	w8, v0[6]
	and	w8, w8, #0x1
	orr	w8, w9, w8, lsl #6
	umov.b	w9, v0[7]
	orr	w8, w8, w9, lsl #7
	tst	w8, #0xff
	csetm	w0, ne
	ldur	x26, [x29, #-168]               ; 8-byte Folded Reload
	b	LBB0_8
LBB0_7:
	mov	w0, #-1
LBB0_8:
	mov	sp, x26
	ldur	x8, [x29, #-104]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #96
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ; @AES_BLOCK_SIZE
.subsections_via_symbols
