	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function content_file_init_subsystem
_content_file_init_subsystem:           ## @content_file_init_subsystem
	.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	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	$1024, %edi                     ## imm = 0x400
	callq	_malloc
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_path_get_subsystem_list
	movq	%rax, %r13
	movq	_RARCH_PATH_SUBSYSTEM@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_path_get
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_libretro_find_subsystem_info
	movb	$0, (%r12)
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.2:
	testq	%r13, %r13
	jne	LBB0_5
## %bb.3:
	movq	_MSG_ERROR_LIBRETRO_CORE_REQUIRES_SPECIAL_CONTENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movl	$1024, %edx                     ## imm = 0x400
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_strlcpy
	jmp	LBB0_12
LBB0_4:
	movl	(%r15), %edi
	callq	_path_get
	leaq	L_.str(%rip), %rdx
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r12, %rdi
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_12
LBB0_5:
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.6:
	movq	(%r13), %r9
	movl	$1, %eax
	cmpq	%r9, %rcx
	je	LBB0_7
## %bb.11:
	movq	8(%rbx), %r8
	leaq	L_.str.1(%rip), %rdx
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r12, %rdi
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_12
LBB0_8:
	movl	$1, %eax
	testq	%r13, %r13
	je	LBB0_7
## %bb.9:
	movq	(%r13), %r8
	testq	%r8, %r8
	je	LBB0_7
## %bb.10:
	movq	8(%rbx), %rcx
	leaq	L_.str.2(%rip), %rdx
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r12, %rdi
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_snprintf
LBB0_12:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_strdup
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	xorl	%ebx, %ebx
LBB0_13:
	movl	%eax, (%r14)
	movq	%r12, %rdi
	callq	_free
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_RARCH_PATH_SUBSYSTEM,4,2       ## @RARCH_PATH_SUBSYSTEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to find subsystem \"%s\" in libretro implementation.\n"

	.comm	_MSG_ERROR_LIBRETRO_CORE_REQUIRES_SPECIAL_CONTENT,4,2 ## @MSG_ERROR_LIBRETRO_CORE_REQUIRES_SPECIAL_CONTENT
L_.str.1:                               ## @.str.1
	.asciz	"Libretro core requires %u content files for subsystem \"%s\", but %u content files were provided.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Libretro core takes no content for subsystem \"%s\", but %u content files were provided.\n"

	.no_dead_strip	_content_file_init_subsystem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function content_file_init_subsystem
_content_file_init_subsystem:           ; @content_file_init_subsystem
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x24, x0
	mov	w0, #1024
	bl	_malloc
	mov	x20, x0
	bl	_path_get_subsystem_list
	mov	x23, x0
Lloh0:
	adrp	x25, _RARCH_PATH_SUBSYSTEM@GOTPAGE
Lloh1:
	ldr	x25, [x25, _RARCH_PATH_SUBSYSTEM@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_path_get
	mov	x2, x0
	mov	x0, x24
	mov	x1, x22
	bl	_libretro_find_subsystem_info
	strb	wzr, [x20]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x0
	ldr	x3, [x0]
	cmp	x3, #0
	ccmp	x23, #0, #0, ne
	b.eq	LBB0_7
; %bb.2:
	cbz	x3, LBB0_10
; %bb.3:
	ldr	x8, [x23]
	cmp	x3, x8
	b.eq	LBB0_13
; %bb.4:
	ldr	x9, [x22, #8]
	stp	x9, x8, [sp]
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
	ldr	w0, [x25]
	bl	_path_get
	mov	x3, x0
Lloh4:
	adrp	x2, l_.str@PAGE
Lloh5:
	add	x2, x2, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x20
	mov	w1, #1024
	bl	_snprintf
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x8, _MSG_ERROR_LIBRETRO_CORE_REQUIRES_SPECIAL_CONTENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_ERROR_LIBRETRO_CORE_REQUIRES_SPECIAL_CONTENT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
	mov	x0, x20
	mov	w2, #1024
	bl	_strlcpy
LBB0_8:
	mov	x0, x20
	bl	_strdup
	mov	w8, #0
	mov	x22, #0
	str	x0, [x21]
LBB0_9:
	str	w8, [x19]
	mov	x0, x20
	bl	_free
	mov	x0, x22
	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
	add	sp, sp, #96
	ret
LBB0_10:
	cbz	x23, LBB0_13
; %bb.11:
	ldr	x8, [x23]
	cbz	x8, LBB0_13
; %bb.12:
	ldr	x3, [x22, #8]
	str	x8, [sp]
Lloh9:
	adrp	x2, l_.str.2@PAGE
Lloh10:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_13:
	mov	w8, #1
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RARCH_PATH_SUBSYSTEM,4,2       ; @RARCH_PATH_SUBSYSTEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to find subsystem \"%s\" in libretro implementation.\n"

	.comm	_MSG_ERROR_LIBRETRO_CORE_REQUIRES_SPECIAL_CONTENT,4,2 ; @MSG_ERROR_LIBRETRO_CORE_REQUIRES_SPECIAL_CONTENT
l_.str.1:                               ; @.str.1
	.asciz	"Libretro core requires %u content files for subsystem \"%s\", but %u content files were provided.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Libretro core takes no content for subsystem \"%s\", but %u content files were provided.\n"

	.no_dead_strip	_content_file_init_subsystem
.subsections_via_symbols
