	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_random_merge_end_query         ## -- Begin function random_merge_end_query
	.p2align	4, 0x90
_random_merge_end_query:                ## @random_merge_end_query
	.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
	movl	%r9d, %r14d
	movq	%r8, %r12
	xorl	%r13d, %r13d
	cmpl	$2, %r9d
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	jl	LBB0_1
## %bb.2:
	movl	%r14d, %r8d
	decq	%r8
	cmpl	$2, %r14d
	jne	LBB0_4
## %bb.3:
	xorl	%r10d, %r10d
	movl	$1, %eax
LBB0_10:
	testb	$1, %r8b
	je	LBB0_12
## %bb.11:
	movslq	%r10d, %r10
	movq	%r10, %rcx
	shlq	$4, %rcx
	movl	(%r12,%rcx), %ecx
	movq	%rax, %rdx
	shlq	$4, %rdx
	cmpl	(%r12,%rdx), %ecx
	cmovll	%eax, %r10d
LBB0_12:
	movslq	%r10d, %rax
	jmp	LBB0_13
LBB0_1:
	xorl	%eax, %eax
LBB0_13:
	shlq	$4, %rax
	movl	(%r12,%rax), %r15d
	cmpl	$65, %r15d
	jl	LBB0_46
## %bb.14:
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	_R@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	leal	3(%r15), %edx
	andl	$-4, %edx
	xorl	%esi, %esi
	callq	_memset
	testl	%r14d, %r14d
	jle	LBB0_20
## %bb.15:
	movq	(%r13), %rax
	movl	%r14d, %r8d
	xorl	%edx, %edx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%rdx
	cmpq	%r8, %rdx
	je	LBB0_20
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
	movq	%rdx, %rdi
	shlq	$4, %rdi
	cmpl	$0, (%r12,%rdi)
	jle	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	leaq	(%r12,%rdi), %rsi
	movq	8(%r12,%rdi), %rdi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdi,%rbx), %ecx
	xorl	%ecx, (%rax,%rbx)
	addq	$4, %rbx
	cmpl	(%rsi), %ebx
	jl	LBB0_18
	jmp	LBB0_19
LBB0_20:
	leaq	-44(%rbp), %r14
	movq	%r14, %rdi
	callq	_EVP_CIPHER_CTX_init
	movq	%r13, %rbx
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_EVP_aes_256_cbc
	movq	(%rbx), %rcx
	leaq	32(%rcx), %r8
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_EVP_EncryptInit_ex
	movq	_A@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%rbx), %rcx
	addq	$64, %rcx
	addl	$-64, %r15d
	leaq	-52(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r15d, %r8d
	callq	_EVP_EncryptUpdate
	testl	%eax, %eax
	je	LBB0_21
## %bb.22:
	movslq	-52(%rbp), %rsi
	shlq	$2, %rsi
	movq	_A@GOTPCREL(%rip), %r13
	addq	(%r13), %rsi
	leaq	-44(%rbp), %rdi
	leaq	-48(%rbp), %rdx
	callq	_EVP_EncryptFinal_ex
	testl	%eax, %eax
	je	LBB0_23
## %bb.24:
	leaq	-44(%rbp), %rdi
	callq	_EVP_CIPHER_CTX_cleanup
	movl	-48(%rbp), %ecx
	addl	-52(%rbp), %ecx
	movl	%ecx, -48(%rbp)
	movl	(%r12), %eax
	cmpl	%eax, %ecx
	cmovgel	%eax, %ecx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %eax
	cmpl	%eax, %ecx
	cmovgel	%eax, %ecx
	movq	(%r13), %rdx
	testl	%ecx, %ecx
	jle	LBB0_43
## %bb.25:
	movq	8(%r12), %r11
	leal	-1(%rcx), %r10d
	xorl	%edi, %edi
	cmpl	$28, %r10d
	movq	_R@GOTPCREL(%rip), %r15
	jb	LBB0_26
## %bb.27:
	movl	%r10d, %esi
	andl	$-4, %esi
	leaq	(%r11,%rsi), %rbx
	addq	$4, %rbx
	cmpq	%rbx, %rdx
	jae	LBB0_29
## %bb.28:
	addq	%rdx, %rsi
	addq	$4, %rsi
	cmpq	%rsi, %r11
	jae	LBB0_29
LBB0_26:
	movq	%rdx, %r9
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
LBB0_37:
	movl	%edi, %edi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_38:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r11,%rbx), %eax
	xorl	%eax, (%r9,%rbx)
	addq	$4, %rbx
	leal	(%rdi,%rbx), %eax
	cmpl	%ecx, %eax
	jl	LBB0_38
