	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_spine_index
_get_spine_index:                       ## @get_spine_index
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_is_spine_9288
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_is_spine_2012
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movl	(%rbx), %eax
	movl	4(%rbx), %ecx
	leal	(%rax,%rax,2), %eax
	addl	%ecx, %eax
	addl	$-3, %eax
LBB0_7:
	testl	%eax, %eax
	jle	LBB0_9
## %bb.8:
	movq	_SPINES_MAX_NUM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_10
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	_IBND_ERROR
	movl	$-1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	callq	_is_spine_4700
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_is_spine_4700x2
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movl	(%rbx), %eax
	movl	4(%rbx), %ecx
	leal	(%rcx,%rax,2), %eax
	addl	$-2, %eax
	jmp	LBB0_7
LBB0_6:
	movl	(%rbx), %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_SPINES_MAX_NUM,4,2             ## @SPINES_MAX_NUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Internal error\n"

	.no_dead_strip	_get_spine_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_spine_index
_get_spine_index:                       ; @get_spine_index
	.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
	bl	_is_spine_9288
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_is_spine_2012
	cbz	x0, LBB0_6
LBB0_2:
	ldp	w8, w9, [x19]
	add	w8, w8, w8, lsl #1
	add	w8, w8, w9
	sub	w0, w8, #3
LBB0_3:
Lloh0:
	adrp	x8, _SPINES_MAX_NUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPINES_MAX_NUM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, #1
	ccmp	w0, w8, #0, ge
	b.le	LBB0_5
; %bb.4:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IBND_ERROR
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x19
	bl	_is_spine_4700
	cbnz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_is_spine_4700x2
	cbz	x0, LBB0_9
LBB0_8:
	ldp	w8, w9, [x19]
	add	w8, w9, w8, lsl #1
	sub	w0, w8, #2
	b	LBB0_3
LBB0_9:
	ldr	w0, [x19]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SPINES_MAX_NUM,4,2             ; @SPINES_MAX_NUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Internal error\n"

	.no_dead_strip	_get_spine_index
.subsections_via_symbols
