	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nct6775_update_pwm_limits
_nct6775_update_pwm_limits:             ## @nct6775_update_pwm_limits
	.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_25
## %bb.1:
	movq	%rax, %r12
	xorl	%r14d, %r14d
	movl	$3327, %r13d                    ## imm = 0xCFF
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	56(%r12), %rax
	movq	(%rax,%r14,8), %rax
	movslq	48(%r12), %rcx
	movl	%ebx, (%rax,%rcx,4)
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movslq	(%r12), %rax
	cmpq	%rax, %r14
	jge	LBB0_25
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_16 Depth 2
	movl	4(%r12), %ebx
	movl	%r14d, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_24
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	120(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax,%r14,4), %esi
	movq	%r12, %rdi
	callq	_nct6775_read_value
	movq	8(%r12), %rdi
	movq	(%rdi,%rbx,8), %rcx
	movl	%eax, (%rcx,%r14,4)
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	112(%r12), %rax
	movl	(%rax,%r14,4), %esi
	movq	%r12, %rdi
	callq	_nct6775_read_value
	movl	%eax, %r15d
	movq	16(%r12), %rax
	cmpl	$0, (%rax,%r14,4)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r12), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	_thermal_cruise@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	32(%r12), %ecx
	andl	%r15d, %ecx
	movl	%ecx, (%rax,%r14,4)
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%r12), %rax
	cmpl	$0, (%rax,%r14,4)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r12), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	_speed_cruise@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	104(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rcx,%r14,4), %esi
	movq	%r12, %rdi
	callq	_nct6775_read_value
	andl	$15, %eax
	shll	$8, %eax
	orl	%eax, %r15d
	movq	40(%r12), %rax
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, (%rax,%r14,4)
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 48(%r12)
	jle	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_NCT6775_AUTO_PWM
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_nct6775_read_value
	movq	56(%r12), %rcx
	movq	(%rcx,%r14,8), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_NCT6775_AUTO_TEMP
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_nct6775_read_value
	movq	64(%r12), %rcx
	movq	(%rcx,%r14,8), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	48(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	96(%r12), %rax
	movl	(%rax,%r14,4), %esi
	movq	%r12, %rdi
	callq	_nct6775_read_value
	movq	64(%r12), %rcx
	movq	(%rcx,%r14,8), %rcx
	movslq	48(%r12), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	72(%r12), %eax
	addl	$-128, %eax
	cmpl	$11, %eax
	ja	LBB0_24
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$255, %ebx
	btl	%eax, %r13d
	jae	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	88(%r12), %rax
	movl	(%rax,%r14,4), %esi
	movq	%r12, %rdi
	callq	_nct6775_read_value
	testl	%eax, 76(%r12)
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	80(%r12), %rax
	movl	(%rax,%r14,4), %esi
	movq	%r12, %rdi
	callq	_nct6775_read_value
	movl	%eax, %ebx
	jmp	LBB0_23
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$8, %eax
	je	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_NCT6775_REG_CRITICAL_ENAB@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %esi
	movq	%r12, %rdi
	callq	_nct6775_read_value
	shll	$30, %eax
	sarl	$31, %eax
	movzbl	%al, %ebx
	jmp	LBB0_23
LBB0_25:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_thermal_cruise,8,3             ## @thermal_cruise
	.comm	_speed_cruise,8,3               ## @speed_cruise
	.comm	_NCT6775_REG_CRITICAL_ENAB,8,3  ## @NCT6775_REG_CRITICAL_ENAB
	.no_dead_strip	_nct6775_update_pwm_limits
.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_limits
_nct6775_update_pwm_limits:             ; @nct6775_update_pwm_limits
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	bl	_dev_get_drvdata
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.1:
	mov	x19, x0
	mov	x20, #0
	mov	w22, #1
	mov	w23, #3327
Lloh0:
	adrp	x24, _NCT6775_REG_CRITICAL_ENAB@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NCT6775_REG_CRITICAL_ENAB@GOTPAGEOFF]
Lloh2:
	adrp	x25, _speed_cruise@GOTPAGE
Lloh3:
	ldr	x25, [x25, _speed_cruise@GOTPAGEOFF]
