	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function classify_mesh_type
_classify_mesh_type:                    ## @classify_mesh_type
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	8(%rdi), %rbx
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %r12
	movq	%rbx, %rdi
	callq	_OSM_LOG_ENTER
	movq	(%r12), %rax
	cmpl	$0, 8(%rax)
	je	LBB0_10
## %bb.1:
	movq	_mesh_info@GOTPCREL(%rip), %r15
	movq	(%r15), %r13
	cmpl	$-1, 12(%r13)
	je	LBB0_10
## %bb.2:
	movl	16(%r13), %esi
	movl	20(%r13), %edi
	movq	%r12, %rdx
	callq	_poly_diff
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %r14d
	movl	$32, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %r13
	cmpl	$-1, -8(%r13,%rbx)
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	-4(%r13,%rbx), %esi
	movl	(%r13,%rbx), %edi
	movq	%r12, %rdx
	callq	_poly_diff
	incl	%r14d
	addq	$12, %rbx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	addq	%rbx, %r13
	addq	$-20, %r13
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_3:
	addq	$12, %r13
	movl	$1, %r14d
LBB0_6:
	movq	(%r12), %rax
	movl	%r14d, (%rax)
	movl	(%r13), %ecx
	movl	%ecx, 4(%rax)
	jmp	LBB0_11
LBB0_9:
	movq	(%r12), %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_10:
	movl	$0, (%rax)
LBB0_11:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_OSM_LOG_EXIT                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mesh_info,8,3                  ## @mesh_info
	.no_dead_strip	_classify_mesh_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function classify_mesh_type
_classify_mesh_type:                    ; @classify_mesh_type
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	ldp	x8, x19, [x0]
	ldr	x20, [x8, w1, sxtw #3]
	mov	x0, x19
	bl	_OSM_LOG_ENTER
	ldr	x8, [x20]
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_10
; %bb.1:
Lloh0:
	adrp	x21, _mesh_info@GOTPAGE
Lloh1:
	ldr	x21, [x21, _mesh_info@GOTPAGEOFF]
	ldr	x9, [x21]
	mov	x23, x9
	ldr	w10, [x23, #12]!
	cmn	w10, #1
	b.eq	LBB0_10
; %bb.2:
	ldp	w1, w0, [x9, #16]
	mov	x2, x20
	bl	_poly_diff
	cbz	x0, LBB0_7
; %bb.3:
	mov	x23, #0
	mov	w22, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x21]
	add	x8, x24, x23
	ldr	w9, [x8, #24]
	cmn	w9, #1
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w1, w0, [x8, #28]
	mov	x2, x20
	bl	_poly_diff
	add	w22, w22, #1
	add	x23, x23, #12
	cbnz	x0, LBB0_4
; %bb.6:
	add	x8, x24, x23
	add	x23, x8, #12
	b	LBB0_8
LBB0_7:
	mov	w22, #1
LBB0_8:
	ldr	x8, [x20]
	ldr	w9, [x23]
	stp	w22, w9, [x8]
	b	LBB0_11
LBB0_9:
	ldr	x8, [x20]
LBB0_10:
	str	wzr, [x8]
LBB0_11:
	mov	x0, x19
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_OSM_LOG_EXIT
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mesh_info,8,3                  ; @mesh_info
	.no_dead_strip	_classify_mesh_type
.subsections_via_symbols
