	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max31785_get_pwm
_max31785_get_pwm:                      ## @max31785_get_pwm
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_percent@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_pmbus_get_fan_rate_device
	cmpl	$10000, %eax                    ## imm = 0x2710
	movl	$10000, %ecx                    ## imm = 0x2710
	cmovbl	%eax, %ecx
	cmpl	$32768, %eax                    ## imm = 0x8000
	cmovael	%ebx, %ecx
	testl	%eax, %eax
	cmovnsl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_percent,4,2                    ## @percent
	.no_dead_strip	_max31785_get_pwm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max31785_get_pwm
_max31785_get_pwm:                      ; @max31785_get_pwm
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _percent@GOTPAGE
Lloh1:
	ldr	x8, [x8, _percent@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	w2, #0
	bl	_pmbus_get_fan_rate_device
	mov	w8, #10000
	cmp	w0, w8
	csel	w8, w0, w8, lo
	lsr	w9, w0, #15
	cmp	w9, #0
	csel	w8, wzr, w8, ne
	cmp	w0, #0
	csel	w0, w0, w8, lt
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_percent,4,2                    ; @percent
	.no_dead_strip	_max31785_get_pwm
.subsections_via_symbols
