	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7418_update_device
_ad7418_update_device:                  ## @ad7418_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
	subq	$24, %rsp
	.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, %r13
	movq	48(%rax), %r15
	leaq	32(%rax), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	_jiffies@GOTPCREL(%rip), %rdx
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	addq	40(%r13), %rax
	movq	(%rdx), %rdi
	sarl	%ecx
	movslq	%ecx, %rsi
	addq	%rax, %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_13
LBB0_1:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	_AD7418_REG_CONF@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	xorl	%r14d, %r14d
	testl	%eax, %eax
	js	LBB0_14
## %bb.2:
	andl	$31, %ebx
	movl	(%r12), %esi
	movq	_AD7418_CH_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	orl	%ebx, %edx
	movq	%r15, %rdi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_15
## %bb.3:
	movl	$30, %edi
	callq	_udelay
	movq	_AD7418_REG_TEMP@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_word_swapped
	movl	%eax, %ebx
	testl	%eax, %eax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	js	LBB0_22
## %bb.4:
	movq	8(%r13), %rax
	movl	%ebx, (%rax)
	movq	(%r14), %rax
	movl	4(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_word_swapped
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_22
## %bb.5:
	movq	8(%r13), %rax
	movl	%ebx, 4(%rax)
	movq	(%r14), %rax
	movl	8(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_word_swapped
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_22
## %bb.6:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %rax
	movl	%ebx, 8(%rax)
	cmpl	$0, 16(%r13)
	jle	LBB0_11
## %bb.7:
	movl	$4, %r14d
	xorl	%r15d, %r15d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_AD7418_REG_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_AD7418_REG_ADC_CH
	orl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	$15, %edi
	callq	_udelay
	movq	_AD7418_REG_ADC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_i2c_smbus_read_word_swapped
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_20
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	24(%r13), %rax
	movl	16(%r13), %ecx
	addl	%r14d, %ecx
	addl	$-5, %ecx
	movslq	%ecx, %rcx
	movl	%ebx, (%rax,%rcx,4)
	incl	%r15d
	decl	%r14d
	cmpl	16(%r13), %r15d
	jl	LBB0_8
LBB0_11:
	movq	_AD7418_REG_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_i2c_smbus_write_word_swapped
	testl	%eax, %eax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	js	LBB0_21
## %bb.12:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r13)
	xorl	%ebx, %ebx
	movl	$1, %r14d
	jmp	LBB0_23
LBB0_13:
	xorl	%ebx, %ebx
	cmpl	$0, (%r13)
	jne	LBB0_24
	jmp	LBB0_1
LBB0_14:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_15:
	movl	%eax, %ebx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_19:
	movl	%eax, %ebx
LBB0_20:
	xorl	%r14d, %r14d
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_21:
	movl	%eax, %ebx
LBB0_22:
	xorl	%r14d, %r14d
LBB0_23:
	movl	%r14d, (%r13)
LBB0_24:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$24, %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,4,2                         ## @HZ
	.comm	_AD7418_REG_CONF,4,2            ## @AD7418_REG_CONF
	.comm	_AD7418_CH_TEMP,4,2             ## @AD7418_CH_TEMP
	.comm	_AD7418_REG_TEMP,8,3            ## @AD7418_REG_TEMP
	.comm	_AD7418_REG_ADC,4,2             ## @AD7418_REG_ADC
	.no_dead_strip	_ad7418_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad7418_update_device
_ad7418_update_device:                  ; @ad7418_update_device
	.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
	mov	x20, x0
	ldr	x21, [x0, #48]
	add	x19, x0, #32
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x25, _jiffies@GOTPAGE
Lloh1:
	ldr	x25, [x25, _jiffies@GOTPAGEOFF]
	ldr	x0, [x25]
	ldr	x8, [x20, #40]
Lloh2:
	adrp	x9, _HZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh4:
	ldrsw	x9, [x9]
	add	x8, x8, x9
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	add	x1, x8, w9, sxtw
	bl	_time_after
	cbz	x0, LBB0_13
LBB0_1:
Lloh5:
	adrp	x26, _AD7418_REG_CONF@GOTPAGE
Lloh6:
	ldr	x26, [x26, _AD7418_REG_CONF@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x23, x0
	tbnz	w0, #31, LBB0_16
; %bb.2:
	and	w22, w23, #0x1f
	ldr	w1, [x26]
Lloh7:
	adrp	x8, _AD7418_CH_TEMP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AD7418_CH_TEMP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w2, w8, w22
	mov	x0, x21
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_15
; %bb.3:
	mov	w0, #30
	bl	_udelay
Lloh10:
	adrp	x24, _AD7418_REG_TEMP@GOTPAGE
Lloh11:
	ldr	x24, [x24, _AD7418_REG_TEMP@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_word_swapped
	mov	x23, x0
	tbnz	w0, #31, LBB0_16
; %bb.4:
	ldr	x8, [x20, #8]
	str	w23, [x8]
	ldr	x8, [x24]
	ldr	w1, [x8, #4]
	mov	x0, x21
	bl	_i2c_smbus_read_word_swapped
	mov	x23, x0
	tbnz	w0, #31, LBB0_16
; %bb.5:
	ldr	x8, [x20, #8]
	str	w23, [x8, #4]
	ldr	x8, [x24]
	ldr	w1, [x8, #8]
	mov	x0, x21
	bl	_i2c_smbus_read_word_swapped
	mov	x23, x0
	tbnz	w0, #31, LBB0_16
; %bb.6:
	ldr	x8, [x20, #8]
	str	w23, [x8, #8]
	ldr	w8, [x20, #16]
	cmp	w8, #0
	b.le	LBB0_11
; %bb.7:
	mov	w27, #0
	mov	w24, #4
Lloh12:
	adrp	x28, _AD7418_REG_ADC@GOTPAGE
Lloh13:
	ldr	x28, [x28, _AD7418_REG_ADC@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x26]
	mov	x0, x24
	bl	_AD7418_REG_ADC_CH
	orr	w2, w0, w22
	mov	x0, x21
	mov	x1, x23
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #15
	bl	_udelay
	ldr	w1, [x28]
	mov	x0, x21
	bl	_i2c_smbus_read_word_swapped
	mov	x23, x0
	tbnz	w0, #31, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x20, #24]
	ldr	w9, [x20, #16]
	add	w9, w24, w9
	sub	w9, w9, #5
	str	w23, [x8, w9, sxtw #2]
	add	w27, w27, #1
	sub	w24, w24, #1
	ldr	w8, [x20, #16]
	cmp	w27, w8
	b.lt	LBB0_8
LBB0_11:
	ldr	w1, [x26]
	mov	x0, x21
	mov	x2, x22
	bl	_i2c_smbus_write_word_swapped
	tbnz	w0, #31, LBB0_15
; %bb.12:
	mov	w23, #0
	ldr	x8, [x25]
	str	x8, [x20, #40]
	mov	w8, #1
	b	LBB0_17
LBB0_13:
	ldr	w8, [x20]
	cbz	w8, LBB0_1
; %bb.14:
	mov	w23, #0
	b	LBB0_18
LBB0_15:
	mov	x23, x0
LBB0_16:
	mov	w8, #0
LBB0_17:
	str	w8, [x20]
LBB0_18:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x23
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_AD7418_REG_CONF,4,2            ; @AD7418_REG_CONF
	.comm	_AD7418_CH_TEMP,4,2             ; @AD7418_CH_TEMP
	.comm	_AD7418_REG_TEMP,8,3            ; @AD7418_REG_TEMP
	.comm	_AD7418_REG_ADC,4,2             ; @AD7418_REG_ADC
	.no_dead_strip	_ad7418_update_device
.subsections_via_symbols
