	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function abituguru3_update_device
_abituguru3_update_device:              ## @abituguru3_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
	leaq	4(%rax), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	cmpl	$0, (%r15)
	je	LBB0_2
## %bb.1:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_12
LBB0_2:
	movl	$0, (%r15)
	movq	_ABIT_UGURU3_SETTINGS_BANK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ABIT_UGURU3_ALARMS_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	32(%r15), %r8d
	movq	%r15, %rdi
	movl	$1, %ecx
	movl	$6, %r9d
	callq	_abituguru3_read_increment_offset
	cmpl	$6, %eax
	jne	LBB0_12
## %bb.3:
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ABIT_UGURU3_SENSORS_BANK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ABIT_UGURU3_VALUES_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	%rbx, %rdx
	movq	24(%r15), %r8
	addq	%r14, %r8
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_abituguru3_read
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_ABIT_UGURU3_SETTINGS_BANK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ABIT_UGURU3_SETTINGS_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	%r12, %rdx
	movq	16(%r15), %rax
	movl	(%rax,%r14), %r8d
	movq	%r15, %rdi
	movl	$1, %ecx
	movl	$3, %r9d
	callq	_abituguru3_read_increment_offset
	cmpl	$3, %eax
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	addq	$3, %r12
	addq	$4, %r14
	cmpq	$32, %rbx
	jne	LBB0_4
## %bb.7:
	movl	$128, %r14d
	movl	$32, %r12d
	movl	$96, %r13d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ABIT_UGURU3_SENSORS_BANK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ABIT_UGURU3_VALUES_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	%r12, %rdx
	movq	24(%r15), %r8
	addq	%r14, %r8
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_abituguru3_read
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_ABIT_UGURU3_SETTINGS_BANK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ABIT_UGURU3_SETTINGS_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	%r13, %rdx
	movq	16(%r15), %rax
	movl	(%rax,%r14), %r8d
	movq	%r15, %rdi
	movl	$1, %ecx
	movl	$2, %r9d
	callq	_abituguru3_read_increment_offset
	cmpl	$2, %eax
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=1
	addq	$4, %r14
	incq	%r12
	addq	$2, %r13
	cmpq	$48, %r12
	jne	LBB0_9
## %bb.11:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movl	$1, (%r15)
LBB0_12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	xorl	%eax, %eax
	cmpl	$0, (%r15)
	cmoveq	%rax, %r15
	movq	%r15, %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	_ABIT_UGURU3_SETTINGS_BANK,4,2  ## @ABIT_UGURU3_SETTINGS_BANK
	.comm	_ABIT_UGURU3_ALARMS_START,8,3   ## @ABIT_UGURU3_ALARMS_START
	.comm	_ABIT_UGURU3_SENSORS_BANK,4,2   ## @ABIT_UGURU3_SENSORS_BANK
	.comm	_ABIT_UGURU3_VALUES_START,8,3   ## @ABIT_UGURU3_VALUES_START
	.comm	_ABIT_UGURU3_SETTINGS_START,8,3 ## @ABIT_UGURU3_SETTINGS_START
	.no_dead_strip	_abituguru3_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function abituguru3_update_device
_abituguru3_update_device:              ; @abituguru3_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	x19, x0
	add	x20, x0, #4
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _HZ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_time_after
	cbz	x0, LBB0_12
LBB0_2:
Lloh6:
	adrp	x21, _ABIT_UGURU3_SETTINGS_BANK@GOTPAGE
Lloh7:
	ldr	x21, [x21, _ABIT_UGURU3_SETTINGS_BANK@GOTPAGEOFF]
	str	wzr, [x19]
	ldr	w1, [x21]
Lloh8:
	adrp	x8, _ABIT_UGURU3_ALARMS_START@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ABIT_UGURU3_ALARMS_START@GOTPAGEOFF]
Lloh10:
	ldr	x2, [x8]
	ldr	w4, [x19, #32]
	mov	x0, x19
	mov	w3, #1
	mov	w5, #6
	bl	_abituguru3_read_increment_offset
	cmp	w0, #6
	b.ne	LBB0_12
; %bb.3:
	mov	x25, #0
	mov	x26, #0
	mov	x27, #0
Lloh11:
	adrp	x22, _ABIT_UGURU3_SENSORS_BANK@GOTPAGE
Lloh12:
	ldr	x22, [x22, _ABIT_UGURU3_SENSORS_BANK@GOTPAGEOFF]
Lloh13:
	adrp	x23, _ABIT_UGURU3_VALUES_START@GOTPAGE
Lloh14:
	ldr	x23, [x23, _ABIT_UGURU3_VALUES_START@GOTPAGEOFF]
Lloh15:
	adrp	x24, _ABIT_UGURU3_SETTINGS_START@GOTPAGE
Lloh16:
	ldr	x24, [x24, _ABIT_UGURU3_SETTINGS_START@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	ldr	x8, [x23]
	add	x2, x27, x8
	ldr	x8, [x19, #24]
	add	x4, x8, x25
	mov	x0, x19
	mov	w3, #1
	bl	_abituguru3_read
	cmp	w0, #1
	b.ne	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x21]
	ldr	x8, [x24]
	add	x2, x26, x8
	ldr	x8, [x19, #16]
	ldr	w4, [x8, x25]
	mov	x0, x19
	mov	w3, #1
	mov	w5, #3
	bl	_abituguru3_read_increment_offset
	cmp	w0, #3
	b.ne	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, #1
	add	x26, x26, #3
	add	x25, x25, #4
	cmp	x27, #32
	b.ne	LBB0_4
; %bb.7:
	mov	w25, #128
	mov	w26, #32
	mov	w27, #96
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	ldr	x8, [x23]
	add	x2, x26, x8
	ldr	x8, [x19, #24]
	add	x4, x8, x25
	mov	x0, x19
	mov	w3, #1
	bl	_abituguru3_read
	cmp	w0, #1
	b.ne	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [x21]
	ldr	x8, [x24]
	add	x2, x27, x8
	ldr	x8, [x19, #16]
	ldr	w4, [x8, x25]
	mov	x0, x19
	mov	w3, #1
	mov	w5, #2
	bl	_abituguru3_read_increment_offset
	cmp	w0, #2
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x25, x25, #4
	add	x26, x26, #1
	add	x27, x27, #2
	cmp	x26, #48
	b.ne	LBB0_8
; %bb.11:
Lloh17:
	adrp	x8, _jiffies@GOTPAGE
Lloh18:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	mov	w8, #1
	str	w8, [x19]
LBB0_12:
	mov	x0, x20
	bl	_mutex_unlock
	ldr	w8, [x19]
	cmp	w8, #0
	csel	x0, xzr, x19, eq
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.comm	_ABIT_UGURU3_SETTINGS_BANK,4,2  ; @ABIT_UGURU3_SETTINGS_BANK
	.comm	_ABIT_UGURU3_ALARMS_START,8,3   ; @ABIT_UGURU3_ALARMS_START
	.comm	_ABIT_UGURU3_SENSORS_BANK,4,2   ; @ABIT_UGURU3_SENSORS_BANK
	.comm	_ABIT_UGURU3_VALUES_START,8,3   ; @ABIT_UGURU3_VALUES_START
	.comm	_ABIT_UGURU3_SETTINGS_START,8,3 ; @ABIT_UGURU3_SETTINGS_START
	.no_dead_strip	_abituguru3_update_device
.subsections_via_symbols
