	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nct6775_init_device
_nct6775_init_device:                   ## @nct6775_init_device
	.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
	movq	%rdi, %r15
	movq	48(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	callq	_nct6775_read_value
	testb	$1, %al
	jne	LBB0_3
## %bb.2:
	movq	48(%r15), %rsi
	orl	$1, %eax
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_nct6775_write_value
LBB0_3:
	movq	_NUM_TEMP@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_10
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %r12d
	movl	%ebx, %edi
	callq	_BIT
	testl	%r12d, %eax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	40(%r15), %rax
	movq	(%rax,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	callq	_nct6775_read_value
	testb	$1, %al
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	40(%r15), %rcx
	movq	(%rcx,%rbx,8), %rsi
	andl	$254, %eax
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_nct6775_write_value
	jmp	LBB0_9
LBB0_10:
	movq	32(%r15), %rsi
	movq	%r15, %rdi
	callq	_nct6775_read_value
	movl	%eax, %r14d
	testb	$1, %r14b
	jne	LBB0_12
## %bb.11:
	movq	32(%r15), %rsi
	movl	%r14d, %edx
	orl	$1, %edx
	movq	%r15, %rdi
	callq	_nct6775_write_value
LBB0_12:
	movq	24(%r15), %rsi
	movq	%r15, %rdi
	callq	_nct6775_read_value
	cmpl	$0, 4(%r15)
	jle	LBB0_17
## %bb.13:
	movl	%eax, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	movslq	4(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_17
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %r13d
	movl	%ebx, %edi
	callq	_BIT
	testl	%r13d, %eax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	12(%r15), %eax
	movl	%eax, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	movl	%r12d, %esi
	sarl	%cl, %esi
	andl	%eax, %esi
	movl	$3, %eax
	subl	%esi, %eax
	testl	%r14d, %edx
	movl	$4, %ecx
	cmovel	%ecx, %eax
	movq	16(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	jmp	LBB0_16
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_TEMP,4,2                   ## @NUM_TEMP
	.no_dead_strip	_nct6775_init_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nct6775_init_device
_nct6775_init_device:                   ; @nct6775_init_device
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x1, [x0, #48]
	cbz	x1, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_nct6775_read_value
	tbnz	w0, #0, LBB0_3
; %bb.2:
	ldr	x1, [x19, #48]
	orr	w2, w0, #0x1
	mov	x0, x19
	bl	_nct6775_write_value
LBB0_3:
Lloh0:
	adrp	x21, _NUM_TEMP@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NUM_TEMP@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.4:
	mov	x20, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x21]
	cmp	x20, x8
	b.ge	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x19]
	mov	x0, x20
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #40]
	ldr	x1, [x8, x20, lsl #3]
	cbz	x1, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_nct6775_read_value
	tbz	w0, #0, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #40]
	ldr	x1, [x8, x20, lsl #3]
	and	w2, w0, #0xfe
	mov	x0, x19
	bl	_nct6775_write_value
	b	LBB0_5
LBB0_10:
	ldr	x1, [x19, #32]
	mov	x0, x19
	bl	_nct6775_read_value
	mov	x20, x0
	tbnz	w0, #0, LBB0_12
; %bb.11:
	ldr	x1, [x19, #32]
	orr	w2, w20, #0x1
	mov	x0, x19
	bl	_nct6775_write_value
LBB0_12:
	ldr	x1, [x19, #24]
	mov	x0, x19
	bl	_nct6775_read_value
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.13:
	mov	x21, x0
	mov	x22, #0
	mov	w23, #3
	mov	w24, #4
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19, #4]
	cmp	x22, x8
	b.ge	LBB0_17
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w25, [x19, #8]
	mov	x0, x22
	bl	_BIT
	tst	w0, w25
	b.eq	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x19, #12]
	lsl	w9, w8, w22
	asr	w10, w21, w22
	and	w8, w8, w10
	sub	w8, w23, w8
	tst	w9, w20
	csel	w8, w24, w8, eq
	ldr	x9, [x19, #16]
	str	w8, [x9, x22, lsl #2]
	b	LBB0_14
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_TEMP,4,2                   ; @NUM_TEMP
	.no_dead_strip	_nct6775_init_device
.subsections_via_symbols
