	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smm665_update_device
_smm665_update_device:                  ## @smm665_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, %r15
	movq	32(%rax), %rbx
	leaq	16(%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	24(%r15), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_1
LBB0_2:
	movq	_SMM665_MISC8_STATUS1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_smm665_read16
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	%ebx, %edi
LBB0_4:
	callq	_ERR_PTR
	movq	%rax, %r15
	jmp	LBB0_11
LBB0_1:
	cmpl	$0, (%r15)
	jne	LBB0_11
	jmp	LBB0_2
LBB0_5:
	movl	%ebx, 4(%r15)
	movq	_SMM665_NUM_ADC@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_smm665_read_adc
	movl	%eax, %r12d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r15), %rax
	movl	%r12d, (%rax,%rbx,4)
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_10:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r15)
	movl	$1, (%r15)
LBB0_11:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%r12d, %edi
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.comm	_SMM665_MISC8_STATUS1,4,2       ## @SMM665_MISC8_STATUS1
	.comm	_SMM665_NUM_ADC,4,2             ## @SMM665_NUM_ADC
	.no_dead_strip	_smm665_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smm665_update_device
_smm665_update_device:                  ; @smm665_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	x20, x0
	ldr	x21, [x0, #32]
	add	x19, x0, #16
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x23, _jiffies@GOTPAGE
Lloh1:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x0, [x23]
	ldr	x8, [x20, #24]
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_4
LBB0_1:
Lloh5:
	adrp	x8, _SMM665_MISC8_STATUS1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SMM665_MISC8_STATUS1@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_smm665_read16
	mov	x21, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x21
LBB0_3:
	bl	_ERR_PTR
	mov	x20, x0
	b	LBB0_10
LBB0_4:
	ldr	w8, [x20]
	cbnz	w8, LBB0_10
	b	LBB0_1
LBB0_5:
	str	w21, [x20, #4]
Lloh8:
	adrp	x24, _SMM665_NUM_ADC@GOTPAGE
Lloh9:
	ldr	x24, [x24, _SMM665_NUM_ADC@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x21, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_smm665_read_adc
	mov	x22, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbnz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x20, #8]
	str	w22, [x8, x21, lsl #2]
	add	x21, x21, #1
	ldrsw	x8, [x24]
	cmp	x21, x8
	b.lt	LBB0_7
LBB0_9:
	ldr	x8, [x23]
	str	x8, [x20, #24]
	mov	w8, #1
	str	w8, [x20]
LBB0_10:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	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
LBB0_11:
	mov	x0, x22
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.comm	_SMM665_MISC8_STATUS1,4,2       ; @SMM665_MISC8_STATUS1
	.comm	_SMM665_NUM_ADC,4,2             ; @SMM665_NUM_ADC
	.no_dead_strip	_smm665_update_device
.subsections_via_symbols
