	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aes_wrap_init
_aes_wrap_init:                         ## @aes_wrap_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movl	%r9d, (%rdi)
	cmpq	$0, 16(%rdi)
	movq	_CRYPTO_128_wrap_pad@GOTPCREL(%rip), %rax
	cmoveq	_CRYPTO_128_wrap@GOTPCREL(%rip), %rax
	movq	_CRYPTO_128_unwrap_pad@GOTPCREL(%rip), %rdi
	cmoveq	_CRYPTO_128_unwrap@GOTPCREL(%rip), %rdi
	testl	%r9d, %r9d
	movq	_AES_encrypt@GOTPCREL(%rip), %rbx
	cmoveq	_AES_decrypt@GOTPCREL(%rip), %rbx
	movq	%rdx, %r15
	movq	%rsi, %r12
	movl	(%rbx), %edx
	cmovneq	%rax, %rdi
	movl	%edx, 24(%r13)
	movl	(%rdi), %eax
	movl	%eax, 4(%r13)
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	movq	%rcx, %rsi
	movq	%r8, %rdx
	callq	_cipher_generic_initiv
	testl	%eax, %eax
	je	LBB0_7
LBB0_2:
	movl	$1, %r14d
	testq	%r12, %r12
	je	LBB0_9
## %bb.3:
	cmpq	%r15, 8(%r13)
	jne	LBB0_6
## %bb.4:
	shlq	$3, %r15
	cmpl	$0, (%r13)
	je	LBB0_8
## %bb.5:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_AES_set_encrypt_key
	jmp	LBB0_9
LBB0_6:
	movq	_ERR_LIB_PROV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PROV_R_INVALID_KEY_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ERR_raise
LBB0_7:
	xorl	%r14d, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_AES_set_decrypt_key
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_AES_encrypt,8,3                ## @AES_encrypt
	.comm	_AES_decrypt,8,3                ## @AES_decrypt
	.comm	_CRYPTO_128_wrap_pad,4,2        ## @CRYPTO_128_wrap_pad
	.comm	_CRYPTO_128_unwrap_pad,4,2      ## @CRYPTO_128_unwrap_pad
	.comm	_CRYPTO_128_wrap,4,2            ## @CRYPTO_128_wrap
	.comm	_CRYPTO_128_unwrap,4,2          ## @CRYPTO_128_unwrap
	.comm	_ERR_LIB_PROV,4,2               ## @ERR_LIB_PROV
	.comm	_PROV_R_INVALID_KEY_LENGTH,4,2  ## @PROV_R_INVALID_KEY_LENGTH
	.no_dead_strip	_aes_wrap_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aes_wrap_init
_aes_wrap_init:                         ; @aes_wrap_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	str	w5, [x0]
Lloh0:
	adrp	x8, _AES_encrypt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AES_encrypt@GOTPAGEOFF]
Lloh2:
	adrp	x9, _AES_decrypt@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AES_decrypt@GOTPAGEOFF]
	ldr	x10, [x0, #16]
Lloh4:
	adrp	x11, _CRYPTO_128_wrap@GOTPAGE
Lloh5:
	ldr	x11, [x11, _CRYPTO_128_wrap@GOTPAGEOFF]
Lloh6:
	adrp	x12, _CRYPTO_128_wrap_pad@GOTPAGE
Lloh7:
	ldr	x12, [x12, _CRYPTO_128_wrap_pad@GOTPAGEOFF]
	cmp	x10, #0
	csel	x10, x11, x12, eq
Lloh8:
	adrp	x11, _CRYPTO_128_unwrap@GOTPAGE
Lloh9:
	ldr	x11, [x11, _CRYPTO_128_unwrap@GOTPAGEOFF]
Lloh10:
	adrp	x12, _CRYPTO_128_unwrap_pad@GOTPAGE
Lloh11:
	ldr	x12, [x12, _CRYPTO_128_unwrap_pad@GOTPAGEOFF]
	csel	x11, x11, x12, eq
	cmp	w5, #0
	csel	x8, x9, x8, eq
	ldr	x8, [x8]
	str	w8, [x0, #24]
	csel	x8, x11, x10, eq
	ldr	w8, [x8]
	str	w8, [x0, #4]
	cbz	x3, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x3
	mov	x2, x4
	bl	_cipher_generic_initiv
	cbz	w0, LBB0_9
LBB0_2:
	cbz	x20, LBB0_8
; %bb.3:
	ldr	x8, [x19, #8]
	cmp	x8, x21
	b.ne	LBB0_6
; %bb.4:
	ldr	w8, [x19]
	lsl	x1, x21, #3
	mov	x0, x20
	mov	x2, x19
	cbz	w8, LBB0_7
; %bb.5:
	bl	_AES_set_encrypt_key
	b	LBB0_8
LBB0_6:
Lloh12:
	adrp	x8, _ERR_LIB_PROV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERR_LIB_PROV@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _PROV_R_INVALID_KEY_LENGTH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PROV_R_INVALID_KEY_LENGTH@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_ERR_raise
	mov	w0, #0
	b	LBB0_9
LBB0_7:
	bl	_AES_set_decrypt_key
LBB0_8:
	mov	w0, #1
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AES_encrypt,8,3                ; @AES_encrypt
	.comm	_AES_decrypt,8,3                ; @AES_decrypt
	.comm	_CRYPTO_128_wrap_pad,4,2        ; @CRYPTO_128_wrap_pad
	.comm	_CRYPTO_128_unwrap_pad,4,2      ; @CRYPTO_128_unwrap_pad
	.comm	_CRYPTO_128_wrap,4,2            ; @CRYPTO_128_wrap
	.comm	_CRYPTO_128_unwrap,4,2          ; @CRYPTO_128_unwrap
	.comm	_ERR_LIB_PROV,4,2               ; @ERR_LIB_PROV
	.comm	_PROV_R_INVALID_KEY_LENGTH,4,2  ; @PROV_R_INVALID_KEY_LENGTH
	.no_dead_strip	_aes_wrap_init
.subsections_via_symbols