LBB0_39:
	cmpq	$0, 8(%r14)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_45
## %bb.40:
	movl	%ecx, %r8d
	decq	%r8
	xorl	%eax, %eax
	leaq	_random_merge_end_query.hcyf(%rip), %r9
	.p2align	4, 0x90
LBB0_41:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rax,4), %edx
	shrl	$4, %edx
	andl	$15, %edx
	movzbl	(%rdx,%r9), %edx
	movq	(%r15), %rbx
	movb	%dl, (%rbx,%rax,2)
	movq	(%r13), %rdx
	movl	(%rdx,%rax,4), %edx
	andl	$15, %edx
	movzbl	(%rdx,%r9), %edx
	movq	(%r15), %rbx
	movb	%dl, 1(%rbx,%rax,2)
	cmpq	%rax, %r8
	je	LBB0_44
## %bb.42:                              ##   in Loop: Header=BB0_41 Depth=1
	movq	(%r13), %rdx
	incq	%rax
	jmp	LBB0_41
LBB0_4:
	movq	%r8, %r9
	andq	$-2, %r9
	leaq	32(%r12), %rbx
	xorl	%r10d, %r10d
	movl	$1, %eax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$2, %rax
	addq	$32, %rbx
	cmpq	%r9, %rdx
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r10d, %rdx
	shlq	$4, %rdx
	movl	(%r12,%rdx), %edx
	movl	%eax, %r15d
	cmpl	-16(%rbx), %edx
	jl	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r10d, %r15d
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r15d, %rdx
	shlq	$4, %rdx
	movl	(%r12,%rdx), %r11d
	leaq	1(%rax), %rdx
	movl	%edx, %r10d
	cmpl	(%rbx), %r11d
	jl	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, %r10d
	jmp	LBB0_9
LBB0_21:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_vkprintf
	leaq	-44(%rbp), %rdi
	callq	_EVP_CIPHER_CTX_cleanup
	jmp	LBB0_46
LBB0_23:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_vkprintf
	leaq	-44(%rbp), %rdi
	callq	_EVP_CIPHER_CTX_cleanup
	xorl	%r13d, %r13d
	jmp	LBB0_46
LBB0_43:
	cmpq	$0, 8(%r14)
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	_R@GOTPCREL(%rip), %r15
	je	LBB0_45
LBB0_44:
	addl	%ecx, %ecx
	movl	4(%r14), %eax
	cmpl	%eax, %ecx
	cmovgel	%eax, %ecx
	movq	(%r15), %rdx
LBB0_45:
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_return_one_key
	movl	%eax, %r13d
LBB0_46:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	shrl	$2, %r10d
	incl	%r10d
	movl	%r10d, %r8d
	andl	$-8, %r8d
	leaq	-8(%r8), %rsi
	movq	%rsi, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rsi, %rsi
	je	LBB0_30
## %bb.31:
	movq	%r9, %rdi
	andq	$-2, %rdi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movups	(%r11,%rbx,4), %xmm0
	movups	16(%r11,%rbx,4), %xmm1
	movups	(%rdx,%rbx,4), %xmm2
	xorps	%xmm0, %xmm2
	movups	16(%rdx,%rbx,4), %xmm0
	xorps	%xmm1, %xmm0
	movups	32(%rdx,%rbx,4), %xmm1
	movups	48(%rdx,%rbx,4), %xmm3
	movups	%xmm2, (%rdx,%rbx,4)
	movups	%xmm0, 16(%rdx,%rbx,4)
	movups	32(%r11,%rbx,4), %xmm0
	xorps	%xmm1, %xmm0
	movups	48(%r11,%rbx,4), %xmm1
	xorps	%xmm3, %xmm1
	movups	%xmm0, 32(%rdx,%rbx,4)
	movups	%xmm1, 48(%rdx,%rbx,4)
	addq	$16, %rbx
	addq	$-2, %rdi
	jne	LBB0_32
	jmp	LBB0_33
LBB0_30:
	xorl	%ebx, %ebx
LBB0_33:
	testb	$1, %r9b
	je	LBB0_35
