	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function core_info_list_update_missing_firmware_internal
_core_info_list_update_missing_firmware_internal: ## @core_info_list_update_missing_firmware_internal
	.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	%rdx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.2:
	movq	%rcx, %rbx
	movq	_PATH_MAX_LENGTH@GOTPCREL(%rip), %rax
	movslq	(%rax), %r12
	callq	_core_info_find_internal
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movq	%rax, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movb	$0, (%rax)
	cmpq	$0, (%r15)
	je	LBB0_11
## %bb.5:
	movl	$4, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r14
	addq	$12, %rbx
	cmpq	(%r15), %r14
	jae	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%rbx), %edi
	callq	_string_is_empty
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%rbx), %edx
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_fill_pathname_join
	movq	%r13, %rdi
	callq	_path_is_valid
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movq	8(%r15), %rax
	movl	%ecx, -4(%rax,%rbx)
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, 4(%rax,%rbx)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	$1, (%rcx)
	movl	(%rax,%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_RARCH_WARN
	jmp	LBB0_10
LBB0_11:
	movq	%r13, %rdi
	callq	_free
	movl	$1, %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX_LENGTH,4,2            ## @PATH_MAX_LENGTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Firmware missing: %s\n"

	.no_dead_strip	_core_info_list_update_missing_firmware_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function core_info_list_update_missing_firmware_internal
_core_info_list_update_missing_firmware_internal: ; @core_info_list_update_missing_firmware_internal
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x8, x0
	mov	w0, #0
	cbz	x8, LBB0_12
; %bb.1:
	cbz	x1, LBB0_12
; %bb.2:
	mov	x19, x3
	mov	x20, x2
Lloh0:
	adrp	x9, _PATH_MAX_LENGTH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PATH_MAX_LENGTH@GOTPAGEOFF]
Lloh2:
	ldrsw	x21, [x9]
	mov	x0, x8
	bl	_core_info_find_internal
	cbz	x0, LBB0_12
; %bb.3:
	mov	x22, x0
	mov	x0, x21
	bl	_malloc
	cbz	x0, LBB0_12
; %bb.4:
	mov	x23, x0
	strb	wzr, [x0]
	ldr	x8, [x22]
	cbz	x8, LBB0_11
; %bb.5:
	mov	x25, #0
	mov	x26, #0
	mov	w27, #1
Lloh3:
	adrp	x24, l_.str@PAGE
Lloh4:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x26, x26, #1
	ldr	x8, [x22]
	add	x25, x25, #12
	cmp	x26, x8
	b.hs	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	add	x8, x8, x25
	ldr	w0, [x8, #4]
	bl	_string_is_empty
	cbnz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22, #8]
	add	x8, x8, x25
	ldr	w2, [x8, #4]
	mov	x0, x23
	mov	x1, x20
	mov	x3, x21
	bl	_fill_pathname_join
	mov	x0, x23
	bl	_path_is_valid
	cmp	w0, #0
	cset	w9, eq
	ldr	x8, [x22, #8]
	str	w9, [x8, x25]
	cbnz	w0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x8, x25
	ldr	w9, [x8, #8]
	cbnz	w9, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	str	w27, [x19]
	ldr	w1, [x8, #4]
	mov	x0, x24
	bl	_RARCH_WARN
	b	LBB0_6
LBB0_11:
	mov	x0, x23
	bl	_free
	mov	w0, #1
LBB0_12:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX_LENGTH,4,2            ; @PATH_MAX_LENGTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Firmware missing: %s\n"

	.no_dead_strip	_core_info_list_update_missing_firmware_internal
.subsections_via_symbols
