	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun4i_lradc_close
_sun4i_lradc_close:                     ## @sun4i_lradc_close
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_input_get_drvdata
	movq	%rax, %r14
	movl	$2, %edi
	callq	_FIRST_CONVERT_DLY
	movl	%eax, %r15d
	movl	$1, %edi
	callq	_LEVELA_B_CNT
	orl	%eax, %r15d
	movl	$1, %edi
	callq	_HOLD_EN
	movl	%eax, %ebx
	movl	$2, %edi
	callq	_SAMPLE_RATE
	orl	%eax, %ebx
	orl	%r15d, %ebx
	movq	_LRADC_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	_LRADC_INTC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	xorl	%edi, %edi
	callq	_writel
	movl	(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regulator_disable              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LRADC_CTRL,8,3                 ## @LRADC_CTRL
	.comm	_LRADC_INTC,8,3                 ## @LRADC_INTC
	.no_dead_strip	_sun4i_lradc_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun4i_lradc_close
_sun4i_lradc_close:                     ; @sun4i_lradc_close
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_input_get_drvdata
	mov	x19, x0
	mov	w0, #2
	bl	_FIRST_CONVERT_DLY
	mov	x20, x0
	mov	w0, #1
	bl	_LEVELA_B_CNT
	orr	w20, w0, w20
	mov	w0, #1
	bl	_HOLD_EN
	orr	w20, w20, w0
	mov	w0, #2
	bl	_SAMPLE_RATE
	orr	w0, w20, w0
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _LRADC_CTRL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LRADC_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _LRADC_INTC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LRADC_INTC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_regulator_disable
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LRADC_CTRL,8,3                 ; @LRADC_CTRL
	.comm	_LRADC_INTC,8,3                 ; @LRADC_INTC
	.no_dead_strip	_sun4i_lradc_close
.subsections_via_symbols
