	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adt7411_read_in_chan
_adt7411_read_in_chan:                  ## @adt7411_read_in_chan
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	4(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	%r12, %rdi
	callq	_adt7411_update_vref
	testl	%eax, %eax
	js	LBB0_13
## %bb.1:
	addl	$-128, %r15d
	cmpl	$3, %r15d
	ja	LBB0_5
## %bb.2:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r15,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_3:
	movl	%r13d, %edi
	callq	_ADT7411_REG_IN_LOW
	jmp	LBB0_7
LBB0_5:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_14
LBB0_6:
	movl	%r13d, %edi
	callq	_ADT7411_REG_IN_HIGH
LBB0_7:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_14
## %bb.8:
	movl	(%rbx), %eax
	imull	%r14d, %eax
	leal	255(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$8, %ecx
	jmp	LBB0_11
LBB0_9:
	decl	%r13d
	movq	_ADT7411_REG_EXT_TEMP_AIN14_LSB@GOTPCREL(%rip), %rax
	movl	%r13d, %esi
	sarl	$2, %esi
	addl	(%rax), %esi
	leal	(%r13,%r13), %ecx
	andl	$6, %ecx
	movq	_ADT7411_REG_EXT_TEMP_AIN1_MSB@GOTPCREL(%rip), %rax
	addl	(%rax), %r13d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_adt7411_read_10_bit
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_14
## %bb.10:
	movl	(%rbx), %eax
	imull	%r14d, %eax
	leal	1023(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$10, %ecx
LBB0_11:
	movslq	%ecx, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%r14d, %r14d
	jmp	LBB0_14
LBB0_12:
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_adt7411_read_in_alarm
LBB0_13:
	movl	%eax, %r14d
LBB0_14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_ADT7411_REG_EXT_TEMP_AIN14_LSB,4,2 ## @ADT7411_REG_EXT_TEMP_AIN14_LSB
	.comm	_ADT7411_REG_EXT_TEMP_AIN1_MSB,4,2 ## @ADT7411_REG_EXT_TEMP_AIN1_MSB
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_adt7411_read_in_chan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adt7411_read_in_chan
_adt7411_read_in_chan:                  ; @adt7411_read_in_chan
	.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	x20, x3
	mov	x24, x2
	mov	x26, x1
	mov	x25, x0
	bl	_dev_get_drvdata
	mov	x21, x0
	ldr	x23, [x0, #8]
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x25
	bl	_adt7411_update_vref
	tbnz	w0, #31, LBB0_11
; %bb.1:
	sub	w8, w26, #128
	cmp	w8, #3
	b.hi	LBB0_4
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	mov	x0, x24
	bl	_ADT7411_REG_IN_LOW
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_12
LBB0_5:
	mov	x0, x24
	bl	_ADT7411_REG_IN_HIGH
LBB0_6:
	mov	x1, x0
	mov	x0, x23
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	tbnz	w0, #31, LBB0_12
; %bb.7:
	ldr	w8, [x21]
	mul	w8, w8, w22
	mov	w22, #0
	add	w9, w8, #255
	cmp	w8, #0
	csel	w8, w9, w8, lt
	sbfx	x8, x8, #8, #24
	str	x8, [x20]
	b	LBB0_12
LBB0_8:
	sub	w8, w24, #1
Lloh5:
	adrp	x9, _ADT7411_REG_EXT_TEMP_AIN14_LSB@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ADT7411_REG_EXT_TEMP_AIN14_LSB@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	add	w1, w9, w8, asr #2
	ubfiz	w3, w8, #1, #2
Lloh8:
	adrp	x9, _ADT7411_REG_EXT_TEMP_AIN1_MSB@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ADT7411_REG_EXT_TEMP_AIN1_MSB@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	add	w2, w9, w8
	mov	x0, x23
	bl	_adt7411_read_10_bit
	mov	x22, x0
	tbnz	w0, #31, LBB0_12
; %bb.9:
	ldr	w8, [x21]
	mul	w8, w8, w22
	mov	w22, #0
	add	w9, w8, #1023
	cmp	w8, #0
	csel	w8, w9, w8, lt
	sbfx	x8, x8, #10, #22
	str	x8, [x20]
	b	LBB0_12
LBB0_10:
	mov	x0, x25
	mov	x1, x24
	mov	x2, x20
	bl	_adt7411_read_in_alarm
LBB0_11:
	mov	x22, x0
LBB0_12:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
                                        ; -- End function
	.comm	_ADT7411_REG_EXT_TEMP_AIN14_LSB,4,2 ; @ADT7411_REG_EXT_TEMP_AIN14_LSB
	.comm	_ADT7411_REG_EXT_TEMP_AIN1_MSB,4,2 ; @ADT7411_REG_EXT_TEMP_AIN1_MSB
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_adt7411_read_in_chan
.subsections_via_symbols
