	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlp_copyiv
_xlp_copyiv:                            ## @xlp_copyiv
	.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	(%rdx), %rax
	movq	_CRYPTO_ARC4@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.1:
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	_CRYPTO_AES_CBC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	_XLP_SEC_AES_IV_LENGTH@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_XLP_SEC_DES_IV_LENGTH@GOTPCREL(%rip), %rax
LBB0_4:
	movq	16(%r14), %r12
	movl	(%rax), %r15d
	movl	8(%rbx), %eax
	movq	_CRD_F_ENCRYPT@GOTPCREL(%rip), %rdx
	movq	_CRD_F_IV_EXPLICIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, (%rdx)
	je	LBB0_10
## %bb.5:
	testl	%eax, %ecx
	je	LBB0_7
## %bb.6:
	leaq	16(%rbx), %rax
	jmp	LBB0_8
LBB0_10:
	testl	%eax, %ecx
	je	LBB0_12
## %bb.11:
	movl	16(%rbx), %edi
	movl	(%r14), %esi
	movl	%r15d, %edx
	callq	_bcopy
	jmp	LBB0_13
LBB0_7:
	movq	8(%r14), %rax
LBB0_8:
	movl	(%rax), %edi
	movl	(%r14), %esi
	movl	%r15d, %edx
	callq	_bcopy
	movq	_CRD_F_IV_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	jne	LBB0_13
## %bb.9:
	movl	(%r12), %esi
	movl	4(%r12), %edi
	movl	12(%rbx), %edx
	movl	(%r14), %r8d
	movl	%r15d, %ecx
	callq	_crypto_copyback
	jmp	LBB0_13
LBB0_12:
	movl	(%r12), %esi
	movl	4(%r12), %edi
	movl	12(%rbx), %edx
	movl	(%r14), %r8d
	movl	%r15d, %ecx
	callq	_crypto_copydata
LBB0_13:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CRYPTO_ARC4,8,3                ## @CRYPTO_ARC4
	.comm	_CRYPTO_AES_CBC,8,3             ## @CRYPTO_AES_CBC
	.comm	_XLP_SEC_AES_IV_LENGTH,4,2      ## @XLP_SEC_AES_IV_LENGTH
	.comm	_XLP_SEC_DES_IV_LENGTH,4,2      ## @XLP_SEC_DES_IV_LENGTH
	.comm	_CRD_F_ENCRYPT,4,2              ## @CRD_F_ENCRYPT
	.comm	_CRD_F_IV_EXPLICIT,4,2          ## @CRD_F_IV_EXPLICIT
	.comm	_CRD_F_IV_PRESENT,4,2           ## @CRD_F_IV_PRESENT
	.no_dead_strip	_xlp_copyiv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlp_copyiv
_xlp_copyiv:                            ; @xlp_copyiv
	.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
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _CRYPTO_ARC4@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CRYPTO_ARC4@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.1:
	mov	x21, x2
	mov	x19, x1
Lloh3:
	adrp	x9, _CRYPTO_AES_CBC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CRYPTO_AES_CBC@GOTPAGEOFF]
	ldr	x22, [x1, #16]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _XLP_SEC_AES_IV_LENGTH@GOTPAGE
Lloh7:
	ldr	x10, [x10, _XLP_SEC_AES_IV_LENGTH@GOTPAGEOFF]
Lloh8:
	adrp	x11, _XLP_SEC_DES_IV_LENGTH@GOTPAGE
Lloh9:
	ldr	x11, [x11, _XLP_SEC_DES_IV_LENGTH@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w20, [x8]
	ldr	w9, [x2, #8]
Lloh10:
	adrp	x8, _CRD_F_ENCRYPT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CRD_F_ENCRYPT@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x8]
Lloh13:
	adrp	x8, _CRD_F_IV_EXPLICIT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CRD_F_IV_EXPLICIT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	and	w8, w8, w9
	tst	w10, w9
	b.eq	LBB0_4
; %bb.2:
	cbz	w8, LBB0_6
; %bb.3:
	add	x8, x21, #16
	b	LBB0_7
LBB0_4:
	cbz	w8, LBB0_9
; %bb.5:
	ldr	w0, [x21, #16]
	ldr	w1, [x19]
	mov	x2, x20
	bl	_bcopy
	b	LBB0_10
LBB0_6:
	ldr	x8, [x19, #8]
LBB0_7:
	ldr	w0, [x8]
	ldr	w1, [x19]
	mov	x2, x20
	bl	_bcopy
	ldr	w8, [x21, #8]
Lloh16:
	adrp	x9, _CRD_F_IV_PRESENT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CRD_F_IV_PRESENT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.8:
	ldp	w1, w0, [x22]
	ldr	w2, [x21, #12]
	ldr	w4, [x19]
	mov	x3, x20
	bl	_crypto_copyback
	b	LBB0_10
LBB0_9:
	ldp	w1, w0, [x22]
	ldr	w2, [x21, #12]
	ldr	w4, [x19]
	mov	x3, x20
	bl	_crypto_copydata
LBB0_10:
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_CRYPTO_ARC4,8,3                ; @CRYPTO_ARC4
	.comm	_CRYPTO_AES_CBC,8,3             ; @CRYPTO_AES_CBC
	.comm	_XLP_SEC_AES_IV_LENGTH,4,2      ; @XLP_SEC_AES_IV_LENGTH
	.comm	_XLP_SEC_DES_IV_LENGTH,4,2      ; @XLP_SEC_DES_IV_LENGTH
	.comm	_CRD_F_ENCRYPT,4,2              ; @CRD_F_ENCRYPT
	.comm	_CRD_F_IV_EXPLICIT,4,2          ; @CRD_F_IV_EXPLICIT
	.comm	_CRD_F_IV_PRESENT,4,2           ; @CRD_F_IV_PRESENT
	.no_dead_strip	_xlp_copyiv
.subsections_via_symbols
