	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function R_DlightSurface
_R_DlightSurface:                       ## @R_DlightSurface
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rdi
	movq	(%rdi), %rcx
	movq	_SF_FACE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_2
## %bb.1:
	callq	_R_DlightFace
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_7
LBB0_2:
	movq	_SF_GRID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_4
## %bb.3:
	callq	_R_DlightGrid
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	movq	_tr@GOTPCREL(%rip), %rcx
	incl	(%rcx)
LBB0_9:
	popq	%rbp
	retq
LBB0_4:
	movq	_SF_TRIANGLES@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_9
## %bb.5:
	callq	_R_DlightTrisurf
	testl	%eax, %eax
	jne	LBB0_8
LBB0_7:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SF_FACE,8,3                    ## @SF_FACE
	.comm	_SF_GRID,8,3                    ## @SF_GRID
	.comm	_SF_TRIANGLES,8,3               ## @SF_TRIANGLES
	.comm	_tr,4,2                         ## @tr
	.no_dead_strip	_R_DlightSurface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function R_DlightSurface
_R_DlightSurface:                       ; @R_DlightSurface
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x0, [x0]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SF_FACE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SF_FACE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	bl	_R_DlightFace
	cbnz	w0, LBB0_4
	b	LBB0_5
LBB0_2:
Lloh3:
	adrp	x9, _SF_GRID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SF_GRID@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	bl	_R_DlightGrid
	cbz	w0, LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _tr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _tr@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_5:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh8:
	adrp	x9, _SF_TRIANGLES@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SF_TRIANGLES@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	bl	_R_DlightTrisurf
	cbnz	w0, LBB0_4
	b	LBB0_5
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SF_FACE,8,3                    ; @SF_FACE
	.comm	_SF_GRID,8,3                    ; @SF_GRID
	.comm	_SF_TRIANGLES,8,3               ; @SF_TRIANGLES
	.comm	_tr,4,2                         ; @tr
	.no_dead_strip	_R_DlightSurface
.subsections_via_symbols
