	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lum_h_scale
_lum_h_scale:                           ## @lum_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.1:
	movl	%edx, %r12d
	movq	24(%rsi), %rdx
	movq	(%rsi), %rax
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rcx
	movl	(%rcx), %esi
	movl	%esi, -64(%rbp)                 ## 4-byte Spill
	movl	(%rax), %esi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	(%rdx), %edx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	leal	-1(%rdx), %r13d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rcx), %rsi
	movq	8(%rsi), %rcx
	movq	8(%rax), %rax
	movl	%r12d, %edx
	subl	(%rsi), %edx
	movl	%r12d, %esi
	subl	(%rax), %esi
	movq	8(%rax), %r14
	movq	8(%rdi), %rax
	movslq	%esi, %r15
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14,%r15,8), %rsi
	movslq	%edx, %rdx
	movq	(%rcx,%rdx,8), %rcx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
	callq	*%rax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14,%r15,8), %rsi
	movslq	%edx, %rax
	movq	(%rcx,%rax,8), %rcx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	12(%rdx), %r8d
	movl	4(%rdx), %eax
	movl	8(%rdx), %r9d
	movl	%eax, (%rsp)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax)
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14,%r15,8), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	*%rax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	movq	8(%rax), %rax
	incl	4(%rax)
	cmpq	$0, 16(%rbx)
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rcx
	movq	8(%rcx), %rsi
	movq	56(%rsi), %r8
	movl	%r12d, %edx
	subl	48(%rsi), %edx
	movl	%r12d, %ecx
	subl	48(%rax), %ecx
	movq	56(%rax), %rsi
	incl	52(%rax)
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ecx, %rcx
	movq	(%rsi,%rcx,8), %rsi
	movslq	%edx, %rdx
	movq	(%r8,%rdx,8), %rcx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
	callq	*%rax
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ecx, %rax
	movq	(%rsi,%rax,8), %rsi
	movslq	%edx, %rax
	movq	(%r8,%rax,8), %rcx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	12(%rdx), %r8d
	movl	4(%rdx), %eax
	movl	8(%rdx), %r9d
	movl	%eax, (%rsp)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax)
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	subl	$1, %r13d
	jb	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	incl	%r12d
	jmp	LBB0_2
LBB0_14:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lum_h_scale
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lum_h_scale
_lum_h_scale:                           ; @lum_h_scale
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	w3, [sp, #12]                   ; 4-byte Folded Spill
	subs	w26, w3, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x27, [x1, #24]
	ldp	x9, x8, [x1]
	ldr	w23, [x8]
	ldr	w24, [x9]
	ldr	w25, [x27]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8, #8]
	ldr	x8, [x10, #8]
	ldr	x9, [x9, #8]
	ldr	x28, [x9, #8]
	ldr	w10, [x10]
	sub	w10, w20, w10
	ldr	w9, [x9]
	sub	w19, w20, w9
	ldr	x9, [x22, #8]
	cbz	x9, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x28, w19, sxtw #3]
	ldr	x3, [x8, w10, sxtw #3]
	mov	x0, x22
	mov	x2, x24
	mov	x4, x23
	mov	x5, x25
	blr	x9
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x28, w19, sxtw #3]
	mov	x1, x24
	blr	x8
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
	ldr	x9, [x21, #16]
	cbz	x9, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x21, #8]
	ldr	x11, [x9, #8]
	ldr	x9, [x11, #56]
	ldr	x10, [x8, #56]
	ldr	w11, [x11, #48]
	sub	w11, w20, w11
	ldp	w12, w13, [x8, #48]
	sub	w12, w20, w12
	add	w13, w13, #1
	str	w13, [x8, #52]
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x10, w12, sxtw #3]
	ldr	x3, [x9, w11, sxtw #3]
	mov	x0, x22
	mov	x2, x24
	mov	x4, x23
	mov	x5, x25
	blr	x8
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	w26, LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldp	x9, x8, [x21]
	sub	w26, w26, #1
	add	w20, w20, #1
	b	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x28, w19, sxtw #3]
	ldr	x9, [x22]
	ldr	x3, [x8, w10, sxtw #3]
	ldp	w5, w4, [x27, #8]
	ldr	w6, [x27, #4]
	mov	x0, x22
	mov	x2, x24
	blr	x9
	ldr	x8, [x22, #16]
	cbnz	x8, LBB0_4
	b	LBB0_5
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x10, w12, sxtw #3]
	ldr	x8, [x22]
	ldr	x3, [x9, w11, sxtw #3]
	ldp	w5, w4, [x27, #8]
	ldr	w6, [x27, #4]
	mov	x0, x22
	mov	x2, x24
	blr	x8
	cbnz	w26, LBB0_9
LBB0_12:
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lum_h_scale
.subsections_via_symbols
