	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxfw_mfa2_file_comp_validate
_mlxfw_mfa2_file_comp_validate:         ## @mlxfw_mfa2_file_comp_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%edx, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mlxfw_mfa2_tlv_multi_get
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_mlxfw_mfa2_tlv_multi_validate
	testl	%eax, %eax
	je	LBB0_9
## %bb.4:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mlxfw_mfa2_tlv_multi_child
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_mlxfw_mfa2_tlv_component_descriptor_get
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	movl	12(%rax), %edi
	callq	_be16_to_cpu
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	movl	8(%rbx), %edi
	callq	_be32_to_cpu
	movl	4(%rbx), %edi
	callq	_be32_to_cpu
	movl	(%rbx), %edi
	callq	_be32_to_cpu
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_pr_debug
	movl	$1, %r14d
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_2
LBB0_7:
	leaq	L_.str.3(%rip), %rdi
LBB0_2:
	movl	%r15d, %esi
	callq	_pr_err
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Component %d\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"Component descriptor %d multi TLV error\n"

L_.str.3:                               ## @.str.3
	.asciz	"Component %d does not have a valid descriptor\n"

L_.str.4:                               ## @.str.4
	.asciz	"  -- Component type %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"  -- Offset 0x%llx and size %d\n"

	.no_dead_strip	_mlxfw_mfa2_file_comp_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_comp_validate
_mlxfw_mfa2_file_comp_validate:         ; @mlxfw_mfa2_file_comp_validate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, 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_5
; %bb.1:
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_mlxfw_mfa2_tlv_multi_validate
	cbz	w0, LBB0_9
; %bb.2:
	mov	x0, x20
	mov	x1, x21
	bl	_mlxfw_mfa2_tlv_multi_child
	cbz	x0, LBB0_6
; %bb.3:
	mov	x1, x0
	mov	x0, x20
	bl	_mlxfw_mfa2_tlv_component_descriptor_get
	cbz	x0, LBB0_7
; %bb.4:
	mov	x20, x0
	ldr	w0, [x0, #12]
	bl	_be16_to_cpu
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str.4@PAGE
Lloh3:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_debug
	ldr	w0, [x20, #8]
	bl	_be32_to_cpu
	ldr	w0, [x20, #4]
	bl	_be32_to_cpu
	ldr	w0, [x20]
	bl	_be32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh4:
	adrp	x0, l_.str.5@PAGE
Lloh5:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_debug
	mov	w0, #1
	b	LBB0_9
LBB0_5:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_6:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_8:
	mov	x1, x19
	bl	_pr_err
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Component %d\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"Component descriptor %d multi TLV error\n"

l_.str.3:                               ; @.str.3
	.asciz	"Component %d does not have a valid descriptor\n"

l_.str.4:                               ; @.str.4
	.asciz	"  -- Component type %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"  -- Offset 0x%llx and size %d\n"

	.no_dead_strip	_mlxfw_mfa2_file_comp_validate
.subsections_via_symbols
