	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nct7802_read_fan_min
_nct7802_read_fan_min:                  ## @nct7802_read_fan_min
	.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
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_mutex_lock
	movl	4(%r14), %edi
	leaq	-32(%rbp), %rdx
	movl	%ebx, %esi
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movl	4(%r14), %edi
	leaq	-28(%rbp), %rdx
	movl	%r15d, %esi
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	movl	-28(%rbp), %esi
	shll	$5, %esi
	andl	$7936, %esi                     ## imm = 0x1F00
	orl	-32(%rbp), %esi
	je	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	cmpl	$8191, %esi                     ## imm = 0x1FFF
	je	LBB0_8
## %bb.4:
	movl	$1350000, %edi                  ## imm = 0x149970
	callq	_DIV_ROUND_CLOSEST
LBB0_6:
	movl	%eax, %ebx
LBB0_8:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	$1350000, %ebx                  ## imm = 0x149970
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nct7802_read_fan_min
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nct7802_read_fan_min
_nct7802_read_fan_min:                  ; @nct7802_read_fan_min
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_mutex_lock
	ldr	w0, [x19, #4]
	add	x2, sp, #12
	mov	x1, x20
	bl	_regmap_read
	tbnz	w0, #31, LBB0_7
; %bb.1:
	ldr	w0, [x19, #4]
	add	x2, sp, #8
	mov	x1, x21
	bl	_regmap_read
	tbnz	w0, #31, LBB0_7
; %bb.2:
	ldp	w9, w8, [sp, #8]
	lsl	w9, w9, #5
	and	w9, w9, #0x1f00
	orr	w1, w9, w8
	cbz	w1, LBB0_5
; %bb.3:
	mov	w8, #8191
	cmp	w1, w8
	b.ne	LBB0_6
; %bb.4:
	mov	w20, #0
	b	LBB0_8
LBB0_5:
	mov	w20, #39280
	movk	w20, #20, lsl #16
	b	LBB0_8
LBB0_6:
	mov	w0, #39280
	movk	w0, #20, lsl #16
	bl	_DIV_ROUND_CLOSEST
LBB0_7:
	mov	x20, x0
LBB0_8:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nct7802_read_fan_min
.subsections_via_symbols
