	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function runloop_check_movie_init
_runloop_check_movie_init:              ## @runloop_check_movie_init
	.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
	movl	$24608, %eax                    ## imm = 0x6020
	callq	____chkstk_darwin
	subq	%rax, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_configuration_settings@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movb	$0, -24608(%rbp)
	movb	$0, -16416(%rbp)
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_configuration_set_uint
	movq	(%rbx), %r8
	movq	_bsv_movie_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%r8, %r8
	jle	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdx
	leaq	-24608(%rbp), %rdi
	movl	$8192, %esi                     ## imm = 0x2000
	callq	_snprintf
	jmp	LBB0_3
LBB0_2:
	leaq	-24608(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%rcx, %rsi
	movl	$8192, %edx                     ## imm = 0x2000
	callq	_strlcpy
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	$8192, %edx                     ## imm = 0x2000
	callq	_strlcat
LBB0_3:
	movq	_MSG_STARTING_MOVIE_RECORD_TO@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_msg_hash_to_str
	leaq	L_.str.2(%rip), %rdx
	leaq	-16416(%rbp), %rdi
	leaq	-24608(%rbp), %rbx
	movl	$16384, %esi                    ## imm = 0x4000
	movq	%rax, %rcx
	movq	%rbx, %r8
	callq	_snprintf
	movq	_RARCH_MOVIE_RECORD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bsv_movie_init_handle
	movq	_bsv_movie_state_handle@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.5:
	movq	_MESSAGE_QUEUE_ICON_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MESSAGE_QUEUE_CATEGORY_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	leaq	-16416(%rbp), %rdi
	movl	$1, %ebx
	movl	$2, %esi
	movl	$180, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_runloop_msg_queue_push
	movl	(%r14), %edi
	callq	_msg_hash_to_str
	leaq	L_.str.4(%rip), %rdi
	leaq	-24608(%rbp), %rdx
	movq	%rax, %rsi
	callq	_RARCH_LOG
	jmp	LBB0_6
LBB0_4:
	movq	_MSG_FAILED_TO_START_MOVIE_RECORD@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_msg_hash_to_str
	movq	_MESSAGE_QUEUE_ICON_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	_MESSAGE_QUEUE_CATEGORY_INFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rsp)
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	movl	$2, %esi
	movl	$180, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_runloop_msg_queue_push
	movl	(%r14), %edi
	callq	_msg_hash_to_str
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	callq	_RARCH_ERR
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%ebx, %eax
	addq	$24608, %rsp                    ## imm = 0x6020
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_configuration_settings,8,3     ## @configuration_settings
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%d.bsv"

	.comm	_bsv_movie_state,8,3            ## @bsv_movie_state
L_.str.1:                               ## @.str.1
	.asciz	".bsv"

L_.str.2:                               ## @.str.2
	.asciz	"%s \"%s\"."

	.comm	_MSG_STARTING_MOVIE_RECORD_TO,4,2 ## @MSG_STARTING_MOVIE_RECORD_TO
	.comm	_RARCH_MOVIE_RECORD,4,2         ## @RARCH_MOVIE_RECORD
	.comm	_bsv_movie_state_handle,4,2     ## @bsv_movie_state_handle
	.comm	_MSG_FAILED_TO_START_MOVIE_RECORD,4,2 ## @MSG_FAILED_TO_START_MOVIE_RECORD
	.comm	_MESSAGE_QUEUE_ICON_DEFAULT,4,2 ## @MESSAGE_QUEUE_ICON_DEFAULT
	.comm	_MESSAGE_QUEUE_CATEGORY_INFO,4,2 ## @MESSAGE_QUEUE_CATEGORY_INFO
L_.str.3:                               ## @.str.3
	.asciz	"%s\n"

L_.str.4:                               ## @.str.4
	.asciz	"%s \"%s\".\n"

	.no_dead_strip	_runloop_check_movie_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function runloop_check_movie_init
_runloop_check_movie_init:              ; @runloop_check_movie_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -40
	.cfi_offset w28, -48
	mov	w9, #24592
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #6, lsl #12             ; =24576
	sub	sp, sp, #16
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh5:
	adrp	x8, _configuration_settings@GOTPAGE
Lloh6:
	ldr	x8, [x8, _configuration_settings@GOTPAGEOFF]