Lloh4:
	adrp	x26, _thermal_cruise@GOTPAGE
Lloh5:
	ldr	x26, [x26, _thermal_cruise@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #255
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #56]
	ldr	x8, [x8, x20, lsl #3]
	ldrsw	x9, [x19, #48]
	str	w0, [x8, x9, lsl #2]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.ge	LBB0_26
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_19 Depth 2
	ldr	w21, [x19, #4]
	mov	x0, x20
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	lsl	x27, x20, #2
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x21, #0
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #120]
	lsl	x28, x21, #3
	ldr	x8, [x8, x28]
	ldr	w1, [x8, x27]
	mov	x0, x19
	bl	_nct6775_read_value
	ldr	x8, [x19, #8]
	ldr	x9, [x8, x28]
	str	w0, [x9, x27]
	add	x21, x21, #1
	mov	x0, x8
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.lt	LBB0_8
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #112]
	ldr	w1, [x8, x27]
	mov	x0, x19
	bl	_nct6775_read_value
	mov	x21, x0
	ldr	x8, [x19, #16]
	ldr	w9, [x8, x27]
	cbz	w9, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x19, #24]
	ldr	x9, [x9, x20, lsl #3]
	ldr	x10, [x26]
	cmp	x9, x10
	b.ne	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x19, #32]
	and	w9, w9, w21
	str	w9, [x8, x20, lsl #2]
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #40]
	ldr	w9, [x8, x20, lsl #2]
	cbz	w9, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x19, #24]
	ldr	x9, [x9, x20, lsl #3]
	ldr	x10, [x25]
	cmp	x9, x10
	b.ne	LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x19, #104]
	cbz	x9, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x9, x20, lsl #2]
	mov	x0, x19
	bl	_nct6775_read_value
	ubfiz	w8, w0, #8, #4
	orr	w21, w8, w21
	ldr	x8, [x19, #40]
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w21, [x8, x20, lsl #2]
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, #48]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x21, #0
LBB0_19:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_NCT6775_AUTO_PWM
	mov	x1, x0
	mov	x0, x19
	bl	_nct6775_read_value
	ldr	x8, [x19, #56]
	lsl	x27, x20, #3
	ldr	x8, [x8, x27]
	lsl	x28, x21, #2
	str	w0, [x8, x28]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_NCT6775_AUTO_TEMP
	mov	x1, x0
	mov	x0, x19
	bl	_nct6775_read_value
	ldr	x8, [x19, #64]
	ldr	x8, [x8, x27]
	str	w0, [x8, x28]
	add	x21, x21, #1
	ldrsw	x8, [x19, #48]
	cmp	x21, x8
	b.lt	LBB0_19
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #96]
	ldr	w1, [x8, x20, lsl #2]
	mov	x0, x19
	bl	_nct6775_read_value
	ldr	x8, [x19, #64]
	ldr	x8, [x8, x20, lsl #3]
	ldrsw	x9, [x19, #48]
	str	w0, [x8, x9, lsl #2]
	ldr	w8, [x19, #72]
	sub	w8, w8, #128
	cmp	w8, #11
	b.hi	LBB0_4
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=1
	lsl	w9, w22, w8
	tst	w9, w23
	b.eq	LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #88]
	ldr	w1, [x8, x20, lsl #2]
	mov	x0, x19
	bl	_nct6775_read_value
	ldr	w8, [x19, #76]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.23:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #80]
	ldr	w1, [x8, x20, lsl #2]
	mov	x0, x19
	bl	_nct6775_read_value
	b	LBB0_3
LBB0_24:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #8
	b.eq	LBB0_2
; %bb.25:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x24]
	ldr	w1, [x8, x20, lsl #2]
	mov	x0, x19
	bl	_nct6775_read_value
	sbfx	w8, w0, #1, #1
	and	w0, w8, #0xff
	b	LBB0_3
LBB0_26:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_thermal_cruise,8,3             ; @thermal_cruise
	.comm	_speed_cruise,8,3               ; @speed_cruise
	.comm	_NCT6775_REG_CRITICAL_ENAB,8,3  ; @NCT6775_REG_CRITICAL_ENAB
	.no_dead_strip	_nct6775_update_pwm_limits
.subsections_via_symbols
