	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chr_h_scale
_chr_h_scale:                           ## @chr_h_scale
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	8(%rsi), %rax
	movq	16(%rsi), %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movl	8(%rax), %esi
	movl	12(%rax), %edi
	callq	_AV_CEIL_RSHIFT
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	movq	(%r12), %rax
	movl	8(%rax), %esi
	movl	12(%rax), %edi
	callq	_AV_CEIL_RSHIFT
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_8
## %bb.1:
	movq	%r15, %rdx
	movl	%eax, %r13d
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movq	(%rcx), %rax
	movq	8(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	24(%rcx), %rsi
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	40(%rcx), %rsi
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	(%rax), %rax
	movq	24(%rax), %rsi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r12d
	subl	16(%rcx), %r12d
	movl	%ebx, %r15d
	subl	16(%rax), %r15d
	movl	%ebx, %r14d
	subl	32(%rcx), %r14d
	movq	40(%rax), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	subl	32(%rax), %ebx
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rax
	incl	20(%rax)
	incl	36(%rax)
	incl	%r15d
	incl	%ebx
	incl	%r12d
	incl	%r14d
	movq	-144(%rbp), %rax                ## 8-byte Reload
	decq	%rax
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movq	16(%rdx), %rax
	movslq	%r15d, %rdx
	movslq	%ebx, %rdi
	testq	%rax, %rax
	movq	%rdx, -136(%rbp)                ## 8-byte Spill
	movq	%rdi, -128(%rbp)                ## 8-byte Spill
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rsi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rdi,8), %rdx
	movslq	%r12d, %rcx
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movq	(%rdi,%rcx,8), %r8
	movslq	%r14d, %rcx
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	(%rdi,%rcx,8), %r9
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 8(%rsp)
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rsp)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %ecx
	callq	*%rax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rdx,8), %rsi
	movslq	%r12d, %rax
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movq	(%rcx,%rax,8), %rcx
	movl	%ebx, -84(%rbp)                 ## 4-byte Spill
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movl	12(%r13), %r8d
	movl	4(%r13), %eax
	movl	8(%r13), %r9d
	movl	%eax, (%rsp)
	movq	%rdi, %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	callq	*8(%rax)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rsi
	movslq	%r14d, %rax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	(%rcx,%rax,8), %rcx
	movl	12(%r13), %r8d
	movl	4(%r13), %eax
	movl	8(%r13), %r9d
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	movl	-84(%rbp), %ebx                 ## 4-byte Reload
	movl	%eax, (%rsp)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	callq	*8(%rax)
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rdi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rsi
	movl	%r13d, %edx
	callq	*%rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_8:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_chr_h_scale
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chr_h_scale
_chr_h_scale:                           ; @chr_h_scale
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldp	x8, x26, [x1, #8]
	ldp	w1, w0, [x8, #8]
	bl	_AV_CEIL_RSHIFT
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	str	x20, [sp, #40]                  ; 8-byte Folded Spill
	ldr	x8, [x20]
	ldp	w1, w0, [x8, #8]
	bl	_AV_CEIL_RSHIFT
	str	w19, [sp, #12]                  ; 4-byte Folded Spill
	cmp	w19, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x23, x0
	ldr	w8, [x26]
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	ldp	x9, x8, [x9]
	ldr	x8, [x8]
	ldr	x11, [x8, #24]
	ldr	x9, [x9]
	ldr	x28, [x9, #24]
	ldr	x10, [x8, #40]
	stp	x10, x11, [sp, #24]             ; 16-byte Folded Spill
	ldr	x25, [x9, #40]
	ldr	w10, [x8, #16]
	mov	x11, x22
	sub	w22, w22, w10
	ldr	w10, [x9, #16]
	sub	w24, w11, w10
	ldr	w8, [x8, #32]
	sub	w27, w11, w8
	ldr	w8, [x9, #32]
	sub	w20, w11, w8
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	mov	w19, w8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w9, [x8, #20]
	add	w9, w9, #1
	ldr	w10, [x8, #36]
	add	w10, w10, #1
	add	w24, w24, #1
	str	w9, [x8, #20]
	str	w10, [x8, #36]
	add	w20, w20, #1
	add	w22, w22, #1
	add	w27, w27, #1
	subs	x19, x19, #1
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x28, w24, sxtw #3]
	ldr	x2, [x25, w20, sxtw #3]
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	ldr	x4, [x9, w22, sxtw #3]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x5, [x9, w27, sxtw #3]
	mov	x0, x21
	mov	x3, x23
	ldp	w7, w6, [sp, #16]               ; 8-byte Folded Reload
	blr	x8
	ldr	x8, [x21]
	cbnz	x8, LBB0_6
	b	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x28, w24, sxtw #3]
	ldr	x8, [x21, #8]
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	ldr	x3, [x9, w22, sxtw #3]
	ldp	w5, w4, [x26, #8]
	ldr	w6, [x26, #4]
	mov	x0, x21
	mov	x2, x23
	blr	x8
	ldr	x1, [x25, w20, sxtw #3]
	ldr	x8, [x21, #8]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x3, [x9, w27, sxtw #3]
	ldp	w5, w4, [x26, #8]
	ldr	w6, [x26, #4]
	mov	x0, x21
	mov	x2, x23
	blr	x8
	ldr	x8, [x21]
	cbz	x8, LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x28, w24, sxtw #3]
	ldr	x1, [x25, w20, sxtw #3]
	mov	x2, x23
	blr	x8
	b	LBB0_2
LBB0_7:
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_chr_h_scale
.subsections_via_symbols
