	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	2                               ## -- Begin function vectoyaw
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,__text,regular,pure_instructions
	.globl	_vectoyaw
	.p2align	4, 0x90
_vectoyaw:                              ## @vectoyaw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %rax
	movq	_YAW@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rdi,%rcx,8), %rdi
	movq	_PITCH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rsi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	testq	%rsi, %rsi
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	testq	%rdi, %rdi
	setg	%al
	leaq	LCPI0_0(%rip), %rcx
	movss	(%rcx,%rax,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	popq	%rbp
	retq
LBB0_1:
	testq	%rsi, %rsi
	je	LBB0_2
LBB0_5:
	callq	_atan2
	imull	$180, %eax, %eax
	movq	_M_PI@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	cvtsi2ss	%eax, %xmm0
	testl	%eax, %eax
	jns	LBB0_7
## %bb.6:
	addss	LCPI0_1(%rip), %xmm0
LBB0_7:
	popq	%rbp
	retq
LBB0_2:
	xorps	%xmm0, %xmm0
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_YAW,8,3                        ## @YAW
	.comm	_PITCH,8,3                      ## @PITCH
	.comm	_M_PI,4,2                       ## @M_PI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vectoyaw                       ; -- Begin function vectoyaw
	.p2align	2
_vectoyaw:                              ; @vectoyaw
	.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
	mov	x8, x0
Lloh0:
	adrp	x9, _YAW@GOTPAGE
Lloh1:
	ldr	x9, [x9, _YAW@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x0, [x0, x9, lsl #3]
Lloh3:
	adrp	x9, _PITCH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PITCH@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x1, [x8, x9, lsl #3]
	cbz	x0, LBB0_3
; %bb.1:
	cbnz	x1, LBB0_4
; %bb.2:
	cmp	x0, #0
	mov	w8, #1132920832
	fmov	s0, w8
	mov	w8, #1119092736
	fmov	s1, w8
	fcsel	s0, s1, s0, gt
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	cbz	x1, LBB0_5
LBB0_4:
	bl	_atan2
	mov	w8, #180
	mul	w8, w0, w8
Lloh6:
	adrp	x9, _M_PI@GOTPAGE
Lloh7:
	ldr	x9, [x9, _M_PI@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	sdiv	w8, w8, w9
	scvtf	s0, w8
	mov	w9, #1135869952
	fmov	s1, w9
	fadd	s1, s0, s1
	cmp	w8, #0
	fcsel	s0, s1, s0, lt
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	movi	d0, #0000000000000000
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_YAW,8,3                        ; @YAW
	.comm	_PITCH,8,3                      ; @PITCH
	.comm	_M_PI,4,2                       ; @M_PI
.subsections_via_symbols
