	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MakeMovieStateName             ## -- Begin function MakeMovieStateName
	.p2align	4, 0x90
_MakeMovieStateName:                    ## @MakeMovieStateName
	.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	_Movie@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_Recording@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_Playback@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_2:
	movq	%rbx, %rdi
	callq	_strlen
	addl	$6, %eax
	movslq	%eax, %r14
	movq	_MakeMovieStateName.retbuf(%rip), %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_malloc
	movq	%rax, _MakeMovieStateName.retbuf(%rip)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	movq	%rbx, %rdx
	callq	_sprintf
	movq	_MakeMovieStateName.retbuf(%rip), %rbx
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_MakeMovieStateName.retbuf,8,3 ## @MakeMovieStateName.retbuf
	.comm	_Movie,8,3                      ## @Movie
	.comm	_Recording,8,3                  ## @Recording
	.comm	_Playback,8,3                   ## @Playback
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%smovie"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MakeMovieStateName             ; -- Begin function MakeMovieStateName
	.p2align	2
_MakeMovieStateName:                    ; @MakeMovieStateName
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, _Movie@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Movie@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _Recording@GOTPAGE
Lloh4:
	ldr	x9, [x9, _Recording@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _Playback@GOTPAGE
Lloh7:
	ldr	x10, [x10, _Playback@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_strlen
	add	w8, w0, #6
	sxtw	x20, w8
	adrp	x21, _MakeMovieStateName.retbuf@PAGE
	ldr	x0, [x21, _MakeMovieStateName.retbuf@PAGEOFF]
	bl	_free
	mov	x0, x20
	bl	_malloc
	str	x0, [x21, _MakeMovieStateName.retbuf@PAGEOFF]
	cbz	x0, LBB0_3
; %bb.2:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_sprintf
	ldr	x19, [x21, _MakeMovieStateName.retbuf@PAGEOFF]
	b	LBB0_4
LBB0_3:
	mov	x19, #0
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_MakeMovieStateName.retbuf,8,3 ; @MakeMovieStateName.retbuf
	.comm	_Movie,8,3                      ; @Movie
	.comm	_Recording,8,3                  ; @Recording
	.comm	_Playback,8,3                   ; @Playback
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%smovie"

.subsections_via_symbols
