	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function firmware_update_status
_firmware_update_status:                ## @firmware_update_status
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	$0, -36(%rbp)
	movq	$0, -48(%rbp)
	movq	_PATH_MAX_LENGTH@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	leaq	-48(%rbp), %rdi
	callq	_core_info_get_current_core
	cmpq	$0, -48(%rbp)
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, %r12
	movq	-48(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	(%r15), %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_RARCH_PATH_CONTENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_path_get
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_strlcpy
	movq	%r12, %rdi
	callq	_path_basedir_wrapper
	movq	%r12, %rdx
	jmp	LBB0_5
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_3:
	movq	(%r15), %rdx
LBB0_5:
	movq	%rdx, -64(%rbp)
	movq	-48(%rbp), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_RARCH_LOG
	movq	_RARCH_CTL_UNSET_MISSING_BIOS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_rarch_ctl
	leaq	-64(%rbp), %rdi
	leaq	-36(%rbp), %rsi
	callq	_core_info_list_update_missing_firmware
	movq	%r12, %rdi
	callq	_free
	cmpl	$0, -36(%rbp)
	je	LBB0_7
## %bb.6:
	movq	_RARCH_CTL_SET_MISSING_BIOS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_rarch_ctl
LBB0_7:
	cmpq	$0, 16(%r15)
	je	LBB0_10
## %bb.8:
	cmpq	$0, 8(%r15)
	je	LBB0_10
## %bb.9:
	movq	_MSG_FIRMWARE@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)
	movl	$1, %r14d
	movl	%eax, %edi
	movl	$100, %esi
	movl	$500, %edx                      ## imm = 0x1F4
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_runloop_msg_queue_push
	movl	(%rbx), %edi
	callq	_msg_hash_to_str
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_RARCH_LOG
LBB0_10:
	movl	%r14d, %eax
	addq	$48, %rsp
	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	_RARCH_PATH_CONTENT,4,2         ## @RARCH_PATH_CONTENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Updating firmware status for: %s on %s\n"

	.comm	_RARCH_CTL_UNSET_MISSING_BIOS,4,2 ## @RARCH_CTL_UNSET_MISSING_BIOS
	.comm	_RARCH_CTL_SET_MISSING_BIOS,4,2 ## @RARCH_CTL_SET_MISSING_BIOS
	.comm	_MSG_FIRMWARE,4,2               ## @MSG_FIRMWARE
	.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	"Load content blocked. Reason: %s\n"

	.no_dead_strip	_firmware_update_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function firmware_update_status
_firmware_update_status:                ; @firmware_update_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	str	wzr, [sp, #28]
	str	xzr, [sp, #16]
Lloh0:
	adrp	x8, _PATH_MAX_LENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PATH_MAX_LENGTH@GOTPAGEOFF]
Lloh2:
	ldrsw	x21, [x8]
	add	x0, sp, #16
	bl	_core_info_get_current_core
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_9
; %bb.1:
	mov	x0, x21
	bl	_malloc
	mov	x20, x0
	ldr	x8, [sp, #16]
	ldr	w8, [x8]
	str	w8, [sp, #40]
	ldr	x0, [x19]
	bl	_string_is_empty
	cbz	w0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _RARCH_PATH_CONTENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RARCH_PATH_CONTENT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_path_get
	mov	x1, x0
	mov	x0, x20
	mov	x2, x21
	bl	_strlcpy
	mov	x0, x20
	bl	_path_basedir_wrapper
	mov	x8, x20
	b	LBB0_4
LBB0_3:
	ldr	x8, [x19]
LBB0_4:
	str	x8, [sp, #32]
	ldr	x9, [sp, #16]
	ldr	w1, [x9]
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_LOG
Lloh8:
	adrp	x8, _RARCH_CTL_UNSET_MISSING_BIOS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RARCH_CTL_UNSET_MISSING_BIOS@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_rarch_ctl
	add	x0, sp, #32
	add	x1, sp, #28
	bl	_core_info_list_update_missing_firmware
	mov	x0, x20
	bl	_free
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _RARCH_CTL_SET_MISSING_BIOS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RARCH_CTL_SET_MISSING_BIOS@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_rarch_ctl
LBB0_6:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.8:
Lloh14:
	adrp	x20, _MSG_FIRMWARE@GOTPAGE
Lloh15:
	ldr	x20, [x20, _MSG_FIRMWARE@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_msg_hash_to_str
Lloh16:
	adrp	x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGEOFF]
Lloh18:
	ldr	w5, [x8]
Lloh19:
	adrp	x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGEOFF]
Lloh21:
	ldr	w6, [x8]
	mov	w19, #1
	mov	w1, #100
	mov	w2, #500
	mov	w3, #1
	mov	x4, #0
	bl	_runloop_msg_queue_push
	ldr	w0, [x20]
	bl	_msg_hash_to_str
	mov	x1, x0
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_RARCH_LOG
	b	LBB0_10
LBB0_9:
	mov	w19, #0
LBB0_10:
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX_LENGTH,4,2            ; @PATH_MAX_LENGTH
	.comm	_RARCH_PATH_CONTENT,4,2         ; @RARCH_PATH_CONTENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Updating firmware status for: %s on %s\n"

	.comm	_RARCH_CTL_UNSET_MISSING_BIOS,4,2 ; @RARCH_CTL_UNSET_MISSING_BIOS
	.comm	_RARCH_CTL_SET_MISSING_BIOS,4,2 ; @RARCH_CTL_SET_MISSING_BIOS
	.comm	_MSG_FIRMWARE,4,2               ; @MSG_FIRMWARE
	.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	"Load content blocked. Reason: %s\n"

	.no_dead_strip	_firmware_update_status
.subsections_via_symbols
