	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function fov_from_dfov
LCPI0_0:
	.long	0x43b38000                      ## float 359
LCPI0_3:
	.long	0x43b40000                      ## float 360
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_2:
	.quad	0x4066800000000000              ## double 180
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_fov_from_dfov:                         ## @fov_from_dfov
	.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	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movss	%xmm1, -24(%rbp)                ## 4-byte Spill
	movss	%xmm0, -32(%rbp)                ## 4-byte Spill
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	callq	_FFMIN
	mulsd	LCPI0_1(%rip), %xmm0
	movq	_M_PI@GOTPCREL(%rip), %r14
	mulsd	(%r14), %xmm0
	divsd	LCPI0_2(%rip), %xmm0
	callq	_tanf
	movss	%xmm0, -20(%rbp)                ## 4-byte Spill
	movss	-32(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	-24(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	callq	_hypotf
	movaps	%xmm0, %xmm1
	movss	%xmm0, -40(%rbp)                ## 4-byte Spill
	movss	-32(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	mulss	-20(%rbp), %xmm0                ## 4-byte Folded Reload
	callq	_atan2f
	mulss	LCPI0_3(%rip), %xmm0
	cvtss2sd	%xmm0, %xmm0
	movsd	(%r14), %xmm1                   ## xmm1 = mem[0],zero
	movsd	%xmm1, -32(%rbp)                ## 8-byte Spill
	divsd	%xmm1, %xmm0
	cvtsd2ss	%xmm0, %xmm0
	movss	%xmm0, -36(%rbp)                ## 4-byte Spill
	movss	%xmm0, (%rbx)
	movss	-20(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	mulss	-24(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	-40(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	callq	_atan2f
	movss	-36(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	mulss	LCPI0_3(%rip), %xmm0
	cvtss2sd	%xmm0, %xmm0
	divsd	-32(%rbp), %xmm0                ## 8-byte Folded Reload
	cvtsd2ss	%xmm0, %xmm0
	movss	%xmm0, 4(%rbx)
	xorps	%xmm1, %xmm1
	ucomiss	%xmm2, %xmm1
	jbe	LBB0_2
## %bb.1:
	addss	LCPI0_3(%rip), %xmm2
	movss	%xmm2, (%rbx)
LBB0_2:
	ucomiss	%xmm0, %xmm1
	jbe	LBB0_4
## %bb.3:
	addss	LCPI0_3(%rip), %xmm0
	movss	%xmm0, 4(%rbx)
LBB0_4:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_PI,8,3                       ## @M_PI
	.no_dead_strip	_fov_from_dfov
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fov_from_dfov
_fov_from_dfov:                         ; @fov_from_dfov
	.cfi_startproc
; %bb.0:
	stp	d13, d12, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	d11, d10, [sp, #16]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset b12, -72
	.cfi_offset b13, -80
	fmov	s8, s1
	fmov	s9, s0
	mov	x19, x0
	ldr	w0, [x0, #8]
	mov	w8, #32768
	movk	w8, #17331, lsl #16
	fmov	s0, w8
	bl	_FFMIN
	fmov	d1, #0.50000000
Lloh0:
	adrp	x20, _M_PI@GOTPAGE
Lloh1:
	ldr	x20, [x20, _M_PI@GOTPAGEOFF]
	fmul	d0, d0, d1
	ldr	d1, [x20]
	fmul	d0, d0, d1
	mov	x8, #140737488355328
	movk	x8, #16486, lsl #48
	fmov	d1, x8
	fdiv	d0, d0, d1
	bl	_tanf
	fmov	s10, s0
	fmov	s0, s9
	fmov	s1, s8
	bl	_hypotf
	fmov	s11, s0
	fmul	s0, s10, s9
	fmov	s1, s11
	bl	_atan2f
	mov	w8, #1135869952
	fmov	s12, w8
	fmul	s0, s0, s12
	fcvt	d0, s0
	ldr	d13, [x20]
	fdiv	d0, d0, d13
	fcvt	s9, d0
	str	s9, [x19]
	fmul	s0, s10, s8
	fmov	s1, s11
	bl	_atan2f
	fmul	s0, s0, s12
	fcvt	d0, s0
	fdiv	d0, d0, d13
	fcvt	s0, d0
	str	s0, [x19, #4]
	fcmp	s9, #0.0
	b.pl	LBB0_2
; %bb.1:
	mov	w8, #1135869952
	fmov	s1, w8
	fadd	s1, s9, s1
	str	s1, [x19]
LBB0_2:
	fcmp	s0, #0.0
	b.pl	LBB0_4
; %bb.3:
	mov	w8, #1135869952
	fmov	s1, w8
	fadd	s0, s0, s1
	str	s0, [x19, #4]
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #16]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_M_PI,8,3                       ; @M_PI
	.no_dead_strip	_fov_from_dfov
.subsections_via_symbols
