	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_locateCamera                   ## -- Begin function locateCamera
	.p2align	4, 0x90
_locateCamera:                          ## @locateCamera
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	36(%rdi), %edi
	callq	_G_PickTarget
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	movl	32(%rax), %eax
	movl	%eax, 40(%r14)
	movl	(%rbx), %eax
	movl	$25, %ecx
	testb	$1, %al
	jne	LBB0_3
## %bb.2:
	movl	$75, %ecx
	testb	$2, %al
	je	LBB0_4
LBB0_3:
	movl	%ecx, 4(%r14)
LBB0_4:
	xorl	%ecx, %ecx
	testb	$4, %al
	sete	%cl
	movl	%ecx, 8(%r14)
	movl	28(%rbx), %eax
	movl	%eax, 28(%r14)
	movl	20(%rbx), %edi
	movl	24(%r14), %esi
	callq	_VectorCopy
	movl	36(%rbx), %edi
	callq	_G_PickTarget
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	20(%rax), %edi
	movl	20(%rbx), %esi
	callq	_VectorSubtract
	callq	_VectorNormalize
	jmp	LBB0_7
LBB0_8:
	leaq	L_.str(%rip), %rdi
	callq	_G_Printf
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_G_FreeEntity                   ## TAILCALL
LBB0_6:
	movl	16(%rbx), %edi
	callq	_G_SetMovedir
LBB0_7:
	callq	_DirToByte
	movl	%eax, 12(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't find target for misc_partal_surface\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_locateCamera                   ; -- Begin function locateCamera
	.p2align	2
_locateCamera:                          ; @locateCamera
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #36]
	bl	_G_PickTarget
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0, #32]
	str	w8, [x19, #40]
	ldr	w8, [x0]
	tbnz	w8, #0, LBB0_5
; %bb.2:
	tbz	w8, #1, LBB0_7
; %bb.3:
	mov	w9, #75
	b	LBB0_6
LBB0_4:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_G_Printf
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_G_FreeEntity
LBB0_5:
	mov	w9, #25
LBB0_6:
	str	w9, [x19, #4]
LBB0_7:
	mov	w9, #1
	bic	w8, w9, w8, lsr #2
	str	w8, [x19, #8]
	ldr	w8, [x20, #28]
	str	w8, [x19, #28]
	ldr	w0, [x20, #20]
	ldr	w1, [x19, #24]
	bl	_VectorCopy
	ldr	w0, [x20, #36]
	bl	_G_PickTarget
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w0, [x0, #20]
	ldr	w1, [x20, #20]
	bl	_VectorSubtract
	bl	_VectorNormalize
	b	LBB0_10
LBB0_9:
	ldr	w0, [x20, #16]
	bl	_G_SetMovedir
LBB0_10:
	bl	_DirToByte
	str	w0, [x19, #12]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't find target for misc_partal_surface\n"

.subsections_via_symbols
