	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_light_fill                     ## -- Begin function light_fill
	.p2align	4, 0x90
_light_fill:                            ## @light_fill
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r9d killed $r9d def $r9
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	leal	(%r9,%rdx), %ecx
	movq	_XZ_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jl	LBB0_12
## %bb.1:
	movl	%r8d, %r15d
	movq	%r9, %rsi
	leal	(%r9,%r15), %ecx
	movl	%ecx, -92(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %ecx
	jl	LBB0_12
## %bb.2:
	movl	16(%rbp), %r12d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	-1(%rax), %ecx
	movl	%ecx, -88(%rbp)                 ## 4-byte Spill
	incl	%eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	-1(%rax), %ecx
	movl	%ecx, -80(%rbp)                 ## 4-byte Spill
	incl	%eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	leal	-1(%rsi), %r13d
	movl	%r15d, %ebx
	subl	%esi, %ebx
	negl	%esi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, %ecx
	movq	_XZ_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jg	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	js	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%eax, %ebx
	jg	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	_Y_SIZE@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jle	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%r13), %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r15d, %edx
	callq	_XYZ
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movsbl	(%rcx,%rax), %eax
	cmpl	%eax, %r14d
	jle	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r12d, %r12d
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r15d, %edx
	callq	_XYZ
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	cmpb	$0, (%rcx,%rax)
	jne	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_XYZ
	leal	1(%r13), %ecx
	movq	-112(%rbp), %r12                ## 8-byte Reload
	movb	%cl, (%r12,%rax)
	movl	$0, (%rsp)
	movl	%ebx, -96(%rbp)                 ## 4-byte Spill
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	-88(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	movl	%r13d, %r9d
	callq	_light_fill
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	movl	%r13d, %r9d
	callq	_light_fill
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %edx
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %r8d
	movq	-72(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_light_fill
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %r8d
	movq	-72(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_light_fill
	leal	-1(%r15), %r8d
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	movl	-96(%rbp), %ebx                 ## 4-byte Reload
	movq	%r12, %rsi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	%r14d, %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%r13d, %r9d
	callq	_light_fill
	leal	(%r14,%r13), %ecx
	movq	_XZ_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jl	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	incl	%r15d
	decl	%r13d
	addl	$2, %ebx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	incl	%ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	cmpl	%eax, -92(%rbp)                 ## 4-byte Folded Reload
	jge	LBB0_3
LBB0_12:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XZ_LO,4,2                      ## @XZ_LO
	.comm	_XZ_HI,4,2                      ## @XZ_HI
	.comm	_Y_SIZE,4,2                     ## @Y_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_light_fill                     ; -- Begin function light_fill
	.p2align	2
_light_fill:                            ; @light_fill
	.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
Lloh0:
	adrp	x8, _XZ_LO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XZ_LO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w10, w5, w4
	add	w9, w5, w2
	cmp	w9, w8
	str	w10, [sp, #28]                  ; 4-byte Folded Spill
	ccmp	w10, w8, #8, ge
	b.ge	LBB0_2
LBB0_1:
	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
	ret
LBB0_2:
	mov	x24, x6
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	sub	w9, w2, #1
	add	w8, w2, #1
	stp	w8, w9, [sp, #20]               ; 8-byte Folded Spill
	sub	w9, w3, #1
	add	w8, w3, #1
	stp	w8, w9, [sp, #12]               ; 8-byte Folded Spill
	sub	w28, w5, #1
	sub	w26, w4, w5
	neg	w27, w5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
Lloh3:
	adrp	x8, _XZ_HI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XZ_HI@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w9, w21, w27
	cmp	w9, w8
	b.gt	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w20, #31, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh6:
	adrp	x9, _Y_SIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _Y_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w26, w8
	ccmp	w9, w20, #4, le
	b.le	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w25, w28, #1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_XYZ
	ldrsb	w8, [x22, x0]
	cmp	w25, w8
	b.le	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w24, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_XYZ
	ldrb	w8, [x23, x0]
	cbnz	w8, LBB0_1
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_XYZ
	strb	w25, [x22, x0]
	mov	x0, x23
	mov	x1, x22
	ldr	w2, [sp, #24]                   ; 4-byte Folded Reload
	mov	x3, x20
	mov	x4, x19
	mov	x5, x28
	mov	w6, #0
	bl	_light_fill
	mov	x0, x23
	mov	x1, x22
	ldr	w2, [sp, #20]                   ; 4-byte Folded Reload
	mov	x3, x20
	mov	x4, x19
	mov	x5, x28
	mov	w6, #0
	bl	_light_fill
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	ldr	w3, [sp, #16]                   ; 4-byte Folded Reload
	mov	x4, x19
	mov	x5, x28
	mov	w6, #0
	bl	_light_fill
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	ldr	w3, [sp, #12]                   ; 4-byte Folded Reload
	mov	x4, x19
	mov	x5, x28
	mov	w6, #0
	bl	_light_fill
	sub	w4, w19, #1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x5, x28
	mov	w6, #0
	bl	_light_fill
Lloh9:
	adrp	x8, _XZ_LO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XZ_LO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	add	w9, w21, w28
	cmp	w9, w8
	b.lt	LBB0_1
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w24, #0
	add	w19, w19, #1
	sub	w28, w28, #1
	add	w26, w26, #2
	add	w27, w27, #1
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	cmp	w9, w8
	b.ge	LBB0_3
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_XZ_LO,4,2                      ; @XZ_LO
	.comm	_XZ_HI,4,2                      ; @XZ_HI
	.comm	_Y_SIZE,4,2                     ; @Y_SIZE
.subsections_via_symbols