## %bb.34:
	movups	(%r11,%rbx,4), %xmm0
	movups	16(%r11,%rbx,4), %xmm1
	movups	(%rdx,%rbx,4), %xmm2
	xorps	%xmm0, %xmm2
	movups	16(%rdx,%rbx,4), %xmm0
	xorps	%xmm1, %xmm0
	movups	%xmm2, (%rdx,%rbx,4)
	movups	%xmm0, 16(%rdx,%rbx,4)
LBB0_35:
	cmpq	%r10, %r8
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_39
## %bb.36:
	leaq	(%rdx,%r8,4), %r9
	leaq	(%r11,%r8,4), %r11
	leal	(,%r8,4), %edi
	jmp	LBB0_37
	.cfi_endproc
                                        ## -- End function
	.comm	_R,8,3                          ## @R
	.comm	_A,8,3                          ## @A
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EVP_EncryptUpdate fail.\n"

L_.str.1:                               ## @.str.1
	.asciz	"EVP_EncryptFinal_ex fail.\n"

	.section	__TEXT,__const
	.p2align	4                               ## @random_merge_end_query.hcyf
_random_merge_end_query.hcyf:
	.ascii	"0123456789abcdef"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_random_merge_end_query         ; -- Begin function random_merge_end_query
	.p2align	2
_random_merge_end_query:                ; @random_merge_end_query
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x5
	mov	x22, x4
	mov	x21, x3
	mov	x19, x1
	mov	x20, x0
	cmp	w5, #2
	b.lt	LBB0_4
; %bb.1:
	mov	w8, #0
	add	x9, x22, #16
	mov	w10, #1
	mov	w11, w23
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sbfiz	x12, x8, #4, #32
	ldr	w12, [x22, x12]
	ldr	w13, [x9], #16
	cmp	w12, w13
	csel	w8, w10, w8, lt
	add	x10, x10, #1
	cmp	x11, x10
	b.ne	LBB0_2
; %bb.3:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	sxtw	x8, w8
	b	LBB0_5
LBB0_4:
	mov	x8, #0
LBB0_5:
	lsl	x8, x8, #4
	ldr	w25, [x22, x8]
	cmp	w25, #65
	b.ge	LBB0_7
; %bb.6:
	mov	w0, #0
	b	LBB0_34
LBB0_7:
Lloh0:
	adrp	x24, _R@GOTPAGE
Lloh1:
	ldr	x24, [x24, _R@GOTPAGEOFF]
	ldr	x0, [x24]
	add	w8, w25, #3
	and	w2, w8, #0xfffffffc
	mov	w1, #0
	bl	_memset
	cmp	w23, #1
	b.lt	LBB0_13
