	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CMod_LoadPatches               ## -- Begin function CMod_LoadPatches
	.p2align	4, 0x90
_CMod_LoadPatches:                      ## @CMod_LoadPatches
	.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
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_PATCH_VERTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_cmod_base@GOTPCREL(%rip), %rax
	movq	8(%r15), %r13
	addq	(%rax), %r13
	movslq	(%r15), %rax
	movabsq	$-3689348814741910323, %r14     ## imm = 0xCCCCCCCCCCCCCCCD
	movq	%rax, %rcx
	imulq	%r14, %rcx
	rorq	$2, %rcx
	movabsq	$922337203685477581, %rdx       ## imm = 0xCCCCCCCCCCCCCCD
	cmpq	%rdx, %rcx
	jb	LBB0_2
## %bb.1:
	movq	_ERR_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_Com_Error
	movslq	(%r15), %rax
LBB0_2:
	mulq	%r14
	movq	%rdx, %r15
	shrq	$4, %r15
	movq	_cm@GOTPCREL(%rip), %r14
	movl	%r15d, (%r14)
	leal	(,%r15,8), %edi
	movq	_h_high@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_Hunk_Alloc
	movq	%rax, 16(%r14)
	movq	8(%r12), %rax
	movq	_cmod_base@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testb	$7, (%r12)
	je	LBB0_4
## %bb.3:
	movq	_ERR_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_Com_Error
LBB0_4:
	testl	%r15d, %r15d
	jle	LBB0_14
## %bb.5:
	movl	%r15d, %r15d
	xorl	%r12d, %r12d
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %edi
	callq	_LittleLong
	movq	_cm@GOTPCREL(%rip), %r14
	movq	8(%r14), %rcx
	cltq
	movl	4(%rcx,%rax,8), %edx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	%edx, 8(%r15)
	movl	(%rcx,%rax,8), %eax
	movl	%eax, 4(%r15)
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	%rbx, %rdx
	callq	_CM_GeneratePatchCollide
	movl	%eax, (%r15)
	movq	-72(%rbp), %r15                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r12
	addq	$20, %r13
	cmpq	%r15, %r12
	je	LBB0_14
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movl	16(%r13), %edi
	callq	_LittleLong
	movq	_MST_PATCH@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_h_high@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edi
	callq	_Hunk_Alloc
	movq	16(%r14), %rcx
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, (%rcx,%r12,8)
	movl	12(%r13), %edi
	callq	_LittleLong
	movl	%eax, %r15d
	movl	8(%r13), %edi
	callq	_LittleLong
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%eax, %r14d
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	imull	%r15d, %r14d
	movq	_MAX_PATCH_VERTS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jle	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_ERR_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_Com_Error
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movl	4(%r13), %edi
	callq	_LittleLong
	testl	%r14d, %r14d
	jle	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	cltq
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %r13
	movl	%r14d, %r15d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13,%r14,8), %rax
	movl	(%rax), %edi
	callq	_LittleFloat
	movq	(%rbx,%r14,8), %rcx
	movl	%eax, (%rcx)
	movq	(%r13,%r14,8), %rax
	movl	4(%rax), %edi
	callq	_LittleFloat
	movq	(%rbx,%r14,8), %rcx
	movl	%eax, 4(%rcx)
	movq	(%r13,%r14,8), %rax
	movl	8(%rax), %edi
	callq	_LittleFloat
	movq	(%rbx,%r14,8), %rcx
	movl	%eax, 8(%rcx)
	incq	%r14
	cmpq	%r14, %r15
	jne	LBB0_11
	jmp	LBB0_12
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PATCH_VERTS,4,2            ## @MAX_PATCH_VERTS
	.comm	_cmod_base,8,3                  ## @cmod_base
	.comm	_ERR_DROP,4,2                   ## @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MOD_LoadBmodel: funny lump size"

	.comm	_cm,24,3                        ## @cm
	.comm	_h_high,4,2                     ## @h_high
	.comm	_MST_PATCH,4,2                  ## @MST_PATCH
L_.str.1:                               ## @.str.1
	.asciz	"ParseMesh: MAX_PATCH_VERTS"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CMod_LoadPatches               ; -- Begin function CMod_LoadPatches
	.p2align	2
