	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_RecordDemo                   ## -- Begin function G_RecordDemo
	.p2align	4, 0x90
_G_RecordDemo:                          ## @G_RecordDemo
	.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, %rsi
	movq	_usergame@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_demoname@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_strcpy
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcat
	leaq	L_.str.1(%rip), %rdi
	callq	_M_CheckParm
	movl	$131072, %ebx                   ## imm = 0x20000
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	_myargc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	decl	%ecx
	cmpl	%ecx, %eax
	jge	LBB0_3
## %bb.2:
	movq	_myargv@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movl	4(%rcx,%rax,4), %edi
	callq	_atoi
	movl	%eax, %ebx
	shll	$10, %ebx
LBB0_3:
	movq	_PU_STATIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_Z_Malloc
	movq	_demobuffer@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movslq	%ebx, %rcx
	addq	%rax, %rcx
	movq	_demoend@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
	movq	_demorecording@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_usergame,4,2                   ## @usergame
	.comm	_demoname,4,2                   ## @demoname
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".lmp"

L_.str.1:                               ## @.str.1
	.asciz	"-maxdemo"

	.comm	_myargc,4,2                     ## @myargc
	.comm	_myargv,8,3                     ## @myargv
	.comm	_PU_STATIC,4,2                  ## @PU_STATIC
	.comm	_demobuffer,8,3                 ## @demobuffer
	.comm	_demoend,8,3                    ## @demoend
	.comm	_demorecording,4,2              ## @demorecording
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_RecordDemo                   ; -- Begin function G_RecordDemo
	.p2align	2
_G_RecordDemo:                          ; @G_RecordDemo
	.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	x1, x0
Lloh0:
	adrp	x8, _usergame@GOTPAGE
Lloh1:
	ldr	x8, [x8, _usergame@GOTPAGEOFF]
Lloh2:
	str	wzr, [x8]
Lloh3:
	adrp	x19, _demoname@GOTPAGE
Lloh4:
	ldr	x19, [x19, _demoname@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_strcpy
	ldr	w0, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcat
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_M_CheckParm
	cbz	w0, LBB0_3
; %bb.1:
Lloh9:
	adrp	x8, _myargc@GOTPAGE
Lloh10:
	ldr	x8, [x8, _myargc@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	sub	w8, w8, #1
	cmp	w0, w8
	b.ge	LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _myargv@GOTPAGE
Lloh13:
	ldr	x8, [x8, _myargv@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	add	w9, w0, #1
	ldr	w0, [x8, w9, sxtw #2]
	bl	_atoi
	lsl	w19, w0, #10
	b	LBB0_4
LBB0_3:
	mov	w19, #131072
LBB0_4:
Lloh15:
	adrp	x8, _PU_STATIC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PU_STATIC@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_Z_Malloc
Lloh18:
	adrp	x8, _demobuffer@GOTPAGE
Lloh19:
	ldr	x8, [x8, _demobuffer@GOTPAGEOFF]
Lloh20:
	str	x0, [x8]
Lloh21:
	adrp	x8, _demoend@GOTPAGE
Lloh22:
	ldr	x8, [x8, _demoend@GOTPAGEOFF]
	add	x9, x0, w19, sxtw
Lloh23:
	str	x9, [x8]
Lloh24:
	adrp	x8, _demorecording@GOTPAGE
Lloh25:
	ldr	x8, [x8, _demorecording@GOTPAGEOFF]
	mov	w9, #1
Lloh26:
	str	w9, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_usergame,4,2                   ; @usergame
	.comm	_demoname,4,2                   ; @demoname
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".lmp"

l_.str.1:                               ; @.str.1
	.asciz	"-maxdemo"

	.comm	_myargc,4,2                     ; @myargc
	.comm	_myargv,8,3                     ; @myargv
	.comm	_PU_STATIC,4,2                  ; @PU_STATIC
	.comm	_demobuffer,8,3                 ; @demobuffer
	.comm	_demoend,8,3                    ; @demoend
	.comm	_demorecording,4,2              ; @demorecording
.subsections_via_symbols
