	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aes_wrap                       ## -- Begin function aes_wrap
	.p2align	4, 0x90
_aes_wrap:                              ## @aes_wrap
	.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	%r8, %r15
	movq	%rcx, %r12
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_TEST_FAIL
	movl	$-1, %r13d
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	shlq	$3, %rbx
	leaq	-44(%rbp), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_AES_set_encrypt_key
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movl	%r14d, %r8d
	shll	$3, %r8d
	leaq	-44(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_AES_wrap_key
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_OPENSSL_cleanse
	xorl	%r13d, %r13d
	testl	%ebx, %ebx
	setle	%r13b
	negl	%r13d
LBB0_3:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aes_wrap                       ; -- Begin function aes_wrap
	.p2align	2
_aes_wrap:                              ; @aes_wrap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x4
	mov	x19, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
	bl	_TEST_FAIL
	cbnz	x0, LBB0_2
; %bb.1:
	lsl	x1, x23, #3
	add	x2, sp, #12
	mov	x0, x22
	bl	_AES_set_encrypt_key
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #-1
LBB0_3:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	lsl	w4, w21, #3
	add	x0, sp, #12
	mov	x1, #0
	mov	x2, x20
	mov	x3, x19
	bl	_AES_wrap_key
	mov	x19, x0
	add	x0, sp, #12
	mov	w1, #4
	bl	_OPENSSL_cleanse
	cmp	w19, #1
	csetm	w0, lt
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
