	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pwm_update_registers
_pwm_update_registers:                  ## @pwm_update_registers
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movslq	%esi, %r14
	movl	(%rax,%r14,4), %eax
	leal	-130(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$128, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_6
## %bb.3:
	movq	48(%rbx), %rax
	movl	(%rax,%r14,4), %esi
	movq	%rbx, %rdi
	callq	_nct6775_read_value
	movq	16(%rbx), %rcx
	movq	48(%rbx), %rsi
	movl	(%rcx,%r14,4), %edx
	xorl	%eax, %edx
	andl	8(%rbx), %edx
	xorl	%eax, %edx
	movl	(%rsi,%r14,4), %esi
	movq	%rbx, %rdi
	callq	_nct6775_write_value
	movq	24(%rbx), %rax
	movq	56(%rbx), %rcx
	movl	(%rcx,%r14,4), %esi
	movzbl	(%rax,%r14,4), %edx
	movq	%rbx, %rdi
	callq	_nct6775_write_value
	movq	64(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	16(%rbx), %rcx
	movq	24(%rbx), %rdx
	movl	(%rdx,%r14,4), %edx
	shrl	$8, %edx
	andl	$15, %edx
	movl	(%rcx,%r14,4), %ecx
	andl	$56, %ecx
	leal	(%rdx,%rcx,2), %edx
	jmp	LBB0_7
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	32(%rbx), %rax
	movq	56(%rbx), %rcx
	movl	(%rcx,%r14,4), %esi
	movl	(%rax,%r14,4), %edx
	movq	%rbx, %rdi
	callq	_nct6775_write_value
LBB0_6:
	movq	48(%rbx), %rax
	movl	(%rax,%r14,4), %esi
	movq	%rbx, %rdi
	callq	_nct6775_read_value
	movl	8(%rbx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	40(%rbx), %rax
	movq	(%rax), %rax
	orl	(%rax,%r14,4), %edx
	movq	48(%rbx), %rax
LBB0_7:
	movl	(%rax,%r14,4), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_nct6775_write_value            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pwm_update_registers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pwm_update_registers
_pwm_update_registers:                  ; @pwm_update_registers
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x8, [x0]
	ldr	w8, [x8, w1, sxtw #2]
	sub	w9, w8, #130
	cmp	w9, #2
	b.lo	LBB0_5
; %bb.1:
	mov	x19, x0
	sxtw	x20, w1
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_7
; %bb.3:
	ldr	x8, [x19, #48]
	lsl	x21, x20, #2
	ldr	w1, [x8, x21]
	mov	x0, x19
	bl	_nct6775_read_value
	ldr	w8, [x19, #8]
	ldr	x9, [x19, #16]
	ldr	w9, [x9, x21]
	bic	w10, w0, w8
	and	w8, w9, w8
	orr	w2, w8, w10
	ldr	x8, [x19, #48]
	ldr	w1, [x8, x21]
	mov	x0, x19
	bl	_nct6775_write_value
	ldr	x8, [x19, #56]
	ldr	w1, [x8, x21]
	ldr	x8, [x19, #24]
	ldrb	w2, [x8, x21]
	mov	x0, x19
	bl	_nct6775_write_value
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_5
; %bb.4:
	ldp	x10, x9, [x19, #16]
	ldr	w9, [x9, x21]
	ldr	w10, [x10, x21]
	lsl	w10, w10, #1
	and	w2, w10, #0x70
	bfxil	w2, w9, #8, #4
	b	LBB0_8
LBB0_5:
	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
LBB0_6:
	ldr	x8, [x19, #56]
	lsl	x9, x20, #2
	ldr	w1, [x8, x9]
	ldr	x8, [x19, #32]
	ldr	w2, [x8, x9]
	mov	x0, x19
	bl	_nct6775_write_value
LBB0_7:
	ldr	x8, [x19, #48]
	lsl	x21, x20, #2
	ldr	w1, [x8, x21]
	mov	x0, x19
	bl	_nct6775_read_value
	ldr	w8, [x19, #8]
	bic	w9, w0, w8
	ldp	x10, x8, [x19, #40]
	ldr	x10, [x10]
	ldr	w10, [x10, x21]
	orr	w2, w10, w9
LBB0_8:
	ldr	w1, [x8, x20, lsl #2]
	mov	x0, x19
	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
	b	_nct6775_write_value
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pwm_update_registers
.subsections_via_symbols
