	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function xyz_to_dfisheye
LCPI0_0:
	.long	0x3f800000                      ## float 1
LCPI0_1:
	.long	0x3f000000                      ## float 0.5
LCPI0_3:
	.long	0x00000000                      ## float 0
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_2:
	.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
_xyz_to_dfisheye:                       ## @xyz_to_dfisheye
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	subss	(%rdi), %xmm0
	movaps	%xmm0, -64(%rbp)                ## 16-byte Spill
	cvtsi2ss	%edx, %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ecx, %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	mulss	LCPI0_1(%rip), %xmm1
	movss	%xmm1, -48(%rbp)                ## 4-byte Spill
	movss	(%rsi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	4(%rsi), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	callq	_hypotf
	xorps	%xmm1, %xmm1
	cmpltss	%xmm0, %xmm1
	andps	%xmm1, %xmm0
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	andnps	%xmm2, %xmm1
	orps	%xmm0, %xmm1
	movaps	%xmm1, -112(%rbp)               ## 16-byte Spill
	movss	8(%rbx), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	callq	_fabsf
	movl	%eax, %edi
	callq	_acosf
	movq	_M_PI@GOTPCREL(%rip), %rax
	movss	(%rbx), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	xorps	LCPI0_2(%rip), %xmm1
	insertps	$16, %xmm1, %xmm0               ## xmm0 = xmm0[0],xmm1[0],xmm0[2,3]
	movss	(%rax), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	movaps	-112(%rbp), %xmm2               ## 16-byte Reload
	insertps	$16, %xmm2, %xmm1               ## xmm1 = xmm1[0],xmm2[0],xmm1[2,3]
	divps	%xmm1, %xmm0
	movshdup	%xmm0, %xmm4                    ## xmm4 = xmm0[1,1,3,3]
	mulss	%xmm0, %xmm4
	movq	8(%r13), %rax
	mulss	(%rax), %xmm4
	movaps	-64(%rbp), %xmm3                ## 16-byte Reload
	mulss	%xmm3, %xmm4
	movss	LCPI0_1(%rip), %xmm5            ## xmm5 = mem[0],zero,zero,zero
	addss	%xmm5, %xmm4
	movss	4(%rbx), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	divss	%xmm2, %xmm1
	mulss	%xmm0, %xmm1
	mulss	4(%rax), %xmm1
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm2
	mulss	%xmm0, %xmm4
	mulss	%xmm3, %xmm1
	movaps	%xmm5, %xmm0
	subss	%xmm1, %xmm0
	mulss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movss	8(%rbx), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	xorl	%r13d, %r13d
	ucomiss	LCPI0_3(%rip), %xmm0
	jae	LBB0_2
## %bb.1:
	movaps	%xmm2, %xmm0
	movaps	%xmm4, -64(%rbp)                ## 16-byte Spill
	callq	_ceilf
	movl	%eax, %r13d
	movss	-48(%rbp), %xmm4                ## 4-byte Reload
                                        ## xmm4 = mem[0],zero,zero,zero
	subss	-64(%rbp), %xmm4                ## 16-byte Folded Reload
LBB0_2:
	movaps	%xmm4, -64(%rbp)                ## 16-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movaps	%xmm4, %xmm0
	callq	_floorf
	movl	%eax, %r14d
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_floorf
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r14d, %xmm0
	movl	%eax, %ebx
	xorps	%xmm1, %xmm1
	cvtsi2ss	%eax, %xmm1
	movaps	-64(%rbp), %xmm2                ## 16-byte Reload
	subss	%xmm0, %xmm2
	movq	16(%rbp), %rax
	movss	%xmm2, (%rax)
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm0
	movq	24(%rbp), %rax
	movss	%xmm0, (%rax)
	leal	(%r14,%r13), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	decl	%r12d
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	decl	%r15d
	movl	%r15d, -68(%rbp)                ## 4-byte Spill
	leal	(%r14,%r13), %eax
	decl	%eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leal	1(%r14,%r13), %eax
	movl	%eax, -112(%rbp)                ## 4-byte Spill
	leal	(%r14,%r13), %eax
	addl	$2, %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	decl	%ebx
	xorl	%r14d, %r14d
	movl	-68(%rbp), %r13d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	callq	_av_clip
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r14)
	movq	%rcx, %r12
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_av_clip
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r14)
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_av_clip
	movl	%eax, 4(%r12,%r14)
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_av_clip
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, 4(%r12,%r14)
	movl	-112(%rbp), %edi                ## 4-byte Reload
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_av_clip
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, 8(%r15,%r14)
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_av_clip
	movl	%eax, 8(%r12,%r14)
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_av_clip
	movl	%eax, 12(%r15,%r14)
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_av_clip
	movl	%eax, 12(%r12,%r14)
	incl	%ebx
	addq	$16, %r14
	cmpq	$64, %r14
	jne	LBB0_3
