	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nct7904_read_in
_nct7904_read_in:                       ## @nct7904_read_in
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r15d
	movl	%esi, %ebx
	callq	_dev_get_drvdata
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_11
## %bb.1:
	movq	%rax, %r12
	movq	_nct7904_chan_to_index@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r15d, %rcx
	movl	(%rax,%rcx,4), %r15d
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_5:
	movq	_BANK_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VSEN1_HV_LL_REG@GOTPCREL(%rip), %rax
	leal	(,%r15,4), %edx
	jmp	LBB0_3
LBB0_11:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_7:
	movq	_BANK_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VSEN1_HV_HL_REG@GOTPCREL(%rip), %rax
	leal	(,%r15,4), %edx
	jmp	LBB0_3
LBB0_2:
	movq	_BANK_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VSEN1_HV_REG@GOTPCREL(%rip), %rax
	leal	(%r15,%r15), %edx
LBB0_3:
	addl	(%rax), %edx
	movq	%r12, %rdi
	callq	_nct7904_read_reg16
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_12
## %bb.4:
	movzbl	%ah, %ecx
	andl	$7, %eax
	leal	(%rax,%rcx,8), %eax
	addl	%eax, %eax
	cmpl	$14, %r15d
	leal	(%rax,%rax,2), %ecx
	cmovll	%eax, %ecx
	movq	%rcx, (%r14)
	xorl	%eax, %eax
LBB0_12:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_BANK_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SMI_STS1_REG@GOTPCREL(%rip), %rax
	movl	%r15d, %ebx
	sarl	$3, %ebx
	movl	(%rax), %edx
	addl	%ebx, %edx
	movq	%r12, %rdi
	callq	_nct7904_read_reg
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_12
## %bb.9:
	movq	(%r12), %rdx
	movslq	%ebx, %rsi
	movl	(%rdx,%rsi,4), %ecx
	movzbl	%al, %ebx
	orq	%rcx, %rbx
	andl	$7, %r15d
	movq	%rbx, %rdi
	movl	%r15d, %ecx
	shrq	%cl, %rdi
	movl	%ebx, (%rdx,%rsi,4)
	xorl	%eax, %eax
	andq	$1, %rdi
	movq	%rdi, (%r14)
	je	LBB0_12
## %bb.10:
	btcl	%r15d, %ebx
	movl	%ebx, (%rdx,%rsi,4)
	jmp	LBB0_12
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_nct7904_chan_to_index,8,3      ## @nct7904_chan_to_index
	.comm	_BANK_0,4,2                     ## @BANK_0
	.comm	_VSEN1_HV_REG,4,2               ## @VSEN1_HV_REG
	.comm	_BANK_1,4,2                     ## @BANK_1
	.comm	_VSEN1_HV_LL_REG,4,2            ## @VSEN1_HV_LL_REG
	.comm	_VSEN1_HV_HL_REG,4,2            ## @VSEN1_HV_HL_REG
	.comm	_SMI_STS1_REG,4,2               ## @SMI_STS1_REG
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_nct7904_read_in
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nct7904_read_in
_nct7904_read_in:                       ; @nct7904_read_in
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	bl	_dev_get_drvdata
	sub	w8, w22, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x9, _nct7904_chan_to_index@GOTPAGE
Lloh1:
	ldr	x9, [x9, _nct7904_chan_to_index@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w21, [x9, w21, sxtw #2]
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh5:
	adrp	x8, _BANK_1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BANK_1@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _VSEN1_HV_LL_REG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VSEN1_HV_LL_REG@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh10:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_4:
Lloh13:
	adrp	x8, _BANK_1@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BANK_1@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _VSEN1_HV_HL_REG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VSEN1_HV_HL_REG@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	add	w2, w8, w21, lsl #2
	b	LBB0_7
LBB0_6:
Lloh18:
	adrp	x8, _BANK_0@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BANK_0@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _VSEN1_HV_REG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VSEN1_HV_REG@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	add	w2, w8, w21, lsl #1
LBB0_7:
	mov	x0, x20
	bl	_nct7904_read_reg16
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_9
; %bb.8:
	lsr	w8, w0, #5
	and	w8, w8, #0x7f8
	bfxil	w8, w0, #0, #3
	mov	w0, #0
	lsl	w9, w8, #1
	add	w8, w9, w8
	lsl	w8, w8, #1
	cmp	w21, #14
	csel	w8, w9, w8, lt
	str	x8, [x19]
LBB0_9:
                                        ; kill: def $w0 killed $w0 killed $x0
	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_10:
Lloh24:
	adrp	x8, _BANK_0@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BANK_0@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _SMI_STS1_REG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SMI_STS1_REG@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	asr	w22, w21, #3
	add	w2, w8, w22
	mov	x0, x20
	bl	_nct7904_read_reg
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_9
; %bb.11:
	ldr	x8, [x20]
	sbfiz	x10, x22, #2, #32
	ldr	w9, [x8, x10]
	and	x11, x0, #0xff
	orr	x9, x9, x11
	str	w9, [x8, x10]
	and	x10, x21, #0x7
	lsr	x11, x9, x10
	and	x11, x11, #0x1
	str	x11, [x19]
	mov	w0, #0
	cbz	w11, LBB0_9
; %bb.12:
	sxtw	x11, w22
	mov	w12, #1
	lsl	w10, w12, w10
	eor	w9, w9, w10
	str	w9, [x8, x11, lsl #2]
	b	LBB0_9
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_nct7904_chan_to_index,8,3      ; @nct7904_chan_to_index
	.comm	_BANK_0,4,2                     ; @BANK_0
	.comm	_VSEN1_HV_REG,4,2               ; @VSEN1_HV_REG
	.comm	_BANK_1,4,2                     ; @BANK_1
	.comm	_VSEN1_HV_LL_REG,4,2            ; @VSEN1_HV_LL_REG
	.comm	_VSEN1_HV_HL_REG,4,2            ; @VSEN1_HV_HL_REG
	.comm	_SMI_STS1_REG,4,2               ; @SMI_STS1_REG
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_nct7904_read_in
.subsections_via_symbols
