	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ltc294x_i2c_shutdown
_ltc294x_i2c_shutdown:                  ## @ltc294x_i2c_shutdown
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_i2c_get_clientdata
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_LTC2941_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.1:
	movl	8(%rbx), %edi
	movq	_LTC294X_REG_CONTROL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-24(%rbp), %rdx
	movl	$1, %ecx
	callq	_ltc294x_read_regs
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	movq	-24(%rbp), %rdi
	callq	_LTC294X_REG_CONTROL_ADC_DISABLE
	movq	%rax, -32(%rbp)
	cmpq	-24(%rbp), %rax
	je	LBB0_4
## %bb.3:
	movl	8(%rbx), %edi
	movl	(%r14), %esi
	leaq	-32(%rbp), %rdx
	movl	$1, %ecx
	callq	_ltc294x_write_regs
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LTC2941_ID,8,3                 ## @LTC2941_ID
	.comm	_LTC294X_REG_CONTROL,4,2        ## @LTC294X_REG_CONTROL
	.no_dead_strip	_ltc294x_i2c_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ltc294x_i2c_shutdown
_ltc294x_i2c_shutdown:                  ; @ltc294x_i2c_shutdown
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	bl	_i2c_get_clientdata
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _LTC2941_ID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LTC2941_ID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #8]
Lloh3:
	adrp	x20, _LTC294X_REG_CONTROL@GOTPAGE
Lloh4:
	ldr	x20, [x20, _LTC294X_REG_CONTROL@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #8
	mov	w3, #1
	bl	_ltc294x_read_regs
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldr	x0, [sp, #8]
	bl	_LTC294X_REG_CONTROL_ADC_DISABLE
	str	x0, [sp]
	ldr	x8, [sp, #8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x19, #8]
	ldr	w1, [x20]
	mov	x2, sp
	mov	w3, #1
	bl	_ltc294x_write_regs
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LTC2941_ID,8,3                 ; @LTC2941_ID
	.comm	_LTC294X_REG_CONTROL,4,2        ; @LTC294X_REG_CONTROL
	.no_dead_strip	_ltc294x_i2c_shutdown
.subsections_via_symbols
