	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bsv_movie_init
_bsv_movie_init:                        ## @bsv_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	movl	$8216, %eax                     ## imm = 0x2018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_bsv_movie_state@GOTPCREL(%rip), %rbx
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %rdi
	movq	_RARCH_MOVIE_PLAYBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bsv_movie_init_handle
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	$1, 8(%rbx)
	movq	_MSG_STARTING_MOVIE_PLAYBACK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %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)
	movq	%rax, %rdi
	movl	$2, %esi
	movl	$180, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_runloop_msg_queue_push
	movl	(%rbx), %edi
	callq	_msg_hash_to_str
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_RARCH_LOG
	jmp	LBB0_9
LBB0_4:
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.6:
	movq	(%rbx), %rdi
	movq	_RARCH_MOVIE_RECORD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bsv_movie_init_handle
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	_MSG_STARTING_MOVIE_RECORD_TO@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_msg_hash_to_str
	movq	(%rbx), %r8
	leaq	L_.str.2(%rip), %rdx
	leaq	-8224(%rbp), %r14
	movq	%r14, %rdi
	movl	$8192, %esi                     ## imm = 0x2000
	movq	%rax, %rcx
	callq	_snprintf
	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)
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$180, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_runloop_msg_queue_push
	movl	(%r15), %edi
	callq	_msg_hash_to_str
	movq	(%rbx), %rdx
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_RARCH_LOG
LBB0_9:
	movq	_configuration_settings@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%rdi), %esi
	movl	$1, %ebx
	movl	$1, %edx
	callq	_configuration_set_uint
	jmp	LBB0_10
LBB0_2:
	movq	_MSG_FAILED_TO_LOAD_MOVIE_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_RARCH_ERR
	jmp	LBB0_10
LBB0_5:
	movl	$1, %ebx
	jmp	LBB0_10
LBB0_7:
	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	$1, %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.1(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_RARCH_ERR
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%ebx, %eax
	addq	$8216, %rsp                     ## imm = 0x2018
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_bsv_movie_state,32,3           ## @bsv_movie_state
	.comm	_RARCH_MOVIE_PLAYBACK,4,2       ## @RARCH_MOVIE_PLAYBACK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: \"%s\".\n"

	.comm	_MSG_FAILED_TO_LOAD_MOVIE_FILE,4,2 ## @MSG_FAILED_TO_LOAD_MOVIE_FILE
	.comm	_MSG_STARTING_MOVIE_PLAYBACK,4,2 ## @MSG_STARTING_MOVIE_PLAYBACK
	.comm	_MESSAGE_QUEUE_ICON_DEFAULT,4,2 ## @MESSAGE_QUEUE_ICON_DEFAULT
	.comm	_MESSAGE_QUEUE_CATEGORY_INFO,4,2 ## @MESSAGE_QUEUE_CATEGORY_INFO
L_.str.1:                               ## @.str.1
	.asciz	"%s.\n"

	.comm	_RARCH_MOVIE_RECORD,4,2         ## @RARCH_MOVIE_RECORD
	.comm	_MSG_FAILED_TO_START_MOVIE_RECORD,4,2 ## @MSG_FAILED_TO_START_MOVIE_RECORD
L_.str.2:                               ## @.str.2
	.asciz	"%s \"%s\"."

	.comm	_MSG_STARTING_MOVIE_RECORD_TO,4,2 ## @MSG_STARTING_MOVIE_RECORD_TO
L_.str.3:                               ## @.str.3
	.asciz	"%s \"%s\".\n"

	.comm	_configuration_settings,8,3     ## @configuration_settings
	.no_dead_strip	_bsv_movie_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bsv_movie_init
_bsv_movie_init:                        ; @bsv_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, #8208
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #2, lsl #12             ; =8192
	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	x19, _bsv_movie_state@GOTPAGE
Lloh6:
	ldr	x19, [x19, _bsv_movie_state@GOTPAGEOFF]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x0, [x19]
Lloh7:
	adrp	x8, _RARCH_MOVIE_PLAYBACK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RARCH_MOVIE_PLAYBACK@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_bsv_movie_init_handle
	cbz	w0, LBB0_7
; %bb.2:
	mov	w8, #1
	str	w8, [x19, #8]
Lloh10:
	adrp	x19, _MSG_STARTING_MOVIE_PLAYBACK@GOTPAGE
Lloh11:
	ldr	x19, [x19, _MSG_STARTING_MOVIE_PLAYBACK@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_msg_hash_to_str
Lloh12:
	adrp	x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGEOFF]
Lloh14:
	ldr	w5, [x8]
Lloh15:
	adrp	x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGEOFF]
Lloh17:
	ldr	w6, [x8]
	mov	w1, #2
	mov	w2, #180
	mov	w3, #0
	mov	x4, #0
	bl	_runloop_msg_queue_push
	ldr	w0, [x19]
	bl	_msg_hash_to_str
	mov	x1, x0
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
; %bb.4:
	ldr	x0, [x19]
Lloh20:
	adrp	x8, _RARCH_MOVIE_RECORD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RARCH_MOVIE_RECORD@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_bsv_movie_init_handle
	cbz	w0, LBB0_9
; %bb.5:
Lloh23:
	adrp	x20, _MSG_STARTING_MOVIE_RECORD_TO@GOTPAGE
Lloh24:
	ldr	x20, [x20, _MSG_STARTING_MOVIE_RECORD_TO@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_msg_hash_to_str
	mov	x3, x0
	ldr	x4, [x19]
Lloh25:
	adrp	x2, l_.str.2@PAGE
Lloh26:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #8
	mov	w1, #8192
	bl	_snprintf
Lloh27:
	adrp	x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGEOFF]
Lloh29:
	ldr	w5, [x8]
Lloh30:
	adrp	x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGEOFF]
