	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_nsp_load_fw_extended_msg
_nfp_nsp_load_fw_extended_msg:          ## @nfp_nsp_load_fw_extended_msg
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_NFP_FW_LOAD_RET_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FIELD_GET
	movl	%eax, %r12d
	movq	_NFP_FW_LOAD_RET_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_FIELD_GET
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_nfp_nsp_has_stored_fw_load
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	cmpl	$2, %r12d
	je	LBB0_2
## %bb.3:
	testl	%r12d, %r12d
	jne	LBB0_7
## %bb.4:
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rcx
	movq	%rcx, %rax
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.5:
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
LBB0_6:
	cmpl	$10, %r14d
	cmoveq	%rcx, %rax
	jmp	LBB0_8
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %r13
	leaq	_nfp_nsp_load_fw_extended_msg.major_msg(%rip), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r12d
	jae	LBB0_12
## %bb.9:
	movq	%r13, %rbx
	leaq	_nfp_nsp_load_fw_extended_msg.minor_msg(%rip), %r13
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	movl	(%r15), %esi
	movl	%r12d, %ecx
	leaq	_nfp_nsp_load_fw_extended_msg.major_msg(%rip), %rdx
	movq	(%rdx,%rcx,8), %rcx
	cmpl	%eax, %r14d
	jae	LBB0_13