; %bb.8:
	mov	x8, #0
	ldr	x9, [x24]
	mov	w10, w23
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x8, x8, #1
	cmp	x8, x10
	b.eq	LBB0_13
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	add	x11, x22, x8, lsl #4
	ldr	w12, [x11]
	cmp	w12, #1
	b.lt	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x12, #0
	ldr	x13, [x11, #8]
LBB0_12:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w14, [x13, x12]
	ldr	w15, [x9, x12]
	eor	w14, w15, w14
	str	w14, [x9, x12]
	ldr	w14, [x11]
	add	x12, x12, #4
	cmp	w12, w14
	b.lt	LBB0_12
	b	LBB0_9
LBB0_13:
	add	x0, sp, #12
	bl	_EVP_CIPHER_CTX_init
	bl	_EVP_aes_256_cbc
	mov	x1, x0
	ldr	x3, [x24]
	add	x4, x3, #32
	add	x0, sp, #12
	mov	x2, #0
	bl	_EVP_EncryptInit_ex
Lloh2:
	adrp	x23, _A@GOTPAGE
Lloh3:
	ldr	x23, [x23, _A@GOTPAGEOFF]
	ldr	x1, [x23]
	ldr	x8, [x24]
	add	x3, x8, #64
	sub	w4, w25, #64
	add	x0, sp, #12
	add	x2, sp, #8
	bl	_EVP_EncryptUpdate
	cbz	w0, LBB0_21
; %bb.14:
	ldr	x8, [x23]
	ldrsw	x9, [sp, #8]
	add	x1, x8, x9, lsl #2
	add	x0, sp, #12
	add	x2, sp, #4
	bl	_EVP_EncryptFinal_ex
	cbz	w0, LBB0_22
; %bb.15:
	add	x0, sp, #12
	bl	_EVP_CIPHER_CTX_cleanup
	ldp	w9, w8, [sp, #4]
	ldr	w10, [x22]
	add	w8, w9, w8
	cmp	w8, w10
	str	w8, [sp, #4]
	csel	w8, w8, w10, lt
	ldr	w9, [x21]
	cmp	w8, w9
	csel	w3, w8, w9, lt
	ldr	x2, [x23]
	subs	w8, w3, #1
	b.lt	LBB0_30
; %bb.16:
	ldr	x14, [x22, #8]
	cmp	w8, #60
	b.lo	LBB0_24
; %bb.17:
	lsr	w8, w8, #2
	add	w11, w8, #1
	lsl	x8, x11, #2
	add	x9, x2, x8
	add	x8, x14, x8
	cmp	x2, x8
	ccmp	x14, x9, #2, lo
	b.lo	LBB0_24
; %bb.18:
	and	x12, x11, #0x7ffffff0
	lsl	x9, x12, #2
	add	x8, x2, x9
	add	x10, x14, x9
	lsl	w9, w12, #2
	add	x13, x2, #32
	add	x14, x14, #32
	mov	x15, x12
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x14, #-32]
	ldp	q2, q3, [x14], #64
	ldp	q4, q5, [x13, #-32]
	ldp	q6, q7, [x13]
	eor.16b	v0, v4, v0
	eor.16b	v1, v5, v1
	eor.16b	v2, v6, v2
	eor.16b	v3, v7, v3
	stp	q0, q1, [x13, #-32]
	stp	q2, q3, [x13], #64
	subs	x15, x15, #16
	b.ne	LBB0_19
; %bb.20:
	cmp	x12, x11
	b.ne	LBB0_25
	b	LBB0_26
LBB0_21:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_23
LBB0_22:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_23:
	mov	w0, #1
	bl	_vkprintf
	add	x0, sp, #12
	bl	_EVP_CIPHER_CTX_cleanup
	mov	w0, #0
	b	LBB0_34
LBB0_24:
	mov	w9, #0
	mov	x8, x2
	mov	x10, x14
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10], #4
	ldr	w12, [x8]
	eor	w11, w12, w11
	str	w11, [x8], #4
	add	w9, w9, #4
	cmp	w9, w3
	b.lt	LBB0_25
LBB0_26:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_32
; %bb.27:
	mov	x8, #0
	mov	x9, #0
	sub	x10, x3, #1
Lloh8:
	adrp	x11, _random_merge_end_query.hcyf@PAGE
Lloh9:
	add	x11, x11, _random_merge_end_query.hcyf@PAGEOFF
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	lsl	x12, x9, #2
	ldr	w13, [x2, x12]
	ubfx	x13, x13, #4, #4
	ldrb	w13, [x11, x13]
	ldr	x14, [x24]
	strb	w13, [x14, x8]
	ldr	x13, [x23]
	ldr	w12, [x13, x12]
	and	x12, x12, #0xf
	ldrb	w12, [x11, x12]
	ldr	x13, [x24]
	add	x13, x13, x8
	strb	w12, [x13, #1]
	cmp	x10, x9
	b.eq	LBB0_31
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	ldr	x2, [x23]
	add	x8, x8, #2
	add	x9, x9, #1
	b	LBB0_28
LBB0_30:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_32
LBB0_31:
	lsl	w8, w3, #1
	ldr	w9, [x21, #4]
	cmp	w8, w9
	csel	w3, w8, w9, lt
	ldr	x2, [x24]
	mov	x0, x20
	mov	x1, x19
	b	LBB0_33
LBB0_32:
	mov	x0, x20
	mov	x1, x19
                                        ; kill: def $w3 killed $w3 killed $x3
LBB0_33:
	bl	_return_one_key
LBB0_34:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_R,8,3                          ; @R
	.comm	_A,8,3                          ; @A
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EVP_EncryptUpdate fail.\n"

l_.str.1:                               ; @.str.1
	.asciz	"EVP_EncryptFinal_ex fail.\n"

	.section	__TEXT,__const
_random_merge_end_query.hcyf:           ; @random_merge_end_query.hcyf
	.ascii	"0123456789abcdef"

.subsections_via_symbols
