	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hl_hwmon_init                  ## -- Begin function hl_hwmon_init
	.p2align	4, 0x90
_hl_hwmon_init:                         ## @hl_hwmon_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	40(%rdi), %rdi
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	movq	8(%rbx), %rdi
LBB0_2:
	xorl	%r14d, %r14d
	cmpl	$0, (%rbx)
	je	LBB0_3
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpl	$0, 32(%rbx)
	je	LBB0_9
## %bb.4:
	movq	24(%rbx), %rcx
	cmpq	$0, 8(%rcx)
	je	LBB0_8
## %bb.5:
	movq	_hl_hwmon_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%rcx)
	movl	36(%rbx), %esi
	xorl	%r14d, %r14d
	movq	%rbx, %rdx
	xorl	%r8d, %r8d
	callq	_hwmon_device_register_with_info
	movl	%eax, 16(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	16(%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, %r14d
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_9
LBB0_8:
	movq	8(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_9
LBB0_7:
	movq	8(%rbx), %r15
	movl	16(%rbx), %edi
	callq	_dev_name
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_info
	movl	$1, (%rbx)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_hl_hwmon_ops,4,2               ## @hl_hwmon_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to register hwmon device: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: add sensors information\n"

L_.str.2:                               ## @.str.2
	.asciz	"no available sensors\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hl_hwmon_init                  ; -- Begin function hl_hwmon_init
	.p2align	2
_hl_hwmon_init:                         ; @hl_hwmon_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x0, [x0, #40]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	cbnz	w8, LBB0_8
	b	LBB0_3
LBB0_2:
	ldr	x0, [x19, #8]
	ldr	w8, [x19]
	cbnz	w8, LBB0_8
LBB0_3:
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_8
; %bb.4:
	ldr	x3, [x19, #24]
	ldr	x8, [x3, #8]
	cbz	x8, LBB0_7
; %bb.5:
Lloh0:
	adrp	x8, _hl_hwmon_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hl_hwmon_ops@GOTPAGEOFF]
	str	x8, [x3]
	ldr	w1, [x19, #36]
	mov	x2, x19
	mov	x4, #0
	bl	_hwmon_device_register_with_info
	str	w0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.6:
	ldr	w0, [x19, #16]
	bl	_PTR_ERR
	mov	x20, x0
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_9
LBB0_7:
	ldr	x0, [x19, #8]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_info
LBB0_8:
	mov	w20, #0
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_10:
	ldr	x20, [x19, #8]
	ldr	w0, [x19, #16]
	bl	_dev_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	mov	w20, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_hl_hwmon_ops,4,2               ; @hl_hwmon_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to register hwmon device: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: add sensors information\n"

l_.str.2:                               ; @.str.2
	.asciz	"no available sensors\n"

.subsections_via_symbols
