	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxfw_flash_components
_mlxfw_flash_components:                ## @mlxfw_flash_components
	.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, %rbx
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %r13
	movl	(%rdi), %edx
	movl	4(%rdi), %esi
	leaq	-44(%rbp), %rcx
	movq	%r12, %rdi
	callq	_mlxfw_mfa2_file_component_count
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	jmp	LBB0_2
LBB0_3:
	cmpl	$0, -44(%rbp)
	jle	LBB0_9
## %bb.4:
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edx
	movl	4(%r13), %esi
	movq	%r12, %rdi
	movl	%ebx, %ecx
	callq	_mlxfw_mfa2_file_component_get
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r14), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_info
	movq	%r13, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%r14, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_mlxfw_flash_component
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_mlxfw_mfa2_file_component_put
	testl	%r15d, %r15d
	jne	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	cmpl	-44(%rbp), %ebx
	jl	LBB0_5
LBB0_9:
	xorl	%r15d, %r15d
	jmp	LBB0_2
LBB0_10:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
LBB0_2:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not find device PSID in MFA2 file\n"

L_.str.1:                               ## @.str.1
	.asciz	"Could not find device PSID in MFA2 file"

L_.str.2:                               ## @.str.2
	.asciz	"Flashing component type %d\n"

	.no_dead_strip	_mlxfw_flash_components
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxfw_flash_components
_mlxfw_flash_components:                ; @mlxfw_flash_components
	.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	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldp	w2, w1, [x0]
	add	x3, sp, #12
	mov	x0, x20
	bl	_mlxfw_mfa2_file_component_count
	cbz	w0, LBB0_2
; %bb.1:
	mov	x25, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_NL_SET_ERR_MSG_MOD
	b	LBB0_9
LBB0_2:
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	w23, #0
Lloh4:
	adrp	x24, l_.str.2@PAGE
Lloh5:
	add	x24, x24, l_.str.2@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w2, w1, [x22]
	mov	x0, x20
	mov	x3, x23
	bl	_mlxfw_mfa2_file_component_get
	mov	x26, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x26]
	mov	x0, x24
	bl	_pr_info
	mov	x0, x22
	mov	x1, x21
	mov	x2, x26
	mov	x3, x19
	bl	_mlxfw_flash_component
	mov	x25, x0
	mov	x0, x26
	bl	_mlxfw_mfa2_file_component_put
	cbnz	w25, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w23, #1
	ldr	w8, [sp, #12]
	cmp	w23, w8
	b.lt	LBB0_4
LBB0_7:
	mov	w25, #0
	b	LBB0_9
LBB0_8:
	mov	x0, x26
	bl	_PTR_ERR
	mov	x25, x0
LBB0_9:
	mov	x0, x25
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not find device PSID in MFA2 file\n"

l_.str.1:                               ; @.str.1
	.asciz	"Could not find device PSID in MFA2 file"

l_.str.2:                               ; @.str.2
	.asciz	"Flashing component type %d\n"

	.no_dead_strip	_mlxfw_flash_components
.subsections_via_symbols
