	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adc128_update_device
_adc128_update_device:                  ## @adc128_update_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
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	48(%rax), %r15
	leaq	36(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	40(%r12), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_1
LBB0_2:
	movq	_num_inputs@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movq	8(%r12), %rax
	cmpl	$0, (%rcx,%rax,4)
	jle	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_ADC128_REG_IN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_word_swapped
	testl	%eax, %eax
	js	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	shrl	$4, %eax
	movq	16(%r12), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	%ebx, %edi
	callq	_ADC128_REG_IN_MIN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	shll	$4, %eax
	movq	16(%r12), %rcx
	movq	8(%rcx), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	%ebx, %edi
	callq	_ADC128_REG_IN_MAX
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	shll	$4, %eax
	movq	16(%r12), %rcx
	movq	16(%rcx), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movq	(%r13), %rcx
	movq	8(%r12), %rax
	movslq	(%rcx,%rax,4), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_4
LBB0_8:
	cmpq	$1, %rax
	je	LBB0_13
## %bb.9:
	movq	_ADC128_REG_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_word_swapped
	testl	%eax, %eax
	js	LBB0_15
## %bb.10:
	shrl	$7, %eax
	movq	24(%r12), %rcx
	movl	%eax, (%rcx)
	movq	_ADC128_REG_TEMP_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_15
## %bb.11:
	addl	%eax, %eax
	movq	24(%r12), %rcx
	movl	%eax, 4(%rcx)
	movq	_ADC128_REG_TEMP_HYST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_15
## %bb.12:
	addl	%eax, %eax
	movq	24(%r12), %rcx
	movl	%eax, 8(%rcx)
LBB0_13:
	movq	_ADC128_REG_ALARM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_15
## %bb.14:
	orl	%eax, 32(%r12)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r12)
	movl	$1, %ecx
	movq	%r12, %rax
	jmp	LBB0_16
LBB0_15:
	movl	%eax, %edi
	callq	_ERR_PTR
	xorl	%ecx, %ecx
LBB0_16:
	movl	%ecx, (%r12)
	movq	%rax, %r12
	jmp	LBB0_17
LBB0_1:
	cmpl	$0, (%r12)
	je	LBB0_2
LBB0_17:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.comm	_num_inputs,8,3                 ## @num_inputs
	.comm	_ADC128_REG_TEMP,4,2            ## @ADC128_REG_TEMP
	.comm	_ADC128_REG_TEMP_MAX,4,2        ## @ADC128_REG_TEMP_MAX
	.comm	_ADC128_REG_TEMP_HYST,4,2       ## @ADC128_REG_TEMP_HYST
	.comm	_ADC128_REG_ALARM,4,2           ## @ADC128_REG_ALARM
	.no_dead_strip	_adc128_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adc128_update_device
_adc128_update_device:                  ; @adc128_update_device
	.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
	mov	x19, x0
	ldr	x21, [x0, #48]
	add	x20, x0, #36
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x23, _jiffies@GOTPAGE
Lloh1:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x0, [x23]
	ldr	x8, [x19, #40]
Lloh2:
	adrp	x9, _HZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_time_after
	cbz	x0, LBB0_16
LBB0_1:
Lloh5:
	adrp	x24, _num_inputs@GOTPAGE
Lloh6:
	ldr	x24, [x24, _num_inputs@GOTPAGEOFF]
	ldr	x9, [x24]
	ldr	x8, [x19, #8]
	ldr	w9, [x9, x8, lsl #2]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_ADC128_REG_IN
	mov	x1, x0
	mov	x0, x21
	bl	_i2c_smbus_read_word_swapped
	tbnz	w0, #31, LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	lsr	w8, w0, #4
	ldr	x9, [x19, #16]
	ldr	x9, [x9]
	str	w8, [x9, x22, lsl #2]
	mov	x0, x22
	bl	_ADC128_REG_IN_MIN
	mov	x1, x0
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	w8, w0, #4
	ldr	x9, [x19, #16]
	ldr	x9, [x9, #8]
	str	w8, [x9, x22, lsl #2]
	mov	x0, x22
	bl	_ADC128_REG_IN_MAX
	mov	x1, x0
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	w9, w0, #4
	ldp	x8, x10, [x19, #8]
	ldr	x10, [x10, #16]
	str	w9, [x10, x22, lsl #2]
	add	x22, x22, #1
	ldr	x9, [x24]
	ldrsw	x9, [x9, x8, lsl #2]
	cmp	x22, x9
	b.lt	LBB0_3
LBB0_7:
	cmp	x8, #1
	b.eq	LBB0_12
; %bb.8:
Lloh7:
	adrp	x8, _ADC128_REG_TEMP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ADC128_REG_TEMP@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_word_swapped
	tbnz	w0, #31, LBB0_14
; %bb.9:
	lsr	w8, w0, #7
	ldr	x9, [x19, #24]
	str	w8, [x9]
Lloh10:
	adrp	x8, _ADC128_REG_TEMP_MAX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ADC128_REG_TEMP_MAX@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_14
; %bb.10:
	lsl	w8, w0, #1
	ldr	x9, [x19, #24]
	str	w8, [x9, #4]
Lloh13:
	adrp	x8, _ADC128_REG_TEMP_HYST@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ADC128_REG_TEMP_HYST@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_14
; %bb.11:
	lsl	w8, w0, #1
	ldr	x9, [x19, #24]
	str	w8, [x9, #8]
LBB0_12:
Lloh16:
	adrp	x8, _ADC128_REG_ALARM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ADC128_REG_ALARM@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_14
; %bb.13:
	ldr	w8, [x19, #32]
	orr	w8, w8, w0
	str	w8, [x19, #32]
	ldr	x8, [x23]
	str	x8, [x19, #40]
	mov	w8, #1
	mov	x0, x19
	b	LBB0_15
LBB0_14:
	bl	_ERR_PTR
	mov	w8, #0
LBB0_15:
	str	w8, [x19]
	mov	x19, x0
	b	LBB0_17
LBB0_16:
	ldr	w8, [x19]
	cbz	w8, LBB0_1
LBB0_17:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.comm	_num_inputs,8,3                 ; @num_inputs
	.comm	_ADC128_REG_TEMP,4,2            ; @ADC128_REG_TEMP
	.comm	_ADC128_REG_TEMP_MAX,4,2        ; @ADC128_REG_TEMP_MAX
	.comm	_ADC128_REG_TEMP_HYST,4,2       ; @ADC128_REG_TEMP_HYST
	.comm	_ADC128_REG_ALARM,4,2           ; @ADC128_REG_ALARM
	.no_dead_strip	_adc128_update_device
.subsections_via_symbols
