	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function block_matching_multi
_block_matching_multi:                  ## @block_matching_multi
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -64(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r15d
	movl	%ecx, %r8d
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movslq	16(%rbp), %rdx
	movq	32(%rdi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movl	(%rax,%rdx,4), %r14d
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movl	(%rcx,%rdx,4), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	24(%rdi), %ebx
	movl	%ebx, %eax
	cltd
	movl	16(%rdi), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movl	20(%rdi), %r13d
	idivl	%r13d
	subl	%edx, %ebx
	movl	24(%rbp), %eax
	cltq
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	movl	%ebx, %esi
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edx
	xorl	%ecx, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	%r15d, %r9d
	callq	_search_boundary
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	subl	-52(%rbp), %r14d                ## 4-byte Folded Reload
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	%r15d, %r9d
	callq	_search_boundary
	movl	%eax, %r14d
	xorl	%edi, %edi
	movl	%ebx, %esi
	movl	%r13d, %edx
	movl	$1, %ecx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	%r15d, %r9d
	movq	%r15, %rbx
	callq	_search_boundary
	movl	%eax, %r15d
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	subl	-52(%rbp), %edi                 ## 4-byte Folded Reload
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movl	$1, %ecx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	%ebx, %r9d
	callq	_search_boundary
	movl	-64(%rbp), %r9d                 ## 4-byte Reload
	movq	-80(%rbp), %r11                 ## 8-byte Reload
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	movq	%rbx, %r10
	cmpl	%eax, %r15d
	jle	LBB0_1
LBB0_8:
	cmpl	$1, %r9d
	jne	LBB0_10
## %bb.9:
	leaq	(%r11,%r11,2), %rax
	movq	16(%r8,%rax,8), %rcx
	movq	$0, 8(%rcx)
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%edx, (%rcx)
	movl	%r10d, 4(%rcx)
	movl	$1, (%r8,%rax,8)
LBB0_10:
	leaq	(%r11,%r11,2), %rax
	movq	8(%r8,%rax,8), %r8
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	24(%rdi), %ecx
	movl	28(%rdi), %eax
	subq	$8, %rsp
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %r9d
	pushq	%r11
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	pushq	%r10
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	%rax
	callq	_do_block_matching_multi
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	(%r11,%r11,2), %rcx
	leaq	(%r8,%rcx,8), %rcx
	addq	$8, %rcx
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	%r13d, %r15d
	cmpl	%eax, %r15d
	jg	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	cmpl	%r14d, %edi
	jg	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r9d, %r9d
	setg	%sil
	cmpl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	sete	%dl
	andb	%sil, %dl
	movl	%edi, %esi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	addl	%r13d, %esi
	cmpl	%r14d, %esi
	jg	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%esi, %r10d
	sete	%bl
	testb	%bl, %dl
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	(%rcx), %rdi
	movslq	%r12d, %rbx
	incl	%r12d
	movl	%r15d, (%rdi,%rbx,8)
	movl	%esi, 4(%rdi,%rbx,8)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_block_matching_multi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function block_matching_multi
_block_matching_multi:                  ; @block_matching_multi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
                                        ; kill: def $w7 killed $w7 def $x7
                                        ; kill: def $w6 killed $w6 def $x6
	mov	x26, x5
	mov	x23, x4
	mov	x19, x3
	str	w2, [sp, #60]                   ; 4-byte Folded Spill
	mov	x25, x0
	ldr	x8, [x0, #32]
	stp	x8, x1, [sp, #24]               ; 16-byte Folded Spill
	stp	x6, x7, [sp, #40]               ; 16-byte Folded Spill
	sbfiz	x8, x6, #2, #32
	ldp	x9, x10, [x0]
	ldr	w20, [x9, x8]
	ldr	w8, [x10, x8]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	sxtw	x8, w7
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	ldp	w22, w27, [x0, #16]
	ldr	w8, [x0, #24]
	sdiv	w8, w8, w27
	mul	w21, w8, w27
	mov	w0, #0
	mov	x1, x21
	mov	x2, x27
	mov	w3, #0
	mov	x4, x19
	mov	x5, x23
	bl	_search_boundary
	mov	x28, x0
	sub	w0, w20, w22
	mov	x1, x21
	mov	x2, x27
	mov	w3, #0
	mov	x4, x19
	mov	x5, x23
	bl	_search_boundary
	mov	x20, x0
	mov	w0, #0
	mov	x1, x21
	mov	x2, x27
	mov	w3, #1
	mov	x4, x19
	mov	x5, x23
	bl	_search_boundary
	mov	x24, x0
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	sub	w0, w8, w22
	mov	x1, x21
	mov	x2, x27
	mov	w3, #1
	mov	x4, x19
	mov	x5, x23
	bl	_search_boundary
	ldp	x13, x12, [sp, #16]             ; 16-byte Folded Reload
	mov	w5, #0
	cmp	w24, w0
	b.le	LBB0_4
LBB0_1:
	cmp	w26, #1
	b.ne	LBB0_3
; %bb.2:
	mov	w8, #24
	madd	x8, x13, x8, x12
	ldr	x9, [x8, #16]
	str	xzr, [x9, #8]
	stp	w19, w23, [x9]
	mov	w9, #1
	str	w9, [x8]
LBB0_3:
	mov	w8, #24
	madd	x8, x13, x8, x12
	ldr	x4, [x8, #8]
	ldp	w3, w6, [x25, #24]
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	ldp	x1, x8, [sp, #32]               ; 16-byte Folded Reload
	stp	w8, w9, [sp, #4]
	str	w23, [sp]
	mov	x0, x25
	ldr	w2, [sp, #60]                   ; 4-byte Folded Reload
	mov	x7, x19
	bl	_do_block_matching_multi
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_4:
	mov	w5, #0
	mov	w8, #24
	madd	x8, x13, x8, x12
	add	x8, x8, #8
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w24, w24, w27
	cmp	w24, w0
	b.gt	LBB0_1
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	cmp	w28, w20
	b.gt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w26, #0
	ccmp	w24, w19, #0, gt
	cset	w9, eq
	mov	x10, x28
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	w10, w10, w27
	cmp	w10, w20
	b.gt	LBB0_5
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w23, w10
	cset	w11, eq
	and	w11, w9, w11
	tbnz	w11, #0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x11, [x8]
	add	x11, x11, w5, sxtw #3
	add	w5, w5, #1
	stp	w24, w10, [x11]
	b	LBB0_8
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_block_matching_multi
.subsections_via_symbols
