	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function des_ede3_wrap_cipher
_des_ede3_wrap_cipher:                  ## @des_ede3_wrap_cipher
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	$-1, %eax
	testb	$7, %bl
	jne	LBB0_4
## %bb.1:
	movq	_EVP_MAXCHUNK@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	jbe	LBB0_4
## %bb.2:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movq	%rbx, %rdx
	callq	_is_partially_overlapping
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_EVP_F_DES_EDE3_WRAP_CIPHER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EVP_R_PARTIALLY_OVERLAPPING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EVPerr
	xorl	%eax, %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r12, %rdi
	callq	_EVP_CIPHER_CTX_encrypting
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_des_ede3_wrap                  ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_des_ede3_unwrap                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_MAXCHUNK,8,3               ## @EVP_MAXCHUNK
	.comm	_EVP_F_DES_EDE3_WRAP_CIPHER,4,2 ## @EVP_F_DES_EDE3_WRAP_CIPHER
	.comm	_EVP_R_PARTIALLY_OVERLAPPING,4,2 ## @EVP_R_PARTIALLY_OVERLAPPING
	.no_dead_strip	_des_ede3_wrap_cipher
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function des_ede3_wrap_cipher
_des_ede3_wrap_cipher:                  ; @des_ede3_wrap_cipher
	.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	x22, x0
	mov	w0, #-1
	tst	x3, #0x7
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x3
Lloh0:
	adrp	x8, _EVP_MAXCHUNK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVP_MAXCHUNK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x3
	b.ls	LBB0_4
; %bb.2:
	mov	x20, x2
	mov	x21, x1
	mov	x0, x1
	mov	x1, x2
	mov	x2, x19
	bl	_is_partially_overlapping
	cbz	x0, LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _EVP_F_DES_EDE3_WRAP_CIPHER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVP_F_DES_EDE3_WRAP_CIPHER@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _EVP_R_PARTIALLY_OVERLAPPING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EVP_R_PARTIALLY_OVERLAPPING@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_EVPerr
	mov	w0, #0
LBB0_4:
	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
LBB0_5:
	mov	x0, x22
	bl	_EVP_CIPHER_CTX_encrypting
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	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
	b	_des_ede3_wrap
LBB0_7:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	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
	b	_des_ede3_unwrap
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_MAXCHUNK,8,3               ; @EVP_MAXCHUNK
	.comm	_EVP_F_DES_EDE3_WRAP_CIPHER,4,2 ; @EVP_F_DES_EDE3_WRAP_CIPHER
	.comm	_EVP_R_PARTIALLY_OVERLAPPING,4,2 ; @EVP_R_PARTIALLY_OVERLAPPING
	.no_dead_strip	_des_ede3_wrap_cipher
.subsections_via_symbols
