	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_hwmon_register             ## -- Begin function nfp_hwmon_register
	.p2align	4, 0x90
_nfp_hwmon_register:                    ## @nfp_hwmon_register
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_CONFIG_HWMON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_REACHABLE
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.6:
	movq	8(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	_nfp_chip_info@GOTPCREL(%rip), %rcx
	movq	%rbx, %rdx
	xorl	%r8d, %r8d
	callq	_hwmon_device_register_with_info
	movl	%eax, (%rbx)
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_PTR_ERR_OR_ZERO                ## TAILCALL
LBB0_2:
	movl	16(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_nfp_warn
	jmp	LBB0_5
LBB0_4:
	movl	16(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_nfp_info
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_HWMON,4,2               ## @CONFIG_HWMON
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"not registering HWMON (no NSP info)\n"

L_.str.1:                               ## @.str.1
	.asciz	"not registering HWMON (NSP doesn't report sensors)\n"

L_.str.2:                               ## @.str.2
	.asciz	"nfp"

	.comm	_nfp_chip_info,4,2              ## @nfp_chip_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_hwmon_register             ; -- Begin function nfp_hwmon_register
	.p2align	2
_nfp_hwmon_register:                    ; @nfp_hwmon_register
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _CONFIG_HWMON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG_HWMON@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_IS_REACHABLE
	cbz	w0, LBB0_6
; %bb.1:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.3:
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh5:
	adrp	x3, _nfp_chip_info@GOTPAGE
Lloh6:
	ldr	x3, [x3, _nfp_chip_info@GOTPAGEOFF]
	mov	x2, x19
	mov	x4, #0
	bl	_hwmon_device_register_with_info
	str	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR_OR_ZERO
LBB0_4:
	ldr	w0, [x19, #16]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nfp_warn
	b	LBB0_6
LBB0_5:
	ldr	w0, [x19, #16]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_nfp_info
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_HWMON,4,2               ; @CONFIG_HWMON
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"not registering HWMON (no NSP info)\n"

l_.str.1:                               ; @.str.1
	.asciz	"not registering HWMON (NSP doesn't report sensors)\n"

l_.str.2:                               ; @.str.2
	.asciz	"nfp"

	.comm	_nfp_chip_info,4,2              ; @nfp_chip_info
.subsections_via_symbols
