	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_devlink_param_u8_get
_nfp_devlink_param_u8_get:              ## @nfp_devlink_param_u8_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_devlink_priv
	movq	%rax, %r12
	movq	_nfp_devlink_u8_args@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rbx, %rax
	jbe	LBB0_1
## %bb.2:
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	(%r14), %r13
	movl	(%r12), %edi
	callq	_nfp_nsp_open
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_nfp_warn
	jmp	LBB0_13
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_4:
	leaq	(%rbx,%rbx,4), %r14
	movq	(%r13,%r14,8), %rdx
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_snprintf
	movl	32(%r13,%r14,8), %ecx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$32, %edx
	callq	_nfp_nsp_hwinfo_lookup_optional
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_nfp_warn
	jmp	LBB0_12
LBB0_6:
	leaq	-80(%rbp), %rdi
	leaq	-104(%rbp), %rdx
	xorl	%esi, %esi
	callq	_kstrtol
	movq	-104(%rbp), %rcx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	testq	%rcx, %rcx
	js	LBB0_9
## %bb.8:
	cmpq	8(%r13,%r14,8), %rcx
	jle	LBB0_11
LBB0_9:
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	leaq	(,%r14,8), %rax
	addq	%r13, %rax
	movl	(%r12), %edi
	movq	(%rax), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_nfp_warn
	movl	16(%r13,%r14,8), %ebx
	testl	%ebx, %ebx
	js	LBB0_12
## %bb.10:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	movl	-84(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_12
LBB0_11:
	movq	24(%r13,%r14,8), %rax
	movl	(%rax,%rcx,4), %eax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%ebx, %ebx
LBB0_12:
	movq	%r15, %rdi
	callq	_nfp_nsp_close
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_nfp_devlink_u8_args,8,3        ## @nfp_devlink_u8_args
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't access NSP: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"HWinfo lookup failed: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"HWinfo '%s' value %li invalid\n"

	.no_dead_strip	_nfp_devlink_param_u8_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_param_u8_get
_nfp_devlink_param_u8_get:              ; @nfp_devlink_param_u8_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	bl	_devlink_priv
	mov	x22, x0
Lloh3:
	adrp	x19, _nfp_devlink_u8_args@GOTPAGE
Lloh4:
	ldr	x19, [x19, _nfp_devlink_u8_args@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	cmp	x0, x21
	b.ls	LBB0_3
; %bb.1:
	ldr	x25, [x19]
	ldr	w0, [x22]
	bl	_nfp_nsp_open
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_PTR_ERR
	mov	x23, x0
	ldr	w0, [x22]
	str	x23, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nfp_warn
	b	LBB0_13
LBB0_3:
Lloh7:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_13
LBB0_4:
	mov	w8, #40
	madd	x26, x21, x8, x25
	ldr	x2, [x26]
	add	x0, sp, #24
	mov	w1, #32
	bl	_snprintf
	ldr	w3, [x26, #32]
	add	x1, sp, #24
	mov	x0, x19
	mov	w2, #32
	bl	_nfp_nsp_hwinfo_lookup_optional
	cbz	w0, LBB0_6
; %bb.5:
	mov	x23, x0
	ldr	w0, [x22]
	str	x23, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_nfp_warn
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_12
LBB0_6:
	add	x0, sp, #24
	add	x2, sp, #16
	mov	w1, #0
	bl	_kstrtol
	mov	x24, x0
	ldr	x8, [sp, #16]
	cbnz	w0, LBB0_9
; %bb.7:
	tbnz	x8, #63, LBB0_9
; %bb.8:
	mov	w9, #40
	madd	x9, x21, x9, x25
	ldr	x9, [x9, #8]
	cmp	x8, x9
	b.le	LBB0_11
LBB0_9:
	ldr	w0, [x22]
	ldr	x9, [x26]
	stp	x9, x8, [sp]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_nfp_warn
	mov	w8, #40
	madd	x8, x21, x8, x25
	ldr	w23, [x8, #16]
	tbnz	w23, #31, LBB0_12
; %bb.10:
	str	w23, [x20]
	mov	x23, x24
	b	LBB0_12
LBB0_11:
	mov	w23, #0
	mov	w9, #40
	madd	x9, x21, x9, x25
	ldr	x9, [x9, #24]
	ldr	w8, [x9, x8, lsl #2]
	str	w8, [x20]
LBB0_12:
	mov	x0, x19
	bl	_nfp_nsp_close
LBB0_13:
	ldr	x8, [sp, #56]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x23
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_nfp_devlink_u8_args,8,3        ; @nfp_devlink_u8_args
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't access NSP: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"HWinfo lookup failed: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"HWinfo '%s' value %li invalid\n"

	.no_dead_strip	_nfp_devlink_param_u8_get
.subsections_via_symbols
