	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max16065_update_device
_max16065_update_device:                ## @max16065_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	56(%rax), %r15
	leaq	8(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_jiffies@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r12), %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	cmpl	$0, (%r12)
	jne	LBB0_11
LBB0_2:
	movl	4(%r12), %edi
	testl	%edi, %edi
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_MAX16065_ADC
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_max16065_read_adc
	movq	40(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	4(%r12), %rdi
	cmpq	%rdi, %rbx
	jl	LBB0_4
LBB0_5:
	cmpq	$0, 48(%r12)
	je	LBB0_7
## %bb.6:
	movq	_MAX16065_CSP_ADC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_max16065_read_adc
	movq	40(%r12), %rcx
	movq	_MAX16065_NUM_ADC@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	_MAX16065_CURR_SENSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	%rax, 32(%r12)
	movl	4(%r12), %edi
LBB0_7:
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$8, %esi
	callq	_DIV_ROUND_UP
	testl	%eax, %eax
	jle	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_MAX16065_FAULT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	movq	24(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movl	4(%r12), %edi
	movl	$8, %esi
	callq	_DIV_ROUND_UP
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_10:
	movq	(%r13), %rax
	movq	%rax, 16(%r12)
	movl	$1, (%r12)
LBB0_11:
	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	_MAX16065_CSP_ADC,4,2           ## @MAX16065_CSP_ADC
	.comm	_MAX16065_NUM_ADC,8,3           ## @MAX16065_NUM_ADC
	.comm	_MAX16065_CURR_SENSE,4,2        ## @MAX16065_CURR_SENSE
	.no_dead_strip	_max16065_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max16065_update_device
_max16065_update_device:                ; @max16065_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, #56]
	add	x20, x0, #8
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x23, _jiffies@GOTPAGE
Lloh1:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x0, [x23]
	ldr	x8, [x19, #16]
Lloh2:
	adrp	x9, _HZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_time_after
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	cbnz	w8, LBB0_11
LBB0_2:
	ldr	w0, [x19, #4]
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x22, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_MAX16065_ADC
	mov	x1, x0
	mov	x0, x21
	bl	_max16065_read_adc
	ldr	x8, [x19, #40]
	str	x0, [x8, x22, lsl #3]
	add	x22, x22, #1
	ldrsw	x0, [x19, #4]
	cmp	x22, x0
	b.lt	LBB0_4
LBB0_5:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_7
; %bb.6:
Lloh5:
	adrp	x8, _MAX16065_CSP_ADC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX16065_CSP_ADC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_max16065_read_adc
	ldr	x8, [x19, #40]
Lloh8:
	adrp	x9, _MAX16065_NUM_ADC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MAX16065_NUM_ADC@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	str	x0, [x8, x9, lsl #3]
Lloh11:
	adrp	x8, _MAX16065_CURR_SENSE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAX16065_CURR_SENSE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	str	x0, [x19, #32]
	ldr	w0, [x19, #4]
LBB0_7:
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #8
	bl	_DIV_ROUND_UP
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x22, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_MAX16065_FAULT
	mov	x1, x0
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	ldr	x8, [x19, #24]
	str	x0, [x8, x22, lsl #3]
	add	x22, x22, #1
	ldr	w0, [x19, #4]
	mov	w1, #8
	bl	_DIV_ROUND_UP
	cmp	x22, w0, sxtw
	b.lt	LBB0_9
LBB0_10:
	ldr	x8, [x23]
	str	x8, [x19, #16]
	mov	w8, #1
	str	w8, [x19]
LBB0_11:
	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 AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.comm	_MAX16065_CSP_ADC,4,2           ; @MAX16065_CSP_ADC
	.comm	_MAX16065_NUM_ADC,8,3           ; @MAX16065_NUM_ADC
	.comm	_MAX16065_CURR_SENSE,4,2        ; @MAX16065_CURR_SENSE
	.no_dead_strip	_max16065_update_device
.subsections_via_symbols