Lloh32:
	ldr	w6, [x8]
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #180
	mov	w3, #1
	mov	x4, #0
	bl	_runloop_msg_queue_push
	ldr	w0, [x20]
	bl	_msg_hash_to_str
	mov	x1, x0
	ldr	x8, [x19]
	str	x8, [sp]
Lloh33:
	adrp	x0, l_.str.3@PAGE
Lloh34:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_6:
	bl	_RARCH_LOG
Lloh35:
	adrp	x8, _configuration_settings@GOTPAGE
Lloh36:
	ldr	x8, [x8, _configuration_settings@GOTPAGEOFF]
Lloh37:
	ldr	x0, [x8]
	ldr	w1, [x0]
	mov	w19, #1
	mov	w2, #1
	bl	_configuration_set_uint
	b	LBB0_11
LBB0_7:
Lloh38:
	adrp	x8, _MSG_FAILED_TO_LOAD_MOVIE_FILE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MSG_FAILED_TO_LOAD_MOVIE_FILE@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
	ldr	x8, [x19]
	str	x8, [sp]
Lloh41:
	adrp	x0, l_.str@PAGE
Lloh42:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_10
LBB0_8:
	mov	w19, #1
	b	LBB0_11
LBB0_9:
Lloh43:
	adrp	x19, _MSG_FAILED_TO_START_MOVIE_RECORD@GOTPAGE
Lloh44:
	ldr	x19, [x19, _MSG_FAILED_TO_START_MOVIE_RECORD@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_msg_hash_to_str
Lloh45:
	adrp	x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGE
Lloh46:
	ldr	x8, [x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGEOFF]
Lloh47:
	ldr	w5, [x8]
Lloh48:
	adrp	x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGE
Lloh49:
	ldr	x8, [x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGEOFF]
Lloh50:
	ldr	w6, [x8]
	mov	w1, #1
	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
Lloh51:
	adrp	x0, l_.str.1@PAGE
Lloh52:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_10:
	bl	_RARCH_ERR
	mov	w19, #0
LBB0_11:
	ldur	x8, [x29, #-40]
Lloh53:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh54:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh55:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x19
	add	sp, sp, #2, lsl #12             ; =8192
	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_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_bsv_movie_state,32,3           ; @bsv_movie_state
	.comm	_RARCH_MOVIE_PLAYBACK,4,2       ; @RARCH_MOVIE_PLAYBACK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: \"%s\".\n"

	.comm	_MSG_FAILED_TO_LOAD_MOVIE_FILE,4,2 ; @MSG_FAILED_TO_LOAD_MOVIE_FILE
	.comm	_MSG_STARTING_MOVIE_PLAYBACK,4,2 ; @MSG_STARTING_MOVIE_PLAYBACK
	.comm	_MESSAGE_QUEUE_ICON_DEFAULT,4,2 ; @MESSAGE_QUEUE_ICON_DEFAULT
	.comm	_MESSAGE_QUEUE_CATEGORY_INFO,4,2 ; @MESSAGE_QUEUE_CATEGORY_INFO
l_.str.1:                               ; @.str.1
	.asciz	"%s.\n"

	.comm	_RARCH_MOVIE_RECORD,4,2         ; @RARCH_MOVIE_RECORD
	.comm	_MSG_FAILED_TO_START_MOVIE_RECORD,4,2 ; @MSG_FAILED_TO_START_MOVIE_RECORD
l_.str.2:                               ; @.str.2
	.asciz	"%s \"%s\"."

	.comm	_MSG_STARTING_MOVIE_RECORD_TO,4,2 ; @MSG_STARTING_MOVIE_RECORD_TO
l_.str.3:                               ; @.str.3
	.asciz	"%s \"%s\".\n"

	.comm	_configuration_settings,8,3     ; @configuration_settings
	.no_dead_strip	_bsv_movie_init
.subsections_via_symbols
