	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hit_test_face                  ## -- Begin function hit_test_face
	.p2align	4, 0x90
_hit_test_face:                         ## @hit_test_face
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rcx
	movq	8(%rdi), %rsi
	movl	24(%rdi), %edx
	movl	20(%rdi), %r8d
	movl	16(%rdi), %r9d
	subq	$8, %rsp
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	pushq	%r12
	pushq	%r13
	pushq	%r14
	callq	_hit_test
	addq	$32, %rsp
	movl	%eax, %edi
	callq	_is_obstacle
	testq	%rax, %rax
	je	LBB0_19
## %bb.1:
	movq	(%rbx), %rcx
	movq	8(%rbx), %rsi
	movl	24(%rbx), %edx
	movl	20(%rbx), %r8d
	movl	16(%rbx), %r9d
	subq	$8, %rsp
	leaq	-52(%rbp), %rax
	leaq	-56(%rbp), %r10
	leaq	-60(%rbp), %r11
	movl	$1, %edi
	pushq	%rax
	pushq	%r10
	pushq	%r11
	callq	_hit_test
	addq	$32, %rsp
	movslq	-60(%rbp), %r8
	movl	(%r14), %eax
	movl	%r8d, %ecx
	subl	%eax, %ecx
	movl	-56(%rbp), %edx
	movl	(%r13), %edi
	movl	-52(%rbp), %r9d
	movl	(%r12), %r11d
	cmpl	$-1, %ecx
	jne	LBB0_5
## %bb.2:
	cmpl	%edi, %edx
	jne	LBB0_5
## %bb.3:
	cmpl	%r11d, %r9d
	jne	LBB0_5
## %bb.4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	jmp	LBB0_18
LBB0_5:
	cmpl	$1, %ecx
	jne	LBB0_9
## %bb.6:
	cmpl	%edi, %edx
	jne	LBB0_9
## %bb.7:
	cmpl	%r11d, %r9d
	jne	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_18
LBB0_9:
	movl	%r9d, %r14d
	subl	%r11d, %r14d
	movl	%edx, %esi
	xorl	%edi, %esi
	movl	%r8d, %ecx
	xorl	%eax, %ecx
	orl	%esi, %ecx
	sete	%r10b
	jne	LBB0_12
## %bb.10:
	cmpl	$-1, %r14d
	jne	LBB0_12
## %bb.11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$2, (%rax)
	jmp	LBB0_18
LBB0_12:
	cmpl	$1, %r14d
	sete	%cl
	andb	%cl, %r10b
	cmpb	$1, %r10b
	jne	LBB0_14
## %bb.13:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$3, (%rax)
	jmp	LBB0_18
LBB0_14:
	cmpl	%eax, %r8d
	jne	LBB0_19
## %bb.15:
	subl	%edi, %edx
	cmpl	$1, %edx
	jne	LBB0_19
## %bb.16:
	cmpl	%r11d, %r9d
	jne	LBB0_19
## %bb.17:
	movslq	%r9d, %rax
	movq	(%rbx), %rsi
	subq	%rax, %rsi
	movq	8(%rbx), %rdi
	subq	%r8, %rdi
	callq	_atan2f
	movl	%eax, %edi
	callq	_DEGREES
	movl	%eax, %edi
	callq	_roundf
                                        ## kill: def $eax killed $eax def $rax
	leal	360(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	movl	%ecx, %eax
	addl	$45, %eax
	cltq
	imulq	$-1240768329, %rax, %rax        ## imm = 0xB60B60B7
	shrq	$32, %rax
	addl	%ecx, %eax
	addl	$45, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	sarl	$6, %eax
	leal	(%rax,%rcx), %edx
	addl	$3, %edx
                                        ## kill: def $eax killed $eax killed $rax
	addl	%ecx, %eax
	cmovnsl	%eax, %edx
	andl	$-4, %edx
	subl	%edx, %eax
	addl	$4, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_18:
	movl	$1, %r15d
LBB0_19:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hit_test_face                  ; -- Begin function hit_test_face
	.p2align	2
_hit_test_face:                         ; @hit_test_face
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	ldp	w4, w2, [x0, #20]
	ldp	x3, x1, [x0]
	ldr	w5, [x0, #16]
	str	x21, [sp]
	mov	w0, #0
	mov	x6, x23
	mov	x7, x22
	bl	_hit_test
	bl	_is_obstacle
	cbz	x0, LBB0_20
; %bb.1:
	ldp	w4, w2, [x20, #20]
	ldp	x3, x1, [x20]
	ldr	w5, [x20, #16]
	add	x8, sp, #20
	str	x8, [sp]
	add	x6, sp, #28
	add	x7, sp, #24
	mov	w0, #1
	bl	_hit_test
	ldp	w10, w8, [sp, #24]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	ldr	w12, [x23]
	sub	w15, w8, w12
	ldr	w11, [x22]
	ldr	w14, [sp, #20]
	ldr	w9, [x21]
	cmn	w15, #1
	b.ne	LBB0_5
; %bb.2:
	cmp	w10, w11
	b.ne	LBB0_5
; %bb.3:
	cmp	w14, w9
	b.ne	LBB0_5
; %bb.4:
	str	wzr, [x19]
	b	LBB0_19
LBB0_5:
	sxtw	x13, w14
	cmp	w15, #1
	b.ne	LBB0_9
; %bb.6:
	cmp	w10, w11
	b.ne	LBB0_9
; %bb.7:
	cmp	w13, w9
	b.ne	LBB0_9
; %bb.8:
	mov	w0, #1
	str	w0, [x19]
	b	LBB0_20
LBB0_9:
	sub	w14, w14, w9
	cmp	w8, w12
	ccmp	w10, w11, #0, eq
	cset	w15, eq
	b.ne	LBB0_12
; %bb.10:
	cmn	w14, #1
	b.ne	LBB0_12
; %bb.11:
	mov	w8, #2
	b	LBB0_18
LBB0_12:
	cmp	w14, #1
	cset	w14, eq
	and	w14, w15, w14
	cmp	w14, #1
	b.ne	LBB0_14
; %bb.13:
	mov	w8, #3
	b	LBB0_18
LBB0_14:
	cmp	w8, w12
	b.ne	LBB0_21
; %bb.15:
	sub	w10, w10, w11
	cmp	w10, #1
	b.ne	LBB0_21
; %bb.16:
	cmp	w13, w9
	b.ne	LBB0_21
; %bb.17:
	ldp	x10, x9, [x20]
	sub	x0, x9, x8
	sub	x1, x10, x13
	bl	_atan2f
	bl	_DEGREES
	bl	_roundf
	add	w8, w0, #360
	cmp	w0, #0
	csel	w8, w8, w0, lt
	add	w8, w8, #45
	mov	w9, #24759
	movk	w9, #46603, lsl #16
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w8, w9, w8
	asr	w9, w8, #6
	add	w8, w9, w8, lsr #31
	and	w9, w8, #0x3
	negs	w8, w8
	and	w8, w8, #0x3
	csneg	w8, w9, w8, mi
	add	w8, w8, #4
LBB0_18:
	str	w8, [x19]
LBB0_19:
	mov	w0, #1
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_21:
	mov	w0, #0
	b	LBB0_20
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
