	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function equirect_to_xyz
LCPI0_0:
	.long	0xbf800000                      ## float -1
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_equirect_to_xyz:                       ## @equirect_to_xyz
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	cvtsi2ss	%esi, %xmm0
	cvtsi2ss	%ecx, %xmm1
	movq	%r9, %rbx
	addss	%xmm0, %xmm0
	divss	%xmm1, %xmm0
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm1, %xmm0
	movq	_M_PI@GOTPCREL(%rip), %rax
	mulss	(%rax), %xmm0
	cvtsi2ss	%edx, %xmm3
	addss	%xmm3, %xmm3
	cvtsi2ss	%r8d, %xmm2
	divss	%xmm2, %xmm3
	addss	%xmm1, %xmm3
	movq	_M_PI_2@GOTPCREL(%rip), %rax
	mulss	(%rax), %xmm3
	movss	%xmm3, -12(%rbp)                ## 4-byte Spill
	callq	___sincosf_stret
	movaps	%xmm0, -32(%rbp)                ## 16-byte Spill
	movshdup	%xmm0, %xmm0                    ## xmm0 = xmm0[1,1,3,3]
	movaps	%xmm0, -48(%rbp)                ## 16-byte Spill
	movss	-12(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	___sincosf_stret
	movshdup	%xmm0, %xmm1                    ## xmm1 = xmm0[1,1,3,3]
	movaps	-32(%rbp), %xmm2                ## 16-byte Reload
	mulss	%xmm1, %xmm2
	movss	%xmm2, (%rbx)
	movaps	LCPI0_1(%rip), %xmm2            ## xmm2 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	xorps	%xmm2, %xmm0
	movss	%xmm0, 4(%rbx)
	xorps	%xmm2, %xmm1
	mulss	-48(%rbp), %xmm1                ## 16-byte Folded Reload
	movss	%xmm1, 8(%rbx)
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_PI,4,2                       ## @M_PI
	.comm	_M_PI_2,4,2                     ## @M_PI_2
	.no_dead_strip	_equirect_to_xyz
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function equirect_to_xyz
_equirect_to_xyz:                       ; @equirect_to_xyz
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	.cfi_offset b10, -56
	.cfi_offset b11, -64
	mov	x19, x5
	fmov	s1, #-1.00000000
	scvtf	s0, w1
	scvtf	s2, w3
	fadd	s0, s0, s0
	fdiv	s0, s0, s2
	fadd	s0, s0, s1
Lloh0:
	adrp	x8, _M_PI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_PI@GOTPAGEOFF]
Lloh2:
	ldr	s2, [x8]
	fmul	s0, s0, s2
	scvtf	s2, w2
	fadd	s2, s2, s2
	scvtf	s3, w4
	fdiv	s2, s2, s3
	fadd	s1, s2, s1
Lloh3:
	adrp	x8, _M_PI_2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M_PI_2@GOTPAGEOFF]
Lloh5:
	ldr	s2, [x8]
	fmul	s8, s1, s2
	bl	___sincosf_stret
	fmov	s9, s0
	fmov	s10, s1
	fmov	s0, s8
	bl	___sincosf_stret
	fmul	s2, s9, s1
	fneg	s0, s0
	stp	s2, s0, [x19]
	fneg	s0, s1
	fmul	s0, s10, s0
	str	s0, [x19, #8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_M_PI,4,2                       ; @M_PI
	.comm	_M_PI_2,4,2                     ; @M_PI_2
	.no_dead_strip	_equirect_to_xyz
.subsections_via_symbols
