	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CM_ClipHandleToModel           ## -- Begin function CM_ClipHandleToModel
	.p2align	4, 0x90
_CM_ClipHandleToModel:                  ## @CM_ClipHandleToModel
	.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, %rbx
	movq	_cm@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	%rdi, %rdx
	jbe	LBB0_2
## %bb.1:
	shlq	$2, %rbx
	addq	8(%rax), %rbx
	jmp	LBB0_7
LBB0_2:
	movq	_BOX_MODEL_HANDLE@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_box_model@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
LBB0_4:
	movq	_MAX_SUBMODELS@GOTPCREL(%rip), %r14
	movq	(%r14), %r8
	cmpq	%rbx, %r8
	jbe	LBB0_6
## %bb.5:
	movq	_ERR_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_Com_Error
	movq	(%r14), %r8
LBB0_6:
	movq	_ERR_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	%rbx, %r8
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r8, %rdx
	xorl	%eax, %eax
	callq	_Com_Error
LBB0_7:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_DROP,4,2                   ## @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CM_ClipHandleToModel: bad handle %i"

	.comm	_cm,16,3                        ## @cm
	.comm	_BOX_MODEL_HANDLE,8,3           ## @BOX_MODEL_HANDLE
	.comm	_box_model,4,2                  ## @box_model
	.comm	_MAX_SUBMODELS,8,3              ## @MAX_SUBMODELS
L_.str.1:                               ## @.str.1
	.asciz	"CM_ClipHandleToModel: bad handle %i < %i < %i"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CM_ClipHandleToModel           ; -- Begin function CM_ClipHandleToModel
	.p2align	2
_CM_ClipHandleToModel:                  ; @CM_ClipHandleToModel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _cm@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cm@GOTPAGEOFF]
	ldr	x2, [x8]
	cmp	x2, x0
	b.ls	LBB0_2
; %bb.1:
	ldr	x8, [x8, #8]
	add	x0, x8, x19, lsl #2
	b	LBB0_7
LBB0_2:
Lloh2:
	adrp	x8, _BOX_MODEL_HANDLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BOX_MODEL_HANDLE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_4
; %bb.3:
Lloh5:
	adrp	x0, _box_model@GOTPAGE
Lloh6:
	ldr	x0, [x0, _box_model@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh7:
	adrp	x21, _MAX_SUBMODELS@GOTPAGE
Lloh8:
	ldr	x21, [x21, _MAX_SUBMODELS@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh9:
	adrp	x20, _ERR_DROP@GOTPAGE
Lloh10:
	ldr	x20, [x20, _ERR_DROP@GOTPAGEOFF]
	cmp	x8, x19
	b.ls	LBB0_6
; %bb.5:
	ldr	w0, [x20]
	stp	x19, x8, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_Com_Error
	ldr	x8, [x21]
LBB0_6:
	ldr	w0, [x20]
	add	x2, x8, x19
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_Com_Error
	mov	x0, #0
LBB0_7:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_DROP,4,2                   ; @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CM_ClipHandleToModel: bad handle %i"

	.comm	_cm,16,3                        ; @cm
	.comm	_BOX_MODEL_HANDLE,8,3           ; @BOX_MODEL_HANDLE
	.comm	_box_model,4,2                  ; @box_model
	.comm	_MAX_SUBMODELS,8,3              ; @MAX_SUBMODELS
l_.str.1:                               ; @.str.1
	.asciz	"CM_ClipHandleToModel: bad handle %i < %i < %i"

.subsections_via_symbols
