	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_content_add_subsystem          ## -- Begin function content_add_subsystem
	.p2align	4, 0x90
_content_add_subsystem:                 ## @content_add_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_PATH_MAX_LENGTH@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_malloc
	movq	_pending_subsystem_roms@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	_pending_subsystem_rom_id@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	(%r15), %rax
	movq	(%rax,%rdx,8), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_strlcpy
	movq	_pending_subsystem_id@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_pending_subsystem_ident@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r12), %rcx
	movq	(%r15), %rax
	movq	(%rax,%rcx,8), %r8
	leaq	L_.str(%rip), %rdi
	callq	_RARCH_LOG
	incq	(%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX_LENGTH,4,2            ## @PATH_MAX_LENGTH
	.comm	_pending_subsystem_roms,8,3     ## @pending_subsystem_roms
	.comm	_pending_subsystem_rom_id,8,3   ## @pending_subsystem_rom_id
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[subsystem] subsystem id: %d subsystem ident: %s rom id: %d, rom path: %s\n"

	.comm	_pending_subsystem_id,4,2       ## @pending_subsystem_id
	.comm	_pending_subsystem_ident,4,2    ## @pending_subsystem_ident
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_content_add_subsystem          ; -- Begin function content_add_subsystem
	.p2align	2
_content_add_subsystem:                 ; @content_add_subsystem
	.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, _PATH_MAX_LENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PATH_MAX_LENGTH@GOTPAGEOFF]
Lloh2:
	ldrsw	x20, [x8]
	mov	x0, x20
	bl	_malloc
Lloh3:
	adrp	x21, _pending_subsystem_roms@GOTPAGE
Lloh4:
	ldr	x21, [x21, _pending_subsystem_roms@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh5:
	adrp	x22, _pending_subsystem_rom_id@GOTPAGE
Lloh6:
	ldr	x22, [x22, _pending_subsystem_rom_id@GOTPAGEOFF]
	ldr	x9, [x22]
	lsl	x9, x9, #3
	str	x0, [x8, x9]
	ldr	x8, [x21]
	ldr	x0, [x8, x9]
	mov	x1, x19
	mov	x2, x20
	bl	_strlcpy
Lloh7:
	adrp	x8, _pending_subsystem_id@GOTPAGE
Lloh8:
	ldr	x8, [x8, _pending_subsystem_id@GOTPAGEOFF]
Lloh9:
	adrp	x9, _pending_subsystem_ident@GOTPAGE
Lloh10:
	ldr	x9, [x9, _pending_subsystem_ident@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	ldr	w2, [x9]
	ldr	x3, [x22]
	ldr	x8, [x21]
	ldr	x4, [x8, x3, lsl #3]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_LOG
	ldr	x8, [x22]
	add	x8, x8, #1
	str	x8, [x22]
	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 AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX_LENGTH,4,2            ; @PATH_MAX_LENGTH
	.comm	_pending_subsystem_roms,8,3     ; @pending_subsystem_roms
	.comm	_pending_subsystem_rom_id,8,3   ; @pending_subsystem_rom_id
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[subsystem] subsystem id: %d subsystem ident: %s rom id: %d, rom path: %s\n"

	.comm	_pending_subsystem_id,4,2       ; @pending_subsystem_id
	.comm	_pending_subsystem_ident,4,2    ; @pending_subsystem_ident
.subsections_via_symbols