_CMod_LoadPatches:                      ; @CMod_LoadPatches
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAX_PATCH_VERTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_PATCH_VERTS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x8, x9, x8
	stur	x8, [x29, #-96]                 ; 8-byte Folded Spill
	mov	sp, x8
Lloh8:
	adrp	x19, _cmod_base@GOTPAGE
Lloh9:
	ldr	x19, [x19, _cmod_base@GOTPAGEOFF]
	ldr	x22, [x19]
	ldr	x23, [x0, #8]
	ldrsw	x8, [x0]
	mov	x24, #-3689348814741910324
	movk	x24, #52429
	mul	x9, x8, x24
	ror	x9, x9, #2
	mov	x10, #-3689348814741910324
	movk	x10, #52429
	movk	x10, #3276, lsl #48
Lloh10:
	adrp	x25, _ERR_DROP@GOTPAGE
Lloh11:
	ldr	x25, [x25, _ERR_DROP@GOTPAGEOFF]
	cmp	x9, x10
	b.lo	LBB0_2
; %bb.1:
	ldr	w0, [x25]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_Com_Error
	ldrsw	x8, [x21]
LBB0_2:
	umulh	x8, x8, x24
Lloh14:
	adrp	x26, _cm@GOTPAGE
Lloh15:
	ldr	x26, [x26, _cm@GOTPAGEOFF]
	lsr	x21, x8, #4
	str	w21, [x26]
	lsl	w0, w21, #3
Lloh16:
	adrp	x8, _h_high@GOTPAGE
Lloh17:
	ldr	x8, [x8, _h_high@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_Hunk_Alloc
	str	x0, [x26, #16]
	ldr	x19, [x19]
	ldr	x24, [x20, #8]
	ldrb	w8, [x20]
	tst	w8, #0x7
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x25]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_Com_Error
LBB0_4:
	cmp	w21, #1
	b.lt	LBB0_14
; %bb.5:
	mov	x28, #0
	add	x25, x23, x22
	add	x8, x24, x19
	stur	x8, [x29, #-112]                ; 8-byte Folded Spill
	and	x19, x21, #0xffffffff
Lloh21:
	adrp	x24, _MST_PATCH@GOTPAGE
Lloh22:
	ldr	x24, [x24, _MST_PATCH@GOTPAGEOFF]
	stur	x19, [x29, #-104]               ; 8-byte Folded Spill
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x25]
	bl	_LittleLong
	mov	x26, x27
	ldr	x8, [x27, #8]
	ldr	d0, [x8, w0, sxtw #3]
	stur	d0, [x21, #4]
	mov	x0, x22
	mov	x1, x23
	ldur	x2, [x29, #-96]                 ; 8-byte Folded Reload
	bl	_CM_GeneratePatchCollide
	str	w0, [x21]
	ldur	x19, [x29, #-104]               ; 8-byte Folded Reload
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x28, x28, #1
	add	x25, x25, #20
	cmp	x28, x19
	b.eq	LBB0_14
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldr	w0, [x25, #16]
	bl	_LittleLong
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh23:
	adrp	x8, _h_high@GOTPAGE
Lloh24:
	ldr	x8, [x8, _h_high@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	w0, #12
	bl	_Hunk_Alloc
	mov	x21, x0
	mov	x27, x26
	ldr	x8, [x26, #16]
	str	x0, [x8, x28, lsl #3]
	ldr	w0, [x25, #12]
	bl	_LittleLong
	mov	x22, x0
	ldr	w0, [x25, #8]
	bl	_LittleLong
	mov	x23, x0
	mul	w20, w0, w22
Lloh26:
	adrp	x8, _MAX_PATCH_VERTS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MAX_PATCH_VERTS@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmp	w20, w8
	b.le	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh29:
	adrp	x8, _ERR_DROP@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ERR_DROP@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x1, l_.str.1@PAGE
Lloh33:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_Com_Error
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x25, #4]
	bl	_LittleLong
	cmp	w20, #1
	b.lt	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	add	x26, x8, w0, sxtw #3
	ldur	x19, [x29, #-96]                ; 8-byte Folded Reload
LBB0_13:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x26]
	ldr	w0, [x8]
	bl	_LittleFloat
	ldr	x8, [x19]
	str	w0, [x8]
	ldr	x8, [x26]
	ldr	w0, [x8, #4]
	bl	_LittleFloat
	ldr	x8, [x19]
	str	w0, [x8, #4]
	ldr	x8, [x26], #8
	ldr	w0, [x8, #8]
	bl	_LittleFloat
	ldr	x8, [x19], #8
	str	w0, [x8, #8]
	subs	x20, x20, #1
	b.ne	LBB0_13
	b	LBB0_6
LBB0_14:
	ldur	x8, [x29, #-88]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	sub	sp, x29, #80
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PATCH_VERTS,4,2            ; @MAX_PATCH_VERTS
	.comm	_cmod_base,8,3                  ; @cmod_base
	.comm	_ERR_DROP,4,2                   ; @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MOD_LoadBmodel: funny lump size"

	.comm	_cm,24,3                        ; @cm
	.comm	_h_high,4,2                     ; @h_high
	.comm	_MST_PATCH,4,2                  ; @MST_PATCH
l_.str.1:                               ; @.str.1
	.asciz	"ParseMesh: MAX_PATCH_VERTS"

.subsections_via_symbols
