	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxfw_mfa2_file_init           ## -- Begin function mlxfw_mfa2_file_init
	.p2align	4, 0x90
_mlxfw_mfa2_file_init:                  ## @mlxfw_mfa2_file_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %edi
	movl	$48, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, 40(%rax)
	movq	(%r14), %rbx
	movq	_mlxfw_mfa2_fingerprint_len@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_NLA_ALIGN
	movslq	%eax, %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	callq	_mlxfw_mfa2_tlv_get
	leaq	L_.str(%rip), %r12
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	movq	%rax, %r13
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_mlxfw_mfa2_tlv_multi_get
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_mlxfw_mfa2_tlv_multi_child
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_mlxfw_mfa2_tlv_package_descriptor_get
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_mlxfw_mfa2_tlv_next
	movl	%eax, 32(%r15)
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	12(%rbx), %edi
	callq	_be16_to_cpu
	movq	%rax, 24(%r15)
	movl	32(%r15), %esi
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_mlxfw_mfa2_tlv_advance
	movl	%eax, 36(%r15)
	movl	8(%rbx), %edi
	callq	_be16_to_cpu
	movq	%rax, 16(%r15)
	movq	(%r14), %r14
	movl	4(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, %edi
	callq	_NLA_ALIGN
	movslq	%eax, %rsi
	addq	%r14, %rsi
	movq	%rsi, (%r15)
	movq	%r15, %rdi
	callq	_mlxfw_mfa2_valid_ptr
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movl	(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, 8(%r15)
	movq	(%r15), %rcx
	cltq
	leaq	(%rcx,%rax), %rsi
	decq	%rsi
	movq	%r15, %rdi
	callq	_mlxfw_mfa2_valid_ptr
	testl	%eax, %eax
	je	LBB0_12
## %bb.16:
	movq	%r15, %rdi
	callq	_mlxfw_mfa2_file_validate
	testl	%eax, %eax
	je	LBB0_14
## %bb.17:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_4:
	leaq	L_.str.1(%rip), %r12
LBB0_13:
	movq	%r12, %rdi
	callq	_pr_err
LBB0_14:
	movq	%r15, %rdi
	callq	_kfree
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_15:
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_8:
	leaq	L_.str.2(%rip), %r12
	jmp	LBB0_13
LBB0_10:
	leaq	L_.str.3(%rip), %r12
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str.4(%rip), %r12
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mlxfw_mfa2_fingerprint_len,4,2 ## @mlxfw_mfa2_fingerprint_len
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not parse package descriptor TLV\n"

L_.str.1:                               ## @.str.1
	.asciz	"First TLV is not of valid multi type\n"

L_.str.2:                               ## @.str.2
	.asciz	"First device TLV is not valid\n"

L_.str.3:                               ## @.str.3
	.asciz	"Component block is out side the file\n"

L_.str.4:                               ## @.str.4
	.asciz	"Component block size is too big\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxfw_mfa2_file_init           ; -- Begin function mlxfw_mfa2_file_init
	.p2align	2
_mlxfw_mfa2_file_init:                  ; @mlxfw_mfa2_file_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w0, #1
	mov	w1, #48
	bl	_kcalloc
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #40]
	ldr	x21, [x20]
Lloh3:
	adrp	x8, _mlxfw_mfa2_fingerprint_len@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mlxfw_mfa2_fingerprint_len@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_NLA_ALIGN
	add	x1, x21, w0, sxtw
	mov	x0, x19
	bl	_mlxfw_mfa2_tlv_get
	cbz	x0, LBB0_11
; %bb.2:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	bl	_mlxfw_mfa2_tlv_multi_get
	cbz	x0, LBB0_12
; %bb.3:
	mov	x1, x0
	mov	x0, x19
	bl	_mlxfw_mfa2_tlv_multi_child
	cbz	x0, LBB0_14
; %bb.4:
	mov	x1, x0
	mov	x0, x19
	bl	_mlxfw_mfa2_tlv_package_descriptor_get
	cbz	x0, LBB0_11
; %bb.5:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x22
	bl	_mlxfw_mfa2_tlv_next
	str	w0, [x19, #32]
	cbz	w0, LBB0_16
; %bb.6:
	ldr	w0, [x21, #12]
	bl	_be16_to_cpu
	mov	x2, x0
	str	x0, [x19, #24]
	ldr	w1, [x19, #32]
	mov	x0, x19
	bl	_mlxfw_mfa2_tlv_advance
	str	w0, [x19, #36]
	ldr	w0, [x21, #8]
	bl	_be16_to_cpu
	str	x0, [x19, #16]
	ldr	x20, [x20]
	ldr	w0, [x21, #4]
	bl	_be32_to_cpu
	bl	_NLA_ALIGN
	add	x1, x20, w0, sxtw
	str	x1, [x19]
	mov	x0, x19
	bl	_mlxfw_mfa2_valid_ptr
	cbz	w0, LBB0_17
; %bb.7:
	ldr	w0, [x21]
	bl	_be32_to_cpu
	str	w0, [x19, #8]
	ldr	x8, [x19]
	add	x8, x8, w0, sxtw
	sub	x1, x8, #1
	mov	x0, x19
	bl	_mlxfw_mfa2_valid_ptr
	cbz	w0, LBB0_18
; %bb.8:
	mov	x0, x19
	bl	_mlxfw_mfa2_file_validate
	cbz	w0, LBB0_14
; %bb.9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_13:
	bl	_pr_err
LBB0_14:
	mov	x0, x19
	bl	_kfree
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_16:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_17:
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_18:
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mlxfw_mfa2_fingerprint_len,4,2 ; @mlxfw_mfa2_fingerprint_len
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not parse package descriptor TLV\n"

l_.str.1:                               ; @.str.1
	.asciz	"First TLV is not of valid multi type\n"

l_.str.2:                               ; @.str.2
	.asciz	"First device TLV is not valid\n"

l_.str.3:                               ; @.str.3
	.asciz	"Component block is out side the file\n"

l_.str.4:                               ; @.str.4
	.asciz	"Component block size is too big\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
