	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxreg_fan_read
_mlxreg_fan_read:                       ## @mlxreg_fan_read
	.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	%r8, %r14
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movl	%esi, %ebx
	callq	_dev_get_drvdata
	movq	%rax, %r15
	cmpl	$129, %ebx
	je	LBB0_9
## %bb.1:
	cmpl	$132, %ebx
	jne	LBB0_12
## %bb.2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	16(%r15), %r14
	movslq	%r12d, %rbx
	cmpq	$131, %r13
	je	LBB0_6
## %bb.3:
	cmpq	$130, %r13
	jne	LBB0_12
## %bb.4:
	movl	4(%r15), %edi
	movl	4(%r14,%rbx,8), %esi
	leaq	-48(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_13
## %bb.5:
	movq	-48(%rbp), %rdi
	movl	8(%r15), %edx
	movl	12(%r15), %esi
	callq	_MLXREG_FAN_GET_RPM
	jmp	LBB0_8
LBB0_9:
	cmpq	$128, %r13
	jne	LBB0_12
## %bb.10:
	movl	(%r15), %esi
	movl	4(%r15), %edi
	leaq	-48(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	movq	-48(%rbp), %rax
	movq	%rax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_12:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	4(%r15), %edi
	movl	4(%r14,%rbx,8), %esi
	leaq	-48(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_13
## %bb.7:
	movq	-48(%rbp), %rdi
	movl	(%r14,%rbx,8), %esi
	callq	_MLXREG_FAN_GET_FAULT
LBB0_8:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_mlxreg_fan_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxreg_fan_read
_mlxreg_fan_read:                       ; @mlxreg_fan_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x4
	mov	x22, x3
	mov	x21, x2
	mov	x23, x1
	bl	_dev_get_drvdata
	mov	x20, x0
	cmp	w23, #129
	b.eq	LBB0_6
; %bb.1:
	cmp	w23, #132
	b.ne	LBB0_9
; %bb.2:
	ldr	x23, [x20, #16]
	sxtw	x22, w22
	cmp	x21, #131
	b.eq	LBB0_11
; %bb.3:
	cmp	x21, #130
	b.ne	LBB0_9
; %bb.4:
	ldr	w0, [x20, #4]
	add	x8, x23, x22, lsl #3
	ldr	w1, [x8, #4]
	add	x2, sp, #8
	bl	_regmap_read
	cbnz	w0, LBB0_10
; %bb.5:
	ldr	x0, [sp, #8]
	ldp	w2, w1, [x20, #8]
	bl	_MLXREG_FAN_GET_RPM
	b	LBB0_13
LBB0_6:
	cmp	x21, #128
	b.ne	LBB0_9
; %bb.7:
	ldp	w1, w0, [x20]
	add	x2, sp, #8
	bl	_regmap_read
	cbnz	w0, LBB0_10
; %bb.8:
	ldr	x8, [sp, #8]
	str	x8, [x19]
	b	LBB0_10
LBB0_9:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
	add	sp, sp, #80
	ret
LBB0_11:
	ldr	w0, [x20, #4]
	add	x8, x23, x22, lsl #3
	ldr	w1, [x8, #4]
	add	x2, sp, #8
	bl	_regmap_read
	cbnz	w0, LBB0_10
; %bb.12:
	ldr	x0, [sp, #8]
	lsl	x8, x22, #3
	ldr	w1, [x23, x8]
	bl	_MLXREG_FAN_GET_FAULT
LBB0_13:
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_mlxreg_fan_read
.subsections_via_symbols
