	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm80_probe
_lm80_probe:                            ## @lm80_probe
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	4(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, 16(%rax)
	movq	%rax, %rdi
	addq	$8, %rdi
	callq	_mutex_init
	movq	%rbx, %rdi
	callq	_lm80_init_client
	movl	$1, %edi
	callq	_LM80_REG_FAN_MIN
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_lm80_read_value
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movq	(%r15), %rcx
	movq	_f_min@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movl	%eax, (%rcx)
	movl	$2, %edi
	callq	_LM80_REG_FAN_MIN
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_lm80_read_value
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	(%r15), %rcx
	movq	(%r12), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movl	%eax, 4(%rcx)
	movl	(%rbx), %esi
	movq	_lm80_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_devm_hwmon_device_register_with_groups
	movq	%rax, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR_OR_ZERO                ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_f_min,8,3                      ## @f_min
	.comm	_lm80_groups,4,2                ## @lm80_groups
	.no_dead_strip	_lm80_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm80_probe
_lm80_probe:                            ; @lm80_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	add	x19, x0, #4
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	str	x20, [x0, #16]
	add	x0, x0, #8
	bl	_mutex_init
	mov	x0, x20
	bl	_lm80_init_client
	mov	w0, #1
	bl	_LM80_REG_FAN_MIN
	mov	x1, x0
	mov	x0, x20
	bl	_lm80_read_value
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	x8, [x21]
Lloh3:
	adrp	x22, _f_min@GOTPAGE
Lloh4:
	ldr	x22, [x22, _f_min@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	x8, [x8, x9, lsl #3]
	str	w0, [x8]
	mov	w0, #2
	bl	_LM80_REG_FAN_MIN
	mov	x1, x0
	mov	x0, x20
	bl	_lm80_read_value
	tbnz	w0, #31, LBB0_5
; %bb.3:
	ldr	x8, [x21]
	ldr	x9, [x22]
	ldr	x8, [x8, x9, lsl #3]
	str	w0, [x8, #4]
	ldr	w1, [x20]
Lloh5:
	adrp	x8, _lm80_groups@GOTPAGE
Lloh6:
	ldr	x8, [x8, _lm80_groups@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_devm_hwmon_device_register_with_groups
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR_OR_ZERO
LBB0_4:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_f_min,8,3                      ; @f_min
	.comm	_lm80_groups,4,2                ; @lm80_groups
	.no_dead_strip	_lm80_probe
.subsections_via_symbols
