	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_RegisterDMLab                ## -- Begin function R_RegisterDMLab
	.p2align	4, 0x90
_R_RegisterDMLab:                       ## @R_RegisterDMLab
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_QPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	addl	$20, %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_MD3_MAX_LODS@GOTPCREL(%rip), %rax
	movq	_MOD_BAD@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rax)
	jle	LBB0_1
## %bb.2:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rcx
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_Com_sprintf
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_Com_sprintf
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	leaq	-64(%rbp), %rsi
	callq	_R_DMLabToMD3
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rdx
	movl	(%rdx), %ecx
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	%rbx, %r8
	leaq	L_.str.2(%rip), %r9
	callq	_R_LoadMD3
	movq	%rax, %r12
	movq	-64(%rbp), %rdi
	movq	_ri@GOTPCREL(%rip), %rax
	callq	*8(%rax)
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	testq	%r12, %r12
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	8(%r14)
	incl	%r13d
	movq	_MD3_MAX_LODS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jl	LBB0_3
	jmp	LBB0_10
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_11:
	testl	%r13d, %r13d
	je	LBB0_12
LBB0_10:
	movl	4(%r14), %eax
	movq	_MOD_MESH@GOTPCREL(%rip), %rcx
LBB0_13:
	movl	(%rcx), %ecx
	movl	%ecx, (%r14)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%eax, %eax
	movq	_MOD_BAD@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_QPATH,4,2                  ## @MAX_QPATH
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_MD3_MAX_LODS,4,2               ## @MD3_MAX_LODS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s_%d"

L_.str.1:                               ## @.str.1
	.asciz	"%s"

L_.str.2:                               ## @.str.2
	.space	1

	.comm	_ri,16,3                        ## @ri
	.comm	_MOD_MESH,4,2                   ## @MOD_MESH
	.comm	_MOD_BAD,4,2                    ## @MOD_BAD
	.comm	_PRINT_WARNING,4,2              ## @PRINT_WARNING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_RegisterDMLab                ; -- Begin function R_RegisterDMLab
	.p2align	2
_R_RegisterDMLab:                       ; @R_RegisterDMLab
	.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, #16
	mov	x19, x1
	mov	x20, 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_QPATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_QPATH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w21, w8, #20
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
Lloh8:
	adrp	x28, _MD3_MAX_LODS@GOTPAGE
Lloh9:
	ldr	x28, [x28, _MD3_MAX_LODS@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	w23, #0
Lloh10:
	adrp	x8, _qfalse@GOTPAGE
Lloh11:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh12:
	ldr	x27, [x8]
Lloh13:
	adrp	x25, l_.str.2@PAGE
Lloh14:
	add	x25, x25, l_.str.2@PAGEOFF
Lloh15:
	adrp	x24, _ri@GOTPAGE
Lloh16:
	ldr	x24, [x24, _ri@GOTPAGEOFF]
Lloh17:
	adrp	x26, l_.str@PAGE
Lloh18:
	add	x26, x26, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w23, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x23, [sp, #-16]!
	mov	x0, x22
	mov	x1, x21
	mov	x2, x26
	mov	x3, x20
	bl	_Com_sprintf
	add	sp, sp, #16
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	mov	x1, x21
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, x20
	bl	_Com_sprintf
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	sub	x1, x29, #96
	mov	x0, x20
	bl	_R_DMLabToMD3
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldur	x2, [x29, #-96]
	ldr	w3, [x2]
	mov	x0, x19
	mov	x1, x23
	mov	x4, x20
	mov	x5, x25
	bl	_R_LoadMD3
	mov	x27, x0
	ldr	x8, [x24, #8]
	ldur	x0, [x29, #-96]
	blr	x8
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	x27, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	add	w23, w23, #1
	ldr	w8, [x28]
	cmp	w23, w8
	b.lt	LBB0_2
	b	LBB0_10
LBB0_9:
	cbz	w23, LBB0_11
LBB0_10:
	ldr	w0, [x19, #4]
Lloh21:
	adrp	x8, _MOD_MESH@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MOD_MESH@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
	mov	w0, #0
Lloh23:
	adrp	x8, _MOD_BAD@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MOD_BAD@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	str	w8, [x19]
	ldur	x8, [x29, #-88]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	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_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_QPATH,4,2                  ; @MAX_QPATH
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_MD3_MAX_LODS,4,2               ; @MD3_MAX_LODS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s_%d"

l_.str.1:                               ; @.str.1
	.asciz	"%s"

l_.str.2:                               ; @.str.2
	.space	1

	.comm	_ri,16,3                        ; @ri
	.comm	_MOD_MESH,4,2                   ; @MOD_MESH
	.comm	_MOD_BAD,4,2                    ; @MOD_BAD
	.comm	_PRINT_WARNING,4,2              ; @PRINT_WARNING
.subsections_via_symbols
