	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pwm_fan_update_state
_pwm_fan_update_state:                  ## @pwm_fan_update_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %r8d
	xorl	%ecx, %ecx
	testl	%r8d, %r8d
	cmovlel	%ecx, %r8d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, %r8
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rdi), %rax
	leaq	1(%rcx), %rdx
	cmpq	%rsi, 8(%rax,%rcx,8)
	movq	%rdx, %rcx
	jbe	LBB0_1
## %bb.3:
	decl	%edx
	movl	%edx, %r8d
LBB0_4:
	movl	%r8d, 16(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pwm_fan_update_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pwm_fan_update_state
_pwm_fan_update_state:                  ; @pwm_fan_update_state
	.cfi_startproc
; %bb.0:
	mov	x9, #0
	ldr	w8, [x0]
	cmp	w8, #0
	csel	w8, w8, wzr, gt
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x11, [x0, #8]
	add	x10, x9, #1
	add	x9, x11, x9, lsl #3
	ldr	x11, [x9, #8]
	mov	x9, x10
	cmp	x11, x1
	b.ls	LBB0_1
; %bb.3:
	sub	w8, w10, #1
LBB0_4:
	str	w8, [x0, #16]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pwm_fan_update_state
.subsections_via_symbols
