	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxfw_mfa2_file_dev_validate
_mlxfw_mfa2_file_dev_validate:          ## @mlxfw_mfa2_file_dev_validate
	.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, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	movq	%rdx, %rsi
	callq	_pr_debug
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mlxfw_mfa2_tlv_multi_get
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_mlxfw_mfa2_tlv_multi_validate
	testl	%eax, %eax
	je	LBB0_14
## %bb.2:
	movq	_MLXFW_MFA2_TLV_PSID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	callq	_mlxfw_mfa2_tlv_multi_child_find
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_mlxfw_mfa2_tlv_psid_get
	testq	%rax, %rax
	je	LBB0_18
## %bb.4:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	_DUMP_PREFIX_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	movl	(%rax), %r13d
	movl	(%rbx), %edi
	callq	_be16_to_cpu
	movl	$1, (%rsp)
	leaq	L_.str.4(%rip), %rdi
	movl	%r12d, %esi
	movl	$16, %edx
	movl	$16, %ecx
	movl	%r13d, %r8d
	movq	%rax, %r9
	callq	_print_hex_dump_debug
	movq	_MLXFW_MFA2_TLV_COMPONENT_PTR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	-56(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mlxfw_mfa2_tlv_multi_child_count
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.5:
	cmpq	$0, -56(%rbp)
	je	LBB0_19
## %bb.6:
	jle	LBB0_11
## %bb.7:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %rcx
	callq	_mlxfw_mfa2_tlv_multi_child_find
	testq	%rax, %rax
	je	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_mlxfw_mfa2_tlv_component_ptr_get
	testq	%rax, %rax
	je	LBB0_20
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	(%rax), %edi
	callq	_be16_to_cpu
	leaq	L_.str.7(%rip), %rdi
	movq	%rax, %rsi
	callq	_pr_debug
	incq	%r13
	cmpq	-56(%rbp), %r13
	jl	LBB0_8
LBB0_11:
	movl	$1, %r12d
	jmp	LBB0_17
LBB0_12:
	leaq	L_.str.1(%rip), %rdi
LBB0_13:
	movq	%r13, %rsi
	callq	_pr_err
LBB0_14:
	xorl	%r12d, %r12d
	jmp	LBB0_17
LBB0_15:
	leaq	L_.str.2(%rip), %rdi
	movq	%r13, %rsi
LBB0_16:
	callq	_pr_err
LBB0_17:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_13
LBB0_19:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_21
LBB0_20:
	leaq	L_.str.6(%rip), %rdi
LBB0_21:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Device %d is not a valid TLV error\n"

	.comm	_MLXFW_MFA2_TLV_PSID,4,2        ## @MLXFW_MFA2_TLV_PSID
L_.str.2:                               ## @.str.2
	.asciz	"Device %d does not have PSID\n"

L_.str.3:                               ## @.str.3
	.asciz	"Device %d PSID TLV is not valid\n"

L_.str.4:                               ## @.str.4
	.asciz	"  -- Device PSID "

	.comm	_DUMP_PREFIX_NONE,4,2           ## @DUMP_PREFIX_NONE
	.comm	_MLXFW_MFA2_TLV_COMPONENT_PTR,4,2 ## @MLXFW_MFA2_TLV_COMPONENT_PTR
L_.str.5:                               ## @.str.5
	.asciz	"Device %d has no components\n"

L_.str.6:                               ## @.str.6
	.asciz	"Device %d COMPONENT_PTR TLV is not valid\n"

L_.str.7:                               ## @.str.7
	.asciz	"  -- Component index %d\n"

	.no_dead_strip	_mlxfw_mfa2_file_dev_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxfw_mfa2_file_dev_validate
_mlxfw_mfa2_file_dev_validate:          ; @mlxfw_mfa2_file_dev_validate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x2
	bl	_pr_debug
	mov	x0, x20
	mov	x1, x21
	bl	_mlxfw_mfa2_tlv_multi_get
	cbz	x0, LBB0_11
; %bb.1:
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_mlxfw_mfa2_tlv_multi_validate
	cbz	w0, LBB0_16
; %bb.2:
Lloh2:
	adrp	x8, _MLXFW_MFA2_TLV_PSID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MLXFW_MFA2_TLV_PSID@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x3, #0
	bl	_mlxfw_mfa2_tlv_multi_child_find
	cbz	x0, LBB0_12
; %bb.3:
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_mlxfw_mfa2_tlv_psid_get
	cbz	x0, LBB0_13
; %bb.4:
Lloh5:
	adrp	x8, _DUMP_PREFIX_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DUMP_PREFIX_NONE@GOTPAGEOFF]
