	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	2                               ## -- Begin function vectoangles
LCPI0_0:
	.long	0x43870000                      ## float 270
	.long	0x42b40000                      ## float 90
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_1:
	.long	0x43b40000                      ## float 360
	.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
	.globl	_vectoangles
	.p2align	4, 0x90
_vectoangles:                           ## @vectoangles
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movl	4(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_1
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:
	xorl	%eax, %eax
	testl	%edi, %edi
	setg	%al
	leaq	LCPI0_0(%rip), %rcx
	movss	(%rcx,%rax,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	testl	%eax, %eax
	je	LBB0_2
LBB0_4:
	cvtsi2ss	%eax, %xmm0
	callq	_atan2
	imull	$180, %eax, %eax
	movq	_M_PI@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movl	(%rbx), %eax
	movl	4(%rbx), %edi
LBB0_6:
	movaps	%xmm0, %xmm1
	addss	LCPI0_1(%rip), %xmm1
	xorps	%xmm2, %xmm2
	movaps	%xmm0, %xmm3
	cmpltss	%xmm2, %xmm3
	andps	%xmm3, %xmm1
	andnps	%xmm0, %xmm3
	orps	%xmm1, %xmm3
	movaps	%xmm3, -32(%rbp)                ## 16-byte Spill
	imull	%eax, %eax
	imull	%edi, %edi
	addl	%eax, %edi
	callq	_sqrt
	movl	8(%rbx), %edi
	callq	_atan2
	imull	$180, %eax, %eax
	movq	_M_PI@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	testl	%eax, %eax
	jns	LBB0_8
## %bb.7:
	addss	LCPI0_1(%rip), %xmm0
LBB0_8:
	cvttss2si	-32(%rbp), %eax         ## 16-byte Folded Reload
LBB0_9:
	xorps	LCPI0_2(%rip), %xmm0
	cvttss2si	%xmm0, %ecx
	movq	_PITCH@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, (%r14,%rdx,4)
	movq	_YAW@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r14,%rcx,4)
	movq	_ROLL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, (%r14,%rax,4)
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	cmpl	$0, 8(%rbx)
	setg	%al
	leaq	LCPI0_0(%rip), %rcx
	movss	(%rcx,%rax,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_M_PI,4,2                       ## @M_PI
	.comm	_PITCH,8,3                      ## @PITCH
	.comm	_YAW,8,3                        ## @YAW
	.comm	_ROLL,8,3                       ## @ROLL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vectoangles                    ; -- Begin function vectoangles
	.p2align	2
_vectoangles:                           ; @vectoangles
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	.cfi_offset b8, -56
	.cfi_offset b9, -64
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #4]
	ldr	w8, [x20]
Lloh0:
	adrp	x21, _M_PI@GOTPAGE
Lloh1:
	ldr	x21, [x21, _M_PI@GOTPAGEOFF]
	cbz	w0, LBB0_3
; %bb.1:
	cbnz	w8, LBB0_4
; %bb.2:
	cmp	w0, #0
	mov	w9, #1132920832
	fmov	s0, w9
	mov	w9, #1119092736
	fmov	s1, w9
	fcsel	s0, s1, s0, gt
	b	LBB0_5
LBB0_3:
	cbz	w8, LBB0_7
LBB0_4:
	scvtf	s0, w8
	bl	_atan2
	mov	w8, #180
	mul	w8, w0, w8
	ldr	w9, [x21]
	sdiv	w8, w8, w9
	scvtf	s0, w8
	ldp	w8, w0, [x20]
LBB0_5:
	mov	w9, #1135869952
	fmov	s8, w9
	fadd	s1, s0, s8
	fcmp	s0, #0.0
	fcsel	s9, s1, s0, mi
	mul	w8, w8, w8
	madd	w0, w0, w0, w8
	bl	_sqrt
	ldr	w0, [x20, #8]
	bl	_atan2
	mov	w8, #180
	mul	w8, w0, w8
	ldr	w9, [x21]
	sdiv	w8, w8, w9
	scvtf	s0, w8
	fadd	s1, s0, s8
	cmp	w8, #0
	fcsel	s0, s1, s0, lt
	fcvtzs	w8, s9
LBB0_6:
	fneg	s0, s0
	fcvtzs	w9, s0
Lloh2:
	adrp	x10, _PITCH@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PITCH@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	str	w9, [x19, x10, lsl #2]
Lloh5:
	adrp	x9, _YAW@GOTPAGE
Lloh6:
	ldr	x9, [x9, _YAW@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	str	w8, [x19, x9, lsl #2]
Lloh8:
	adrp	x8, _ROLL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ROLL@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	wzr, [x19, x8, lsl #2]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w9, [x20, #8]
	cmp	w9, #0
	mov	w9, #1132920832
	fmov	s0, w9
	mov	w9, #1119092736
	fmov	s1, w9
	fcsel	s0, s1, s0, gt
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_M_PI,4,2                       ; @M_PI
	.comm	_PITCH,8,3                      ; @PITCH
	.comm	_YAW,8,3                        ; @YAW
	.comm	_ROLL,8,3                       ; @ROLL
.subsections_via_symbols
