	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nct7802_write_fan_min
_nct7802_write_fan_min:                 ## @nct7802_write_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movl	$1350000, %edi                  ## imm = 0x149970
	movq	%rcx, %rsi
	callq	_DIV_ROUND_CLOSEST
	movq	%rax, %rdi
	jmp	LBB0_3
LBB0_1:
	movl	$8191, %edi                     ## imm = 0x1FFF
LBB0_3:
	xorl	%esi, %esi
	movl	$8191, %edx                     ## imm = 0x1FFF
	callq	_clamp_val
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_mutex_lock
	movl	4(%r12), %edi
	movzbl	%bl, %edx
	movl	%r15d, %esi
	callq	_regmap_write
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movl	4(%r12), %edi
	shrq	$5, %rbx
	andl	$248, %ebx
	movl	%r14d, %esi
	movq	%rbx, %rdx
	callq	_regmap_write
LBB0_5:
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nct7802_write_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_write_fan_min
_nct7802_write_fan_min:                 ; @nct7802_write_fan_min
	.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, x2
	mov	x21, x1
	mov	x19, x0
	cbz	x3, LBB0_2
; %bb.1:
	mov	w0, #39280
	movk	w0, #20, lsl #16
	mov	x1, x3
	bl	_DIV_ROUND_CLOSEST
	b	LBB0_3
LBB0_2:
	mov	w0, #8191
LBB0_3:
	mov	w1, #0
	mov	w2, #8191
	bl	_clamp_val
	mov	x22, x0
	mov	x0, x19
	bl	_mutex_lock
	ldr	w0, [x19, #4]
	and	x2, x22, #0xff
	mov	x1, x21
	bl	_regmap_write
	tbnz	w0, #31, LBB0_5
; %bb.4:
	ldr	w0, [x19, #4]
	lsr	x8, x22, #5
	and	x2, x8, #0xf8
	mov	x1, x20
	bl	_regmap_write
LBB0_5:
	mov	x21, x0
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nct7802_write_fan_min
.subsections_via_symbols
