	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function display_pending_firmware
_display_pending_firmware:              ## @display_pending_firmware
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	-48(%rbp), %rsi
	xorl	%edx, %edx
	callq	_mfi_ctrl_get_info
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	_mfi_unit@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_printf
	leaq	L_.str.2(%rip), %rsi
	callq	_strcpy
	leaq	L_.str.3(%rip), %rsi
	callq	_strcpy
	leaq	L_.str.4(%rip), %rsi
	callq	_strcpy
	leaq	L_.str.5(%rip), %rsi
	callq	_strcpy
	leaq	-64(%rbp), %rdi
	callq	_scan_firmware
	movl	-48(%rbp), %eax
	cmpl	$9, %eax
	jl	LBB0_4
## %bb.3:
	movl	$8, -48(%rbp)
	jmp	LBB0_5
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str(%rip), %rdi
	callq	_warn
	jmp	LBB0_11
LBB0_4:
	testl	%eax, %eax
	je	LBB0_7
LBB0_5:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-40(%rbp), %rdi
	addq	%r14, %rdi
	callq	_scan_firmware
	incq	%rbx
	movslq	-48(%rbp), %rax
	addq	$16, %r14
	cmpq	%rax, %rbx
	jb	LBB0_6
LBB0_7:
	leaq	L_.str.6(%rip), %rsi
	leaq	-64(%rbp), %rdi
	callq	_display_firmware
	cmpl	$0, -48(%rbp)
	je	LBB0_8
## %bb.9:
	xorl	%r14d, %r14d
	leaq	L_.str.6(%rip), %r15
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	-40(%rbp), %rdi
	addq	%r12, %rdi
	movq	%r15, %rsi
	callq	_display_firmware
	incq	%rbx
	movslq	-48(%rbp), %rax
	addq	$16, %r12
	cmpq	%rax, %rbx
	jb	LBB0_10
	jmp	LBB0_11
LBB0_8:
	xorl	%r14d, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get controller info"

L_.str.1:                               ## @.str.1
	.asciz	"mfi%d Pending Firmware Images:\n"

	.comm	_mfi_unit,4,2                   ## @mfi_unit
L_.str.2:                               ## @.str.2
	.asciz	"Name"

L_.str.3:                               ## @.str.3
	.asciz	"Version"

L_.str.4:                               ## @.str.4
	.asciz	"Date"

L_.str.5:                               ## @.str.5
	.asciz	"Time"

L_.str.6:                               ## @.str.6
	.space	1

	.no_dead_strip	_display_pending_firmware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function display_pending_firmware
_display_pending_firmware:              ; @display_pending_firmware
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	add	x1, sp, #16
	mov	x2, #0
	bl	_mfi_ctrl_get_info
	tbnz	x0, #63, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _mfi_unit@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mfi_unit@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcpy
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcpy
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcpy
Lloh11:
	adrp	x1, l_.str.5@PAGE
Lloh12:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strcpy
	mov	x0, sp
	bl	_scan_firmware
	ldr	w8, [sp, #16]
	cmp	w8, #9
	b.lt	LBB0_4
; %bb.2:
	mov	w8, #8
	str	w8, [sp, #16]
	b	LBB0_5
LBB0_3:
Lloh13:
	adrp	x8, _errno@GOTPAGE
Lloh14:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh15:
	ldr	w19, [x8]
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	b	LBB0_11
LBB0_4:
	cbz	w8, LBB0_7
LBB0_5:
	mov	x19, #0
	mov	x20, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #24]
	add	x0, x8, x19
	bl	_scan_firmware
	add	x20, x20, #1
	ldrsw	x8, [sp, #16]
	add	x19, x19, #16
	cmp	x20, x8
	b.lo	LBB0_6
LBB0_7:
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, sp
	bl	_display_firmware
	ldr	w8, [sp, #16]
	cbz	w8, LBB0_10
; %bb.8:
	mov	x20, #0
	mov	x21, #0
Lloh20:
	adrp	x19, l_.str.6@PAGE
Lloh21:
	add	x19, x19, l_.str.6@PAGEOFF
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #24]
	add	x0, x8, x20
	mov	x1, x19
	bl	_display_firmware
	add	x21, x21, #1
	ldrsw	x8, [sp, #16]
	add	x20, x20, #16
	cmp	x21, x8
	b.lo	LBB0_9
LBB0_10:
	mov	w19, #0
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get controller info"

l_.str.1:                               ; @.str.1
	.asciz	"mfi%d Pending Firmware Images:\n"

	.comm	_mfi_unit,4,2                   ; @mfi_unit
l_.str.2:                               ; @.str.2
	.asciz	"Name"

l_.str.3:                               ; @.str.3
	.asciz	"Version"

l_.str.4:                               ; @.str.4
	.asciz	"Date"

l_.str.5:                               ; @.str.5
	.asciz	"Time"

l_.str.6:                               ; @.str.6
	.space	1

	.no_dead_strip	_display_pending_firmware
.subsections_via_symbols
