	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_CTB_to_hv
_copy_CTB_to_hv:                        ## @copy_CTB_to_hv
	.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	%ecx, %r11d
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movslq	24(%rbp), %rbx
	movq	16(%rdi), %rax
	movl	4(%rax), %r14d
	movq	8(%rax), %rcx
	movb	(%rcx,%rbx,4), %cl
	sarl	%cl, %r14d
	movl	%r9d, %r12d
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	40(%rbp), %edi
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movl	16(%rax), %edx
	movq	24(%rax), %rcx
	movb	(%rcx,%rbx,4), %cl
	movq	%rbx, %r8
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	sarl	%cl, %edx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	(%rax), %ebx
	leal	(%rdi,%rdi), %eax
	imull	%r14d, %eax
	addl	%r11d, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	movslq	%eax, %rdi
	shll	%cl, %r12d
	movq	8(%r15), %rax
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	addq	(%rax,%r8,8), %rdi
	movl	32(%rbp), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	16(%rbp), %r13d
	movq	%r13, -112(%rbp)                ## 8-byte Spill
	movl	%r12d, %edx
	callq	_memcpy
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	addl	%eax, %eax
	incl	%eax
	imull	%r14d, %eax
	addl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%ebx, %ecx
	shll	%cl, %eax
	movq	8(%r15), %rcx
	movslq	%eax, %rdi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	addq	(%rcx,%r14,8), %rdi
	leal	-1(%r13), %eax
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	imull	%r13d, %eax
	cltq
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	leaq	(%r15,%rax,4), %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addl	%eax, %eax
	imull	-48(%rbp), %eax                 ## 4-byte Folded Reload
	addl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%ebx, %ecx
	shll	%cl, %eax
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movq	(%r12), %rcx
	movslq	%eax, %rdi
	addq	(%rcx,%r14,8), %rdi
	movl	$1, %r14d
	movl	%ebx, %ecx
	shll	%cl, %r14d
	movq	%r15, %rsi
	movl	%ebx, %edx
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	movl	%r13d, %r9d
	callq	_copy_vert
	movq	(%r12), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rcx,%rcx), %edx
	incl	%edx
	imull	-48(%rbp), %edx                 ## 4-byte Folded Reload
	addl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	movl	%ebx, %ecx
	shll	%cl, %edx
	movslq	%edx, %rdi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	decl	%edx
	shll	%cl, %edx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	addq	(%rax,%rcx,8), %rdi
	movslq	%edx, %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	movl	%r13d, %r9d
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_copy_vert                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_copy_CTB_to_hv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_CTB_to_hv
_copy_CTB_to_hv:                        ; @copy_CTB_to_hv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	stp	w6, w4, [sp, #24]               ; 8-byte Folded Spill
	stp	w5, w2, [sp, #16]               ; 8-byte Folded Spill
	mov	x22, x3
	mov	x24, x0
	ldp	x9, x8, [x0, #8]
	ldp	w26, w10, [x8]
	ldr	x11, [x8, #8]
	sbfiz	x12, x7, #2, #32
	ldr	w11, [x11, x12]
	asr	w28, w10, w11
	ldr	x10, [x8, #24]
	ldr	w10, [x10, x12]
	ldr	w25, [x29, #16]
	str	w25, [sp, #8]                   ; 4-byte Folded Spill
	ldr	w23, [x29, #20]
	ldr	w8, [x8, #16]
	sbfiz	x19, x7, #3, #32
	ldr	x9, [x9, x19]
	asr	w8, w8, w10
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	lsl	w8, w23, #1
	madd	w8, w28, w8, w3
	lsl	w8, w8, w26
	add	x0, x9, w8, sxtw
	lsl	w27, w5, w26
	mov	x20, x1
	mov	x2, x27
	bl	_memcpy
	ldr	x8, [x24, #8]
	ldr	x8, [x8, x19]
	mov	w21, #1
	mov	w9, #1
	bfi	w9, w23, #1, #31
	madd	w9, w28, w9, w22
	lsl	w9, w9, w26
	add	x0, x8, w9, sxtw
	ldp	w28, w23, [sp, #20]             ; 8-byte Folded Reload
	sub	w8, w23, #1
	mul	w8, w8, w28
	add	x1, x20, w8, sxtw #2
	mov	x2, x27
	bl	_memcpy
	ldr	x8, [x24]
	ldr	x8, [x8, x19]
	lsl	w9, w25, #1
	ldr	w27, [sp, #28]                  ; 4-byte Folded Reload
	ldr	w22, [sp, #12]                  ; 4-byte Folded Reload
	madd	w9, w22, w9, w27
	lsl	w9, w9, w26
	add	x0, x8, w9, sxtw
	lsl	w25, w21, w26
	mov	x1, x20
	mov	x2, x26
	mov	x3, x23
	mov	x4, x25
	mov	x5, x28
	bl	_copy_vert
	ldr	x8, [x24]
	ldr	x8, [x8, x19]
	ldr	w9, [sp, #8]                    ; 4-byte Folded Reload
	bfi	w21, w9, #1, #31
	madd	w9, w22, w21, w27
	lsl	w9, w9, w26
	add	x0, x8, w9, sxtw
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	sub	w8, w8, #1
	lsl	w8, w8, w26
	add	x1, x20, w8, sxtw #2
	mov	x2, x26
	mov	x3, x23
	mov	x4, x25
	mov	x5, x28
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_copy_vert
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_copy_CTB_to_hv
.subsections_via_symbols
