	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CRYPTO_128_unwrap_pad          ## -- Begin function CRYPTO_128_unwrap_pad
	.p2align	4, 0x90
_CRYPTO_128_unwrap_pad:                 ## @CRYPTO_128_unwrap_pad
	.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)
	xorl	%ebx, %ebx
	cmpq	$16, %r8
	jb	LBB0_14
## %bb.1:
	movq	%r8, %r13
	movl	%r13d, %eax
	andl	$7, %eax
	testq	%rax, %rax
	jne	LBB0_14
## %bb.2:
	movq	_CRYPTO128_WRAP_MAX@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	jbe	LBB0_14
## %bb.3:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rdx
	cmpq	$16, %r13
	jne	LBB0_5
## %bb.4:
	leaq	-80(%rbp), %rbx
	movq	%rcx, %rdi
	movq	%rbx, %rsi
	callq	*%r9
	leaq	-56(%rbp), %rdi
	movq	%rbx, %rsi
	movl	$8, %edx
	callq	_memcpy
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_memcpy
	movl	$16, %esi
	movq	%rbx, %rdi
	callq	_OPENSSL_cleanse
	movl	$8, %r12d
	jmp	LBB0_6
LBB0_5:
	leaq	-8(%r13), %r12
	leaq	-56(%rbp), %rsi
	movq	%rdx, %rdi
	movq	%r14, %rdx
	movq	%r13, %r8
	callq	_crypto_128_unwrap_raw
	cmpq	%rax, %r12
	jne	LBB0_13
LBB0_6:
	testq	%r15, %r15
	je	LBB0_7
## %bb.8:
	leaq	-56(%rbp), %rdi
	movl	$4, %edx
	movq	%r15, %rsi
	jmp	LBB0_9
LBB0_7:
	movq	_default_aiv@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-56(%rbp), %rdi
	movl	$4, %edx
LBB0_9:
	callq	_CRYPTO_memcmp
	testq	%rax, %rax
	jne	LBB0_13
## %bb.10:
	movl	-52(%rbp), %ebx
	bswapl	%ebx
	leaq	-16(%r13), %rax
	andq	$-8, %rax
	cmpq	%rbx, %rax
	jae	LBB0_13
## %bb.11:
	leaq	-8(%r13), %rax
	andq	$-8, %rax
	cmpq	%rax, %rbx
	ja	LBB0_13
## %bb.12:
	subq	%rbx, %r12
	leaq	(%r14,%rbx), %rdi
	leaq	_CRYPTO_128_unwrap_pad.zeros(%rip), %rsi
	movq	%r12, %rdx
	callq	_CRYPTO_memcmp
	testq	%rax, %rax
	je	LBB0_14
LBB0_13:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_OPENSSL_cleanse
	xorl	%ebx, %ebx
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_CRYPTO_128_unwrap_pad.zeros,8,0 ## @CRYPTO_128_unwrap_pad.zeros
	.comm	_CRYPTO128_WRAP_MAX,8,3         ## @CRYPTO128_WRAP_MAX
	.comm	_default_aiv,8,3                ## @default_aiv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CRYPTO_128_unwrap_pad          ; -- Begin function CRYPTO_128_unwrap_pad
	.p2align	2
_CRYPTO_128_unwrap_pad:                 ; @CRYPTO_128_unwrap_pad
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x22, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cmp	x4, #16
	b.lo	LBB0_14
; %bb.1:
	mov	x19, x4
	and	x8, x4, #0x7
	cbnz	x8, LBB0_14
; %bb.2:
Lloh3:
	adrp	x8, _CRYPTO128_WRAP_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CRYPTO128_WRAP_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ls	LBB0_14
; %bb.3:
	mov	x20, x2
	mov	x21, x1
	mov	x2, x0
	subs	x23, x19, #16
	b.ne	LBB0_5
; %bb.4:
	mov	x22, sp
	mov	x1, sp
	mov	x0, x3
	blr	x5
	mov	w24, #8
	add	x0, sp, #16
	mov	x1, sp
	mov	w2, #8
	bl	_memcpy
	add	x1, x22, #8
	mov	x0, x20
	mov	w2, #8
	bl	_memcpy
	mov	x0, sp
	mov	w1, #16
	bl	_OPENSSL_cleanse
	b	LBB0_6
LBB0_5:
	sub	x24, x19, #8
	add	x1, sp, #16
	mov	x0, x2
	mov	x2, x20
	mov	x4, x19
	bl	_crypto_128_unwrap_raw
	cmp	x24, x0
	b.ne	LBB0_13
LBB0_6:
	cbz	x21, LBB0_8
; %bb.7:
	add	x0, sp, #16
	mov	x1, x21
	b	LBB0_9
LBB0_8:
Lloh6:
	adrp	x8, _default_aiv@GOTPAGE
Lloh7:
	ldr	x8, [x8, _default_aiv@GOTPAGEOFF]
Lloh8:
	ldr	x1, [x8]
	add	x0, sp, #16
LBB0_9:
	mov	w2, #4
	bl	_CRYPTO_memcmp
	cbnz	x0, LBB0_13
; %bb.10:
	ldr	w8, [sp, #20]
	rev	w22, w8
	and	x8, x23, #0xfffffffffffffff8
	cmp	x8, x22
	b.hs	LBB0_13
; %bb.11:
	sub	x8, x19, #8
	and	x8, x8, #0xfffffffffffffff8
	cmp	x22, x8
	b.hi	LBB0_13
; %bb.12:
	sub	x2, x24, x22
	add	x0, x20, x22
Lloh9:
	adrp	x1, _CRYPTO_128_unwrap_pad.zeros@PAGE
Lloh10:
	add	x1, x1, _CRYPTO_128_unwrap_pad.zeros@PAGEOFF
	bl	_CRYPTO_memcmp
	cbz	x0, LBB0_14
LBB0_13:
	mov	x0, x20
	mov	x1, x19
	bl	_OPENSSL_cleanse
	mov	x22, #0
LBB0_14:
	ldr	x8, [sp, #24]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x22
	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
	add	sp, sp, #96
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_CRYPTO_128_unwrap_pad.zeros,8,0 ; @CRYPTO_128_unwrap_pad.zeros
	.comm	_CRYPTO128_WRAP_MAX,8,3         ; @CRYPTO128_WRAP_MAX
	.comm	_default_aiv,8,3                ; @default_aiv
.subsections_via_symbols