## %bb.10:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	sete	%al
	leal	44(%rax,%rax), %r8d
	movl	%r14d, %eax
	movq	(%r13,%rax,8), %r9
	leaq	L_.str.20(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nfp_printk                     ## TAILCALL
LBB0_12:
	movl	(%r15), %esi
	movslq	%ebx, %rcx
	leaq	L_.str.18(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nfp_printk                     ## TAILCALL
LBB0_13:
	leaq	L_.str.19(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %r8d
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nfp_printk                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__const
	.p2align	4                               ## @nfp_nsp_load_fw_extended_msg.major_msg
_nfp_nsp_load_fw_extended_msg.major_msg:
	.quad	L_.str
	.quad	L_.str.1
	.quad	L_.str.2

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Firmware from driver loaded"

L_.str.1:                               ## @.str.1
	.asciz	"Firmware from flash loaded"

L_.str.2:                               ## @.str.2
	.asciz	"Firmware loading failure"

	.section	__DATA,__const
	.p2align	4                               ## @nfp_nsp_load_fw_extended_msg.minor_msg
_nfp_nsp_load_fw_extended_msg.minor_msg:
	.quad	L_.str.3
	.quad	L_.str.4
	.quad	L_.str.5
	.quad	L_.str.6
	.quad	L_.str.7
	.quad	L_.str.8
	.quad	L_.str.9
	.quad	L_.str.10
	.quad	L_.str.11
	.quad	L_.str.12
	.quad	L_.str.13
	.quad	L_.str.14
	.quad	L_.str.15
	.quad	L_.str.16
	.quad	L_.str.17

	.section	__TEXT,__cstring,cstring_literals
L_.str.3:                               ## @.str.3
	.space	1

L_.str.4:                               ## @.str.4
	.asciz	"no named partition on flash"

L_.str.5:                               ## @.str.5
	.asciz	"error reading from flash"

L_.str.6:                               ## @.str.6
	.asciz	"can not deflate"

L_.str.7:                               ## @.str.7
	.asciz	"not a trusted file"

L_.str.8:                               ## @.str.8
	.asciz	"can not parse FW file"

L_.str.9:                               ## @.str.9
	.asciz	"MIP not found in FW file"

L_.str.10:                              ## @.str.10
	.asciz	"null firmware name in MIP"

L_.str.11:                              ## @.str.11
	.asciz	"FW version none"

L_.str.12:                              ## @.str.12
	.asciz	"FW build number none"

L_.str.13:                              ## @.str.13
	.asciz	"no FW selection policy HWInfo key found"

L_.str.14:                              ## @.str.14
	.asciz	"static FW selection policy"

L_.str.15:                              ## @.str.15
	.asciz	"FW version has precedence"

L_.str.16:                              ## @.str.16
	.asciz	"different FW application load requested"

L_.str.17:                              ## @.str.17
	.asciz	"development build"

	.comm	_NFP_FW_LOAD_RET_MAJOR,4,2      ## @NFP_FW_LOAD_RET_MAJOR
	.comm	_NFP_FW_LOAD_RET_MINOR,4,2      ## @NFP_FW_LOAD_RET_MINOR
	.comm	_KERN_DEBUG,8,3                 ## @KERN_DEBUG
	.comm	_KERN_ERR,8,3                   ## @KERN_ERR
	.comm	_KERN_INFO,8,3                  ## @KERN_INFO
L_.str.18:                              ## @.str.18
	.asciz	"FW loading status: %x\n"

L_.str.19:                              ## @.str.19
	.asciz	"%s, reason code: %d\n"

L_.str.20:                              ## @.str.20
	.asciz	"%s%c %s\n"

	.no_dead_strip	_nfp_nsp_load_fw_extended_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_nsp_load_fw_extended_msg
_nfp_nsp_load_fw_extended_msg:          ; @nfp_nsp_load_fw_extended_msg
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _NFP_FW_LOAD_RET_MAJOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFP_FW_LOAD_RET_MAJOR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_FIELD_GET
	mov	x23, x0
Lloh3:
	adrp	x8, _NFP_FW_LOAD_RET_MINOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NFP_FW_LOAD_RET_MINOR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_FIELD_GET
	mov	x20, x0
	mov	x0, x19
	bl	_nfp_nsp_has_stored_fw_load
	cbz	w0, LBB0_7
; %bb.1:
Lloh6:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh8:
	adrp	x9, _KERN_INFO@GOTPAGE
Lloh9:
	ldr	x9, [x9, _KERN_INFO@GOTPAGEOFF]
	cmp	w20, #0
	ccmp	w20, #10, #4, ne
Lloh10:
	adrp	x10, _KERN_DEBUG@GOTPAGE
Lloh11:
	ldr	x10, [x10, _KERN_DEBUG@GOTPAGEOFF]
	csel	x10, x10, x9, eq
	cmp	w23, #0
	csel	x9, x9, x10, ne
	cmp	w23, #2
	csel	x8, x8, x9, eq
	ldr	x22, [x8]
Lloh12:
	adrp	x24, _nfp_nsp_load_fw_extended_msg.major_msg@PAGE
Lloh13:
	add	x24, x24, _nfp_nsp_load_fw_extended_msg.major_msg@PAGEOFF
	mov	x0, x24
	bl	_ARRAY_SIZE
	cmp	w23, w0
	b.hs	LBB0_4
; %bb.2:
Lloh14:
	adrp	x21, _nfp_nsp_load_fw_extended_msg.minor_msg@PAGE
Lloh15:
	add	x21, x21, _nfp_nsp_load_fw_extended_msg.minor_msg@PAGEOFF
	mov	x0, x21
	bl	_ARRAY_SIZE
	ldr	w1, [x19]
	ldr	x3, [x24, w23, uxtw #3]
	cmp	w20, w0
	b.hs	LBB0_5
; %bb.3:
	ldr	x8, [x21, w20, uxtw #3]
	cmp	w20, #0
	mov	w9, #44
	mov	w10, #46
	csel	x9, x10, x9, eq
	stp	x9, x8, [sp]
Lloh16:
	adrp	x2, l_.str.20@PAGE
Lloh17:
	add	x2, x2, l_.str.20@PAGEOFF
	b	LBB0_6
LBB0_4:
	ldr	w1, [x19]
	sxtw	x3, w21
Lloh18:
	adrp	x2, l_.str.18@PAGE
Lloh19:
	add	x2, x2, l_.str.18@PAGEOFF
	mov	x0, x22
	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
	b	_nfp_printk
LBB0_5:
	str	x20, [sp]
Lloh20:
	adrp	x2, l_.str.19@PAGE
Lloh21:
	add	x2, x2, l_.str.19@PAGEOFF
LBB0_6:
	mov	x0, x22
	bl	_nfp_printk
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @nfp_nsp_load_fw_extended_msg.major_msg
_nfp_nsp_load_fw_extended_msg.major_msg:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Firmware from driver loaded"

l_.str.1:                               ; @.str.1
	.asciz	"Firmware from flash loaded"

l_.str.2:                               ; @.str.2
	.asciz	"Firmware loading failure"

	.section	__DATA,__const
	.p2align	3                               ; @nfp_nsp_load_fw_extended_msg.minor_msg
_nfp_nsp_load_fw_extended_msg.minor_msg:
	.quad	l_.str.3
	.quad	l_.str.4
	.quad	l_.str.5
	.quad	l_.str.6
	.quad	l_.str.7
	.quad	l_.str.8
	.quad	l_.str.9
	.quad	l_.str.10
	.quad	l_.str.11
	.quad	l_.str.12
	.quad	l_.str.13
	.quad	l_.str.14
	.quad	l_.str.15
	.quad	l_.str.16
	.quad	l_.str.17

	.section	__TEXT,__cstring,cstring_literals
l_.str.3:                               ; @.str.3
	.space	1

l_.str.4:                               ; @.str.4
	.asciz	"no named partition on flash"

l_.str.5:                               ; @.str.5
	.asciz	"error reading from flash"

l_.str.6:                               ; @.str.6
	.asciz	"can not deflate"

l_.str.7:                               ; @.str.7
	.asciz	"not a trusted file"

l_.str.8:                               ; @.str.8
	.asciz	"can not parse FW file"

l_.str.9:                               ; @.str.9
	.asciz	"MIP not found in FW file"

l_.str.10:                              ; @.str.10
	.asciz	"null firmware name in MIP"

l_.str.11:                              ; @.str.11
	.asciz	"FW version none"

l_.str.12:                              ; @.str.12
	.asciz	"FW build number none"

l_.str.13:                              ; @.str.13
	.asciz	"no FW selection policy HWInfo key found"

l_.str.14:                              ; @.str.14
	.asciz	"static FW selection policy"

l_.str.15:                              ; @.str.15
	.asciz	"FW version has precedence"

l_.str.16:                              ; @.str.16
	.asciz	"different FW application load requested"

l_.str.17:                              ; @.str.17
	.asciz	"development build"

	.comm	_NFP_FW_LOAD_RET_MAJOR,4,2      ; @NFP_FW_LOAD_RET_MAJOR
	.comm	_NFP_FW_LOAD_RET_MINOR,4,2      ; @NFP_FW_LOAD_RET_MINOR
	.comm	_KERN_DEBUG,8,3                 ; @KERN_DEBUG
	.comm	_KERN_ERR,8,3                   ; @KERN_ERR
	.comm	_KERN_INFO,8,3                  ; @KERN_INFO
l_.str.18:                              ; @.str.18
	.asciz	"FW loading status: %x\n"

l_.str.19:                              ; @.str.19
	.asciz	"%s, reason code: %d\n"

l_.str.20:                              ; @.str.20
	.asciz	"%s%c %s\n"

	.no_dead_strip	_nfp_nsp_load_fw_extended_msg
.subsections_via_symbols