## %bb.4:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_PI,4,2                       ## @M_PI
	.no_dead_strip	_xyz_to_dfisheye
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xyz_to_dfisheye
_xyz_to_dfisheye:                       ; @xyz_to_dfisheye
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d13, d12, [sp, #16]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	.cfi_offset b12, -136
	.cfi_offset b13, -144
	mov	x21, x7
	mov	x22, x6
	mov	x19, x5
	mov	x20, x4
	mov	x24, x3
	mov	x23, x2
	mov	x25, x1
	mov	x26, x0
	ldr	s0, [x0]
	fmov	s9, #1.00000000
	fsub	s11, s9, s0
	scvtf	s0, w2
	fmov	s12, #0.50000000
	fmul	s8, s0, s12
	scvtf	s13, w3
	ldp	s0, s1, [x1]
	bl	_hypotf
	fcmp	s0, #0.0
	fcsel	s9, s0, s9, gt
	ldr	s0, [x25, #8]
	bl	_fabsf
	bl	_acosf
Lloh0:
	adrp	x8, _M_PI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_PI@GOTPAGEOFF]
Lloh2:
	ldr	s1, [x8]
	fdiv	s0, s0, s1
	ldp	s1, s2, [x25]
	fneg	s1, s1
	fdiv	s1, s1, s9
	fmul	s1, s0, s1
	ldr	x8, [x26, #8]
	ldp	s3, s4, [x8]
	fmul	s1, s1, s3
	fneg	s2, s2
	fdiv	s2, s2, s9
	fmadd	s1, s1, s11, s12
	fmul	s10, s8, s1
	fmul	s0, s0, s2
	fmul	s0, s4, s0
	fmadd	s0, s0, s11, s12
	fmul	s9, s0, s13
	ldr	s0, [x25, #8]
	fcmp	s0, #0.0
	b.ge	LBB0_2
; %bb.1:
	fmov	s0, s8
	bl	_ceilf
	mov	x25, x0
	fsub	s10, s8, s10
	b	LBB0_3
LBB0_2:
	mov	w25, #0
LBB0_3:
	fmov	s0, s10
	bl	_floorf
	mov	x26, x0
	fmov	s0, s9
	bl	_floorf
	mov	x28, #0
	scvtf	s0, w26
	fsub	s0, s10, s0
	str	s0, [x22]
	scvtf	s0, w0
	add	w22, w26, w25
	sub	w23, w23, #1
	sub	w24, w24, #1
	sub	w9, w22, #1
	fsub	s0, s9, s0
	str	s0, [x21]
	add	w8, w22, #1
	stp	w8, w9, [sp, #8]                ; 8-byte Folded Spill
	add	w26, w22, #2
	sub	w27, w0, #1
	add	x20, x20, #8
	mov	x21, x19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	mov	w1, #0
	mov	x2, x23
	bl	_av_clip
	add	x19, x20, x28
	stur	w0, [x19, #-8]
	mov	x0, x27
	mov	w1, #0
	mov	x2, x24
	bl	_av_clip
	add	x25, x21, x28
	str	w0, [x25]
	mov	x0, x22
	mov	w1, #0
	mov	x2, x23
	bl	_av_clip
	stur	w0, [x19, #-4]
	mov	x0, x27
	mov	w1, #0
	mov	x2, x24
	bl	_av_clip
	str	w0, [x25, #4]
	ldr	w0, [sp, #8]                    ; 4-byte Folded Reload
	mov	w1, #0
	mov	x2, x23
	bl	_av_clip
	str	w0, [x19]
	mov	x0, x27
	mov	w1, #0
	mov	x2, x24
	bl	_av_clip
	str	w0, [x25, #8]
	mov	x0, x26
	mov	w1, #0
	mov	x2, x23
	bl	_av_clip
	str	w0, [x19, #4]
	mov	x0, x27
	mov	w1, #0
	mov	x2, x24
	bl	_av_clip
	str	w0, [x25, #12]
	add	w27, w27, #1
	add	x28, x28, #16
	cmp	x28, #64
	b.ne	LBB0_4
; %bb.5:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_M_PI,4,2                       ; @M_PI
	.no_dead_strip	_xyz_to_dfisheye
.subsections_via_symbols
