	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wf_fcu_fan_set_pwm
_wf_fcu_fan_set_pwm:                    ## @wf_fcu_fan_set_pwm
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	(%rdi), %rax
	movq	16(%rax), %rdi
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	cmpl	%esi, %ecx
	cmovgl	%ecx, %esi
	cmpl	%edx, %esi
	cmovgel	%edx, %esi
	movl	%esi, 8(%rax)
	imull	$2559, %esi, %ecx               ## imm = 0x9FF
	movslq	%ecx, %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$38, %rcx
	addl	%edx, %ecx
	movb	%cl, -2(%rbp)
	movl	12(%rax), %eax
	leal	(%rax,%rax), %esi
	addl	$48, %esi
	leaq	-2(%rbp), %rdx
	movl	$1, %ecx
	callq	_wf_fcu_write_reg
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	sarl	$31, %eax
	andl	%edx, %eax
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_wf_fcu_fan_set_pwm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wf_fcu_fan_set_pwm
_wf_fcu_fan_set_pwm:                    ; @wf_fcu_fan_set_pwm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
	ldp	w9, w10, [x8]
	cmp	w9, w1
	csel	w9, w9, w1, gt
	ldr	x0, [x8, #16]
	cmp	w9, w10
	csel	w9, w9, w10, lt
	str	w9, [x8, #8]
	mov	w10, #2559
	mul	w9, w9, w10
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	lsr	x9, x9, #38
	add	w9, w9, w10
	sturb	w9, [x29, #-2]
	ldr	w8, [x8, #12]
	lsl	w8, w8, #1
	add	w1, w8, #48
	sub	x2, x29, #2
	mov	w3, #1
	bl	_wf_fcu_write_reg
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w8, w8
	and	w0, w8, w0, asr #31
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_wf_fcu_fan_set_pwm
.subsections_via_symbols
