	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ltc4245_update_gpios
_ltc4245_update_gpios:                  ## @ltc4245_update_gpios
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_dev_get_drvdata
	movq	%rax, %r15
	cmpl	$0, 32(%rax)
	je	LBB0_1
## %bb.2:
	movq	40(%r15), %r14
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rax,%rax,4), %rsi
	addq	24(%r15), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	8(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	movq	_EAGAIN@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	subl	(%r12), %eax
	movq	8(%r15), %rdi
	movl	%eax, (%rdi,%rbx,4)
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movq	_LTC4245_GPIO@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%r15), %rcx
	movq	8(%r15), %rdi
	movl	(%rcx,%rax,4), %ebx
	shrl	$6, %ebx
	andl	$3, %ebx
	xorl	%eax, %eax
	subl	$1, %ebx
	cmovbl	%eax, %ebx
	movq	16(%r15), %rax
	movq	_LTC4245_GPIOADC@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	-64(%rax,%rcx,4), %eax
	movl	%eax, (%rdi,%rbx,4)
	incl	%ebx
	callq	_ARRAY_SIZE
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	movq	(%r15), %rax
	movq	(%r12), %rsi
	movl	(%rax,%rsi,4), %eax
	andl	$63, %eax
	shll	$6, %edx
	leal	(%rdx,%rax), %ebx
	addl	$64, %ebx
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_i2c_smbus_write_byte_data
	movq	(%r15), %rax
	movq	(%r12), %rcx
	movl	%ebx, (%rax,%rcx,4)
	jmp	LBB0_7
LBB0_1:
	movq	8(%r15), %rax
	movq	16(%r15), %rcx
	movq	_LTC4245_GPIOADC@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	movl	-64(%rcx,%rdx,4), %ecx
	movl	%ecx, (%rax)
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LTC4245_GPIOADC,4,2            ## @LTC4245_GPIOADC
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_LTC4245_GPIO,8,3               ## @LTC4245_GPIO
	.no_dead_strip	_ltc4245_update_gpios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ltc4245_update_gpios
_ltc4245_update_gpios:                  ; @ltc4245_update_gpios
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_dev_get_drvdata
	mov	x19, x0
	ldr	w8, [x0, #32]
	cbz	w8, LBB0_6
; %bb.1:
	ldr	x20, [x19, #40]
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19, #24]
Lloh3:
	adrp	x9, _HZ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh5:
	ldrsw	x9, [x9]
	add	x9, x9, x9, lsl #2
	add	x1, x8, x9
	bl	_time_after
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x21, #0
Lloh6:
	adrp	x22, _EAGAIN@GOTPAGE
Lloh7:
	ldr	x22, [x22, _EAGAIN@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	neg	w8, w8
	ldr	x0, [x19, #8]
	str	w8, [x0, x21, lsl #2]
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.lt	LBB0_4
LBB0_5:
Lloh8:
	adrp	x22, _LTC4245_GPIO@GOTPAGE
Lloh9:
	ldr	x22, [x22, _LTC4245_GPIO@GOTPAGEOFF]
	ldr	x8, [x22]
	ldp	x9, x0, [x19]
	ldr	w8, [x9, x8, lsl #2]
	mov	w9, #3
	ands	w10, w9, w8, lsr #6
	tst	w9, w8, lsr #6
	ldr	x8, [x19, #16]
Lloh10:
	adrp	x9, _LTC4245_GPIOADC@GOTPAGE
Lloh11:
	ldr	x9, [x9, _LTC4245_GPIOADC@GOTPAGEOFF]
Lloh12:
	ldrsw	x9, [x9]
	add	x8, x8, x9, lsl #2
	sub	w9, w10, #1
	csel	w9, wzr, w9, eq
	ldur	w8, [x8, #-64]
	str	w8, [x0, w9, uxtw #2]
	add	w21, w9, #1
	bl	_ARRAY_SIZE
	sdiv	w8, w21, w0
	msub	w8, w8, w0, w21
	ldr	x9, [x19]
	ldr	x1, [x22]
	ldr	w9, [x9, x1, lsl #2]
	bfi	w9, w8, #6, #26
	add	w21, w9, #64
	mov	x0, x20
	mov	x2, x21
	bl	_i2c_smbus_write_byte_data
	ldr	x8, [x19]
	ldr	x9, [x22]
	str	w21, [x8, x9, lsl #2]
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x8, _LTC4245_GPIOADC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LTC4245_GPIOADC@GOTPAGEOFF]
Lloh15:
	ldrsw	x8, [x8]
	ldp	x10, x9, [x19, #8]
	add	x8, x9, x8, lsl #2
	ldur	w8, [x8, #-64]
	str	w8, [x10]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_LTC4245_GPIOADC,4,2            ; @LTC4245_GPIOADC
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_LTC4245_GPIO,8,3               ; @LTC4245_GPIO
	.no_dead_strip	_ltc4245_update_gpios
.subsections_via_symbols
