	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nct6775_update_pwm
_nct6775_update_pwm:                    ## @nct6775_update_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_dev_get_drvdata
	cmpl	$0, (%rax)
	jle	LBB0_27
## %bb.1:
	movq	%rax, %r13
	xorl	%r14d, %r14d
	movq	_speed_cruise@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movslq	(%r13), %rax
	cmpq	%rax, %r14
	jge	LBB0_27
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##     Child Loop BB0_25 Depth 2
	movl	4(%r13), %ebx
	movl	%r14d, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_26
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r13), %rax
	movl	(%rax,%r14,4), %esi
	testl	%esi, %esi
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_nct6775_read_value
	movq	16(%r13), %rcx
	testl	%eax, (%rcx,%r14,4)
	setne	%al
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorb	$1, %al
	movzbl	%al, %eax
	movq	24(%r13), %rcx
	movl	%eax, (%rcx,%r14,4)
	movq	32(%r13), %rax
	movl	(%rax,%r14,4), %esi
	movq	%r13, %rdi
	callq	_nct6775_read_value
	movl	%eax, %r15d
	movq	40(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=2
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_12
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	40(%r13), %rdi
	movq	(%rdi,%rbx,8), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movl	(%rax,%r14,4), %esi
	testl	%esi, %esi
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	%r13, %rdi
	callq	_nct6775_read_value
	movq	48(%r13), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movl	%eax, (%rcx,%r14,4)
	movq	40(%r13), %rdi
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	48(%r13), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %edi
	movl	%r15d, %esi
	shrl	$4, %esi
	andl	$7, %esi
	callq	_reg_to_pwm_enable
	movq	56(%r13), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	64(%r13), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rcx,%r14,4)
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	(%r12), %rax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	72(%r13), %rcx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %edx
	andl	$15, %edx
	movl	%edx, (%rcx,%r14,4)
	movq	72(%r13), %rcx
	cmpl	$0, (%rcx,%r14,4)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	(%r12), %rax
	jne	LBB0_20
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	andl	$15, %r15d
	movq	80(%r13), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax,%r14,4), %esi
	movq	%r13, %rdi
	callq	_nct6775_read_value
	shrl	%eax
	andl	$56, %eax
	orl	%eax, %r15d
	movq	72(%r13), %rcx
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, (%rcx,%r14,4)
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	88(%r13), %rax
	movl	(%rax,%r14,4), %esi
	movq	%r13, %rdi
	callq	_nct6775_read_value
	movq	64(%r13), %rcx
	movq	8(%rcx), %rcx
	movl	%eax, (%rcx,%r14,4)
	movq	96(%r13), %rax
	movl	(%rax,%r14,4), %esi
	movq	%r13, %rdi
	callq	_nct6775_read_value
	movl	%eax, %ecx
	andl	$31, %ecx
	movq	104(%r13), %rdx
	movl	%ecx, (%rdx,%r14,4)
	testb	$-128, %al
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	48(%r13), %rax
	movq	16(%rax), %rax
	movl	$0, (%rax,%r14,4)
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	112(%r13), %rax
	movl	(%rax,%r14,4), %esi
	testl	%esi, %esi
	je	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_nct6775_read_value
	movsbl	%al, %ecx
	shrl	$7, %ecx
	andl	%eax, %ecx
	movq	120(%r13), %rax
	andl	$31, %ecx
	movl	%ecx, (%rax,%r14,4)
	movq	128(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_25:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	136(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax,%r14,4), %esi
	movq	%r13, %rdi
	callq	_nct6775_read_value
	movq	128(%r13), %rdi
	movq	(%rdi,%rbx,8), %rcx
	movl	%eax, (%rcx,%r14,4)
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_25
	jmp	LBB0_26
LBB0_27:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_speed_cruise,8,3               ## @speed_cruise
	.no_dead_strip	_nct6775_update_pwm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nct6775_update_pwm
_nct6775_update_pwm:                    ; @nct6775_update_pwm
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	bl	_dev_get_drvdata
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.1:
	mov	x19, x0
	mov	x20, #0
Lloh0:
	adrp	x22, _speed_cruise@GOTPAGE
Lloh1:
	ldr	x22, [x22, _speed_cruise@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.ge	LBB0_26
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_25 Depth 2
	ldr	w21, [x19, #4]
	mov	x0, x20
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	ldr	w1, [x8, x20, lsl #2]
	cbz	w1, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_nct6775_read_value
	ldr	x8, [x19, #16]
	ldr	w8, [x8, x20, lsl #2]
	tst	w8, w0
	cset	w8, ne
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #0
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	eor	w8, w8, #0x1
	lsl	x23, x20, #2
	ldp	x9, x10, [x19, #24]
	str	w8, [x9, x23]
	ldr	w1, [x10, x23]
	mov	x0, x19
	bl	_nct6775_read_value
	mov	x21, x0
	ldr	x0, [x19, #40]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x24, x24, #1
	bl	_ARRAY_SIZE
	cmp	x24, w0, sxtw
	b.ge	LBB0_13
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x19, #40]
	ldr	x8, [x0, x24, lsl #3]
	cbz	x8, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w1, [x8, x20, lsl #2]
	cbz	w1, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x19
	bl	_nct6775_read_value
	mov	x8, x0
	ldp	x0, x9, [x19, #40]
	ldr	x9, [x9, x24, lsl #3]
	str	w8, [x9, x20, lsl #2]
	b	LBB0_9
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
	ldr	w0, [x8, x23]
	ubfx	w1, w21, #4, #3
	bl	_reg_to_pwm_enable
	ldp	x8, x9, [x19, #56]
	str	x0, [x8, x20, lsl #3]
	ldr	x8, [x9]
	ldr	w9, [x8, x23]
	ldr	x10, [x22]
	cmp	w9, #0
	ccmp	x0, x10, #0, ne
	b.eq	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	and	w9, w21, #0xf
	str	w9, [x8, x23]
	ldr	x8, [x19, #72]
	ldr	w9, [x8, x23]
	cbz	w9, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x22]
	cmp	x0, x9
	b.ne	LBB0_20
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #72]
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	and	w21, w21, #0xf
	ldr	x9, [x19, #80]
	cbz	x9, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x9, x20, lsl #2]
	mov	x0, x19
	bl	_nct6775_read_value
	lsr	w8, w0, #1
	and	w8, w8, #0x38
	orr	w21, w8, w21
	ldr	x8, [x19, #72]
LBB0_19:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w21, [x8, x20, lsl #2]
LBB0_20:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #88]
	ldr	w1, [x8, x23]
	mov	x0, x19
	bl	_nct6775_read_value
	ldr	x8, [x19, #64]
	ldr	x8, [x8, #8]
	str	w0, [x8, x23]
	ldr	x8, [x19, #96]
	ldr	w1, [x8, x23]
	mov	x0, x19
	bl	_nct6775_read_value
	and	w8, w0, #0x1f
	ldr	x9, [x19, #104]
	str	w8, [x9, x23]
	tbz	w0, #7, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #48]
	ldr	x8, [x8, #16]
	str	wzr, [x8, x20, lsl #2]
LBB0_22:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #112]
	ldr	w1, [x8, x20, lsl #2]
	cbz	w1, LBB0_2
; %bb.23:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_nct6775_read_value
	lsl	w8, w0, #24
	and	w8, w0, w8, asr #31
	ldr	x9, [x19, #120]
	and	w8, w8, #0x1f
	str	w8, [x9, x20, lsl #2]
	ldr	x0, [x19, #128]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.24:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, #0
LBB0_25:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #136]
	lsl	x24, x21, #3
	ldr	x8, [x8, x24]
	ldr	w1, [x8, x23]
	mov	x0, x19
	bl	_nct6775_read_value
	ldr	x8, [x19, #128]
	ldr	x9, [x8, x24]
	str	w0, [x9, x23]
	add	x21, x21, #1
	mov	x0, x8
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.lt	LBB0_25
	b	LBB0_2
LBB0_26:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_speed_cruise,8,3               ; @speed_cruise
	.no_dead_strip	_nct6775_update_pwm
.subsections_via_symbols
