	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function R_CreateDlightImage
LCPI0_0:
	.long	0xbf000000                      ## float -0.5
LCPI0_1:
	.long	0x457a0000                      ## float 4000
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_2:
	.space	4
	.long	255                             ## 0xff
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_R_CreateDlightImage:                   ## @R_CreateDlightImage
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_DLIGHT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	imulq	%r14, %rax
	shlq	$4, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rsi
	testl	%r14d, %r14d
	jle	LBB0_9
## %bb.1:
	movl	%r14d, %eax
	shrl	%eax
	cvtsi2ss	%eax, %xmm0
	addss	LCPI0_0(%rip), %xmm0
	movq	%r14, %r10
	shlq	$4, %r10
	xorl	%r9d, %r9d
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = <u,255,u,u>
	movq	%rsi, %r8
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r9
	addq	$16, %r8
	cmpq	%r14, %r9
	je	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	xorps	%xmm4, %xmm4
	cvtsi2ss	%r9d, %xmm4
	movaps	%xmm0, %xmm3
	subss	%xmm4, %xmm3
	movq	%r8, %rdi
	xorl	%edx, %edx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=2
	movdqa	%xmm2, %xmm4
	pinsrd	$0, %ebx, %xmm4
	pshufd	$64, %xmm4, %xmm4               ## xmm4 = xmm4[0,0,0,1]
	movdqa	%xmm4, (%rdi)
	incq	%rdx
	addq	%r10, %rdi
	cmpq	%rdx, %r14
	je	LBB0_8
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorps	%xmm4, %xmm4
	cvtsi2ss	%edx, %xmm4
	movaps	%xmm0, %xmm5
	subss	%xmm4, %xmm5
	mulss	%xmm5, %xmm5
	movaps	%xmm3, %xmm4
	mulss	%xmm3, %xmm4
	addss	%xmm5, %xmm4
	movaps	%xmm1, %xmm5
	divss	%xmm4, %xmm5
	cvttss2si	%xmm5, %ecx
	xorl	%eax, %eax
	cmpl	$75, %ecx
	jl	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	%ecx, %eax
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=2
	movl	$255, %ebx
	cmpl	$256, %ecx                      ## imm = 0x100
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_9:
	movq	_IMGTYPE_COLORALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_IMGFLAG_CLAMPTOEDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %edx
	movl	%r14d, %ecx
	pushq	$0
	callq	_R_CreateImage
	addq	$16, %rsp
	movq	_tr@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	leaq	-16(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DLIGHT_SIZE,4,2                ## @DLIGHT_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"*dlight"

	.comm	_IMGTYPE_COLORALPHA,4,2         ## @IMGTYPE_COLORALPHA
	.comm	_IMGFLAG_CLAMPTOEDGE,4,2        ## @IMGFLAG_CLAMPTOEDGE
	.comm	_tr,4,2                         ## @tr
	.no_dead_strip	_R_CreateDlightImage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function R_CreateDlightImage
_R_CreateDlightImage:                   ; @R_CreateDlightImage
	.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
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
Lloh3:
	adrp	x8, _DLIGHT_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DLIGHT_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mul	x8, x2, x2
	lsl	x8, x8, #4
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x1, x9, x8
	mov	sp, x1
	cmp	w2, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x8, #0
	ubfx	x9, x2, #1, #31
	scvtf	s0, w9
	fmov	s1, #-0.50000000
	fadd	s0, s0, s1
	add	x9, x1, #8
	lsl	x10, x2, #4
	mov	w11, #1165623296
	mov	w12, #255
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	mov	x13, #0
	scvtf	s1, w8
	fsub	s1, s0, s1
	mov	x14, x9
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	scvtf	s2, w13
	fsub	s2, s0, s2
	fmul	s2, s2, s2
	fmadd	s2, s1, s1, s2
	fmov	s3, w11
	fdiv	s2, s3, s2
	fcvtzs	w15, s2
	cmp	w15, #75
	csel	w16, wzr, w15, lt
	cmp	w15, #255
	csel	w15, w12, w16, gt
	stp	w15, w15, [x14, #-8]
	stp	w15, w12, [x14]
	add	x13, x13, #1
	add	x14, x14, x10
	cmp	x2, x13
	b.ne	LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	add	x9, x9, #16
	cmp	x8, x2
	b.ne	LBB0_2
LBB0_5:
Lloh8:
	adrp	x8, _IMGTYPE_COLORALPHA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IMGTYPE_COLORALPHA@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
Lloh11:
	adrp	x8, _IMGFLAG_CLAMPTOEDGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IMGFLAG_CLAMPTOEDGE@GOTPAGEOFF]
Lloh13:
	ldr	w5, [x8]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x2
	mov	w6, #0
	bl	_R_CreateImage
Lloh16:
	adrp	x8, _tr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _tr@GOTPAGEOFF]
Lloh18:
	str	w0, [x8]
	ldur	x8, [x29, #-8]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	sp, x29
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DLIGHT_SIZE,4,2                ; @DLIGHT_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"*dlight"

	.comm	_IMGTYPE_COLORALPHA,4,2         ; @IMGTYPE_COLORALPHA
	.comm	_IMGFLAG_CLAMPTOEDGE,4,2        ; @IMGFLAG_CLAMPTOEDGE
	.comm	_tr,4,2                         ; @tr
	.no_dead_strip	_R_CreateDlightImage
.subsections_via_symbols
