	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_case_0x30c
_handle_case_0x30c:                     ## @handle_case_0x30c
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r14
	leal	1(%rbx), %edi
	movl	12(%r14), %esi
	callq	_canonicalize
	movl	%eax, %r15d
	leal	-1(%r12), %edi
	movl	8(%r14), %esi
	callq	_canonicalize
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	leal	1(%r12), %edi
	movl	8(%r14), %esi
	callq	_canonicalize
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_safe_y_perpendicular
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movslq	%ebx, %rsi
	movslq	%r12d, %rdx
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movslq	%r13d, %r13
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movslq	%r15d, %r8
	movslq	-56(%rbp), %rbx                 ## 4-byte Folded Reload
	testq	%rax, %rax
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rax
	movq	(%rax,%r8,8), %rcx
	movq	(%rcx,%rdx,8), %rcx
	movl	(%rcx,%r13,4), %edi
	movq	(%rax,%rsi,8), %rax
	movq	(%rax,%rdx,8), %rcx
	movq	%rsi, %r15
	movl	(%rcx,%r13,4), %esi
	movq	(%rax,%rbx,8), %rax
	movl	(%rax,%r13,4), %edx
	movq	%r8, %rbx
	callq	_tfind_2d_perpendicular
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movl	%eax, %r8d
	callq	_install_tswitch
	movq	%rbx, %r8
	movq	%r15, %rsi
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_5
LBB0_2:
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	$780, %esi                      ## imm = 0x30C
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%r12d, %ecx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%r8, %r15
	movl	%ebx, %r8d
	movl	%edx, %r9d
	pushq	%rbx
	pushq	%r12
	callq	_log_no_perp
	addq	$16, %rsp
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	movl	%ebx, %ecx
	callq	_safe_y_perpendicular
	movq	%r15, %rsi
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%r14), %rax
	movq	(%rax,%rcx,8), %rcx
	movq	(%rcx,%r15,8), %rcx
	movl	(%rcx,%r13,4), %edi
	movq	(%rax,%rsi,8), %rax
	movq	(%rax,%r15,8), %rcx
	movl	(%rcx,%r13,4), %esi
	movq	(%rax,%rdx,8), %rax
	movl	(%rax,%r13,4), %edx
	callq	_tfind_2d_perpendicular
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%eax, %r8d
	callq	_install_tswitch
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_5
LBB0_4:
	movq	%r14, %rdi
	movl	$780, %esi                      ## imm = 0x30C
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r12d, %ecx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	%r8
	pushq	%r12
	callq	_log_no_perp
	addq	$16, %rsp
	xorl	%eax, %eax
LBB0_5:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_handle_case_0x30c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_case_0x30c
_handle_case_0x30c:                     ; @handle_case_0x30c
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	add	w0, w1, #1
	ldr	w1, [x22, #12]
	bl	_canonicalize
	mov	x23, x0
	sub	w0, w20, #1
	ldr	w1, [x22, #8]
	bl	_canonicalize
	mov	x25, x0
	add	w0, w20, #1
	ldr	w1, [x22, #8]
	bl	_canonicalize
	mov	x24, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_safe_y_perpendicular
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x22]
	ldr	x9, [x8, w23, sxtw #3]
	sbfiz	x10, x20, #3, #32
	ldr	x9, [x9, x10]
	sbfiz	x11, x19, #2, #32
	ldr	w0, [x9, x11]
	ldr	x8, [x8, w21, sxtw #3]
	ldr	x9, [x8, x10]
	ldr	w1, [x9, x11]
	ldr	x8, [x8, w25, sxtw #3]
	ldr	w2, [x8, x11]
	bl	_tfind_2d_perpendicular
	mov	x4, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x24
	mov	x3, x19
	bl	_install_tswitch
	cbnz	x0, LBB0_4
LBB0_2:
	mov	x0, x22
	mov	w1, #780
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	mov	x5, x21
	mov	x6, x20
	mov	x7, x19
	bl	_log_no_perp
	mov	x0, x22
	mov	x1, x23
	mov	x2, x20
	mov	x3, x19
	bl	_safe_y_perpendicular
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x22]
	ldr	x9, [x8, w21, sxtw #3]
	mov	x10, x20
	sbfiz	x10, x10, #3, #32
	ldr	x9, [x9, x10]
	mov	x11, x19
	sbfiz	x11, x11, #2, #32
	ldr	w0, [x9, x11]
	ldr	x8, [x8, w23, sxtw #3]
	ldr	x9, [x8, x10]
	ldr	w1, [x9, x11]
	ldr	x8, [x8, w25, sxtw #3]
	ldr	w2, [x8, x11]
	bl	_tfind_2d_perpendicular
	mov	x4, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	mov	x3, x19
	bl	_install_tswitch
	cbz	x0, LBB0_5
LBB0_4:
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	mov	x0, x22
	mov	w1, #780
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	mov	x5, x23
	mov	x6, x20
	mov	x7, x19
	bl	_log_no_perp
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_handle_case_0x30c
.subsections_via_symbols
