	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lp8788_setup_adc_channel
_lp8788_setup_adc_channel:              ## @lp8788_setup_adc_channel
	.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
	movq	8(%rsi), %r12
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	4(%r12), %esi
	callq	_iio_channel_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	xorl	%r13d, %r13d
	testq	%rax, %rax
	cmovneq	%r13, %rbx
	movq	(%r15), %rax
	movq	_LP8788_VBATT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rbx, (%rax,%rcx,8)
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_iio_channel_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	cmoveq	%rbx, %r13
	movq	(%r15), %rax
	movq	_LP8788_BATT_TEMP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%r13, (%rax,%rcx,8)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LP8788_VBATT,8,3               ## @LP8788_VBATT
	.comm	_LP8788_BATT_TEMP,8,3           ## @LP8788_BATT_TEMP
	.no_dead_strip	_lp8788_setup_adc_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lp8788_setup_adc_channel
_lp8788_setup_adc_channel:              ; @lp8788_setup_adc_channel
	.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
	ldr	x22, [x1, #8]
	cbz	x22, LBB0_2
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w1, [x22, #4]
	bl	_iio_channel_get
	mov	x21, x0
	bl	_IS_ERR
	cmp	x0, #0
	csel	x8, x21, xzr, eq
	ldr	x9, [x19]
Lloh0:
	adrp	x10, _LP8788_VBATT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _LP8788_VBATT@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	str	x8, [x9, x10, lsl #3]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_iio_channel_get
	mov	x20, x0
	bl	_IS_ERR
	cmp	x0, #0
	csel	x8, x20, xzr, eq
	ldr	x9, [x19]
Lloh3:
	adrp	x10, _LP8788_BATT_TEMP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _LP8788_BATT_TEMP@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	str	x8, [x9, x10, lsl #3]
LBB0_2:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_LP8788_VBATT,8,3               ; @LP8788_VBATT
	.comm	_LP8788_BATT_TEMP,8,3           ; @LP8788_BATT_TEMP
	.no_dead_strip	_lp8788_setup_adc_channel
.subsections_via_symbols
