	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_devlink_info_get
_nfp_devlink_info_get:                  ## @nfp_devlink_info_get
	.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, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	callq	_devlink_priv
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_devlink_info_driver_name_put
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_18:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	4(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_nfp_hwinfo_lookup
	movq	%rax, %rbx
	movl	4(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_nfp_hwinfo_lookup
	movq	%rax, %r12
	movl	4(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_nfp_hwinfo_lookup
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.2:
	testq	%r12, %r12
	je	LBB0_7
## %bb.3:
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_strlen
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_strlen
	addq	%r14, %r13
	leaq	(%rax,%r13), %rdi
	incq	%rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	movb	$0, (%rax)
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_strcat
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_strcat
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_strcat
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_devlink_info_serial_number_put
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_kfree
	testl	%ebx, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_18
LBB0_7:
	movl	(%r14), %edi
	callq	_nfp_nsp_open
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.19:
	leaq	L_.str.4(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_NL_SET_ERR_MSG_MOD
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_8:
	movq	%r12, %rdi
	callq	_nfp_nsp_has_versions
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_NFP_NSP_VERSION_BUFSZ@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %r15
	movl	(%r14), %edx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_nfp_nsp_versions
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.12:
	movl	(%r14), %ecx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_nfp_devlink_versions_get_nsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.13:
	movl	(%r14), %ecx
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	callq	_nfp_devlink_versions_get_nsp
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_14
LBB0_16:
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_17
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movq	%r12, %rdi
	callq	_nfp_nsp_close
	jmp	LBB0_18
LBB0_14:
	movq	%r15, %rdi
	callq	_kfree
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_15:
	movq	%r12, %rdi
	callq	_nfp_nsp_close
	movq	%r14, %rdi
	movq	%r13, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nfp_devlink_versions_get_hwinfo ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nfp"

L_.str.1:                               ## @.str.1
	.asciz	"assembly.vendor"

L_.str.2:                               ## @.str.2
	.asciz	"assembly.partno"

L_.str.3:                               ## @.str.3
	.asciz	"assembly.serial"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.4:                               ## @.str.4
	.asciz	"can't access NSP"

	.comm	_NFP_NSP_VERSION_BUFSZ,4,2      ## @NFP_NSP_VERSION_BUFSZ
	.no_dead_strip	_nfp_devlink_info_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_devlink_info_get
_nfp_devlink_info_get:                  ; @nfp_devlink_info_get
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x19, x1
	bl	_devlink_priv
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devlink_info_driver_name_put
	mov	x23, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x23
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w0, [x20, #4]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_nfp_hwinfo_lookup
	mov	x22, x0
	ldr	w0, [x20, #4]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_nfp_hwinfo_lookup
	mov	x23, x0
	ldr	w0, [x20, #4]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_nfp_hwinfo_lookup
	cmp	x22, #0
	ccmp	x23, #0, #4, ne
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_5
LBB0_3:
	ldr	w0, [x20]
	bl	_nfp_nsp_open
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.4:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_NL_SET_ERR_MSG_MOD
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_5:
	mov	x24, x0
	mov	x0, x22
	bl	_strlen
	mov	x25, x0
	mov	x0, x23
	bl	_strlen
	mov	x26, x0
	mov	x0, x24
	bl	_strlen
	add	x8, x25, x26
	add	x8, x8, x0
	add	x0, x8, #1
Lloh10:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_13
; %bb.6:
	mov	x25, x0
	strb	wzr, [x0]
	mov	x1, x22
	bl	_strcat
	mov	x0, x25
	mov	x1, x23
	bl	_strcat
	mov	x0, x25
	mov	x1, x24
	bl	_strcat
	mov	x0, x19
	mov	x1, x25
	bl	_devlink_info_serial_number_put
	mov	x23, x0
	mov	x0, x25
	bl	_kfree
	cbnz	w23, LBB0_1
	b	LBB0_3
LBB0_7:
	mov	x0, x22
	bl	_nfp_nsp_has_versions
	cbz	x0, LBB0_17
; %bb.8:
Lloh13:
	adrp	x24, _NFP_NSP_VERSION_BUFSZ@GOTPAGE
Lloh14:
	ldr	x24, [x24, _NFP_NSP_VERSION_BUFSZ@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh15:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_14
; %bb.9:
	mov	x21, x0
	ldr	w2, [x24]
	mov	x0, x22
	mov	x1, x21
	bl	_nfp_nsp_versions
	mov	x23, x0
	cbnz	w0, LBB0_12
; %bb.10:
	ldr	w3, [x24]
	mov	x0, x19
	mov	w1, #0
	mov	x2, x21
	bl	_nfp_devlink_versions_get_nsp
	mov	x23, x0
	cbnz	w0, LBB0_12
; %bb.11:
	ldr	w3, [x24]
	mov	x0, x19
	mov	w1, #1
	mov	x2, x21
	bl	_nfp_devlink_versions_get_nsp
	mov	x23, x0
	cbz	w0, LBB0_16
LBB0_12:
	mov	x0, x21
	bl	_kfree
	b	LBB0_15
LBB0_13:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_1
LBB0_14:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_15:
	mov	x0, x22
	bl	_nfp_nsp_close
	b	LBB0_1
LBB0_16:
	mov	x0, x21
	bl	_kfree
LBB0_17:
	mov	x0, x22
	bl	_nfp_nsp_close
	mov	x0, x20
	mov	x1, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_nfp_devlink_versions_get_hwinfo
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nfp"

l_.str.1:                               ; @.str.1
	.asciz	"assembly.vendor"

l_.str.2:                               ; @.str.2
	.asciz	"assembly.partno"

l_.str.3:                               ; @.str.3
	.asciz	"assembly.serial"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.4:                               ; @.str.4
	.asciz	"can't access NSP"

	.comm	_NFP_NSP_VERSION_BUFSZ,4,2      ; @NFP_NSP_VERSION_BUFSZ
	.no_dead_strip	_nfp_devlink_info_get
.subsections_via_symbols
