	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function R_DlightGrid
_R_DlightGrid:                          ## @R_DlightGrid
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %eax
	movq	_tr@GOTPCREL(%rip), %r8
	movl	16(%r8), %r9d
	testl	%r9d, %r9d
	jle	LBB0_11
## %bb.1:
	movq	24(%r8), %rdx
	addq	$8, %rdx
	xorl	%ecx, %ecx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	notl	%esi
	andl	%esi, %eax
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	addq	$16, %rdx
	cmpq	%rcx, %r9
	je	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %esi
	shll	%cl, %esi
	btl	%ecx, %eax
	jae	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-8(%rdx), %r11
	movq	(%rdx), %r10
	movq	(%r11), %r12
	movq	%r12, %rbx
	subq	%r10, %rbx
	movq	(%rdi), %r14
	movq	8(%r14), %r15
	cmpq	(%r15), %rbx
	jg	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%r10, %r12
	movq	(%r14), %r14
	cmpq	(%r14), %r12
	jl	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r11), %r12
	movq	%r12, %rbx
	subq	%r10, %rbx
	cmpq	8(%r15), %rbx
	jg	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%r10, %r12
	cmpq	8(%r14), %r12
	jl	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r11), %r11
	movq	%r11, %rbx
	subq	%r10, %rbx
	cmpq	16(%r15), %rbx
	jg	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%r10, %r11
	cmpq	16(%r14), %r11
	jl	LBB0_9
	jmp	LBB0_10
LBB0_11:
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	incl	8(%r8)
LBB0_13:
	movq	8(%rdi), %rcx
	movq	(%r8), %rdx
	movl	%eax, (%rcx,%rdx,4)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tr,32,3                        ## @tr
	.no_dead_strip	_R_DlightGrid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function R_DlightGrid
_R_DlightGrid:                          ; @R_DlightGrid
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _tr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tr@GOTPAGEOFF]
	ldr	w9, [x8, #16]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x10, #0
	ldr	x11, [x8, #24]
	add	x11, x11, #8
	mov	w12, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	bic	w1, w1, w13
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #1
	add	x11, x11, #16
	cmp	x9, x10
	b.eq	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w13, w12, w10
	tst	w1, w13
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x15, x14, [x11, #-8]
	ldr	x2, [x15]
	ldr	x17, [x0]
	ldr	x16, [x17, #8]
	ldr	x3, [x16]
	sub	x4, x2, x14
	cmp	x4, x3
	b.gt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x17, [x17]
	ldr	x3, [x17]
	add	x2, x14, x2
	cmp	x2, x3
	b.lt	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x2, [x15, #8]
	ldr	x3, [x16, #8]
	sub	x4, x2, x14
	cmp	x4, x3
	b.gt	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x3, [x17, #8]
	add	x2, x2, x14
	cmp	x2, x3
	b.lt	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x15, [x15, #16]
	ldr	x16, [x16, #16]
	sub	x2, x15, x14
	cmp	x2, x16
	b.gt	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x16, [x17, #16]
	add	x14, x15, x14
	cmp	x14, x16
	b.lt	LBB0_2
	b	LBB0_3
LBB0_11:
	cbnz	w1, LBB0_13
; %bb.12:
	ldr	w9, [x8, #8]
	add	w9, w9, #1
	str	w9, [x8, #8]
LBB0_13:
	ldr	x9, [x0, #8]
	ldr	x8, [x8]
	str	w1, [x9, x8, lsl #2]
	mov	x0, x1
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_tr,32,3                        ; @tr
	.no_dead_strip	_R_DlightGrid
.subsections_via_symbols