Lloh7:
	ldr	x19, [x8]
	strb	wzr, [sp, #8]
	add	x8, sp, #1, lsl #12             ; =4096
	add	x8, x8, #9
	strb	wzr, [x8, #4095]
	ldr	w1, [x19, #8]
	mov	x0, x19
	mov	w2, #1
	bl	_configuration_set_uint
	ldr	x4, [x19]
Lloh8:
	adrp	x8, _bsv_movie_state@GOTPAGE
Lloh9:
	ldr	x8, [x8, _bsv_movie_state@GOTPAGEOFF]
Lloh10:
	ldr	x3, [x8]
	cmp	x4, #1
	b.lt	LBB0_2
; %bb.1:
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #8192
	bl	_snprintf
	b	LBB0_3
LBB0_2:
	add	x0, sp, #8
	mov	x1, x3
	mov	w2, #8192
	bl	_strlcpy
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w2, #8192
	bl	_strlcat
LBB0_3:
Lloh15:
	adrp	x20, _MSG_STARTING_MOVIE_RECORD_TO@GOTPAGE
Lloh16:
	ldr	x20, [x20, _MSG_STARTING_MOVIE_RECORD_TO@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_msg_hash_to_str
	mov	x3, x0
Lloh17:
	adrp	x2, l_.str.2@PAGE
Lloh18:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #2, lsl #12             ; =8192
	add	x0, x0, #8
	add	x4, sp, #8
	mov	w1, #16384
	bl	_snprintf
Lloh19:
	adrp	x8, _RARCH_MOVIE_RECORD@GOTPAGE
Lloh20:
	ldr	x8, [x8, _RARCH_MOVIE_RECORD@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_bsv_movie_init_handle
Lloh22:
	adrp	x8, _bsv_movie_state_handle@GOTPAGE
Lloh23:
	ldr	x8, [x8, _bsv_movie_state_handle@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.4:
Lloh25:
	adrp	x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGEOFF]
Lloh27:
	ldr	w5, [x8]
Lloh28:
	adrp	x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGEOFF]
Lloh30:
	ldr	w6, [x8]
	mov	w19, #1
	add	x0, sp, #2, lsl #12             ; =8192
	add	x0, x0, #8
	mov	w1, #2
	mov	w2, #180
	mov	x4, #0
	mov	w3, #1
	bl	_runloop_msg_queue_push
	ldr	w0, [x20]
	bl	_msg_hash_to_str
	mov	x1, x0
Lloh31:
	adrp	x0, l_.str.4@PAGE
Lloh32:
	add	x0, x0, l_.str.4@PAGEOFF
	add	x2, sp, #8
	bl	_RARCH_LOG
	b	LBB0_6
LBB0_5:
Lloh33:
	adrp	x19, _MSG_FAILED_TO_START_MOVIE_RECORD@GOTPAGE
Lloh34:
	ldr	x19, [x19, _MSG_FAILED_TO_START_MOVIE_RECORD@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_msg_hash_to_str
Lloh35:
	adrp	x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGEOFF]
Lloh37:
	ldr	w5, [x8]
Lloh38:
	adrp	x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGEOFF]
Lloh40:
	ldr	w6, [x8]
	mov	w1, #2
	mov	w2, #180
	mov	w3, #1
	mov	x4, #0
	bl	_runloop_msg_queue_push
	ldr	w0, [x19]
	bl	_msg_hash_to_str
	mov	x1, x0
Lloh41:
	adrp	x0, l_.str.3@PAGE
Lloh42:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_RARCH_ERR
	mov	w19, #0
LBB0_6:
	ldur	x8, [x29, #-40]
Lloh43:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh44:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x19
	add	sp, sp, #6, lsl #12             ; =24576
	add	sp, sp, #16
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_configuration_settings,8,3     ; @configuration_settings
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%d.bsv"

	.comm	_bsv_movie_state,8,3            ; @bsv_movie_state
l_.str.1:                               ; @.str.1
	.asciz	".bsv"

l_.str.2:                               ; @.str.2
	.asciz	"%s \"%s\"."

	.comm	_MSG_STARTING_MOVIE_RECORD_TO,4,2 ; @MSG_STARTING_MOVIE_RECORD_TO
	.comm	_RARCH_MOVIE_RECORD,4,2         ; @RARCH_MOVIE_RECORD
	.comm	_bsv_movie_state_handle,4,2     ; @bsv_movie_state_handle
	.comm	_MSG_FAILED_TO_START_MOVIE_RECORD,4,2 ; @MSG_FAILED_TO_START_MOVIE_RECORD
	.comm	_MESSAGE_QUEUE_ICON_DEFAULT,4,2 ; @MESSAGE_QUEUE_ICON_DEFAULT
	.comm	_MESSAGE_QUEUE_CATEGORY_INFO,4,2 ; @MESSAGE_QUEUE_CATEGORY_INFO
l_.str.3:                               ; @.str.3
	.asciz	"%s\n"

l_.str.4:                               ; @.str.4
	.asciz	"%s \"%s\".\n"

	.no_dead_strip	_runloop_check_movie_init
.subsections_via_symbols