Lloh7:
	ldr	w23, [x8]
	ldr	w24, [x0]
	ldr	w0, [x22]
	bl	_be16_to_cpu
	mov	x5, x0
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x23
	mov	w2, #16
	mov	w3, #16
	mov	x4, x24
	mov	w6, #1
	bl	_print_hex_dump_debug
Lloh10:
	adrp	x24, _MLXFW_MFA2_TLV_COMPONENT_PTR@GOTPAGE
Lloh11:
	ldr	x24, [x24, _MLXFW_MFA2_TLV_COMPONENT_PTR@GOTPAGEOFF]
	ldr	w2, [x24]
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	_mlxfw_mfa2_tlv_multi_child_count
	cbnz	w0, LBB0_15
; %bb.5:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_17
; %bb.6:
	cmp	x8, #1
	b.lt	LBB0_18
; %bb.7:
	mov	x22, #0
Lloh12:
	adrp	x23, l_.str.7@PAGE
Lloh13:
	add	x23, x23, l_.str.7@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x24]
	mov	x0, x20
	mov	x1, x21
	mov	x3, x22
	bl	_mlxfw_mfa2_tlv_multi_child_find
	cbz	x0, LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x1, x0
	mov	x0, x20
	bl	_mlxfw_mfa2_tlv_component_ptr_get
	cbz	x0, LBB0_19
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x0]
	bl	_be16_to_cpu
	mov	x1, x0
	mov	x0, x23
	bl	_pr_debug
	add	x22, x22, #1
	ldr	x8, [sp, #8]
	mov	w0, #1
	cmp	x22, x8
	b.lt	LBB0_8
	b	LBB0_16
LBB0_11:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_12:
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_14:
	mov	x1, x19
	bl	_pr_err
LBB0_15:
	mov	w0, #0
LBB0_16:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_17:
Lloh20:
	adrp	x0, l_.str.5@PAGE
Lloh21:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_14
LBB0_18:
	mov	w0, #1
	b	LBB0_16
LBB0_19:
Lloh22:
	adrp	x0, l_.str.6@PAGE
Lloh23:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Device %d is not a valid TLV error\n"

	.comm	_MLXFW_MFA2_TLV_PSID,4,2        ; @MLXFW_MFA2_TLV_PSID
l_.str.2:                               ; @.str.2
	.asciz	"Device %d does not have PSID\n"

l_.str.3:                               ; @.str.3
	.asciz	"Device %d PSID TLV is not valid\n"

l_.str.4:                               ; @.str.4
	.asciz	"  -- Device PSID "

	.comm	_DUMP_PREFIX_NONE,4,2           ; @DUMP_PREFIX_NONE
	.comm	_MLXFW_MFA2_TLV_COMPONENT_PTR,4,2 ; @MLXFW_MFA2_TLV_COMPONENT_PTR
l_.str.5:                               ; @.str.5
	.asciz	"Device %d has no components\n"

l_.str.6:                               ; @.str.6
	.asciz	"Device %d COMPONENT_PTR TLV is not valid\n"

l_.str.7:                               ; @.str.7
	.asciz	"  -- Component index %d\n"

	.no_dead_strip	_mlxfw_mfa2_file_dev_validate
.subsections_via_symbols
