	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun4i_lradc_probe
_sun4i_lradc_probe:                     ## @sun4i_lradc_probe
	.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
	movq	%rdi, %r15
	leaq	4(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_sun4i_lradc_load_dt_keymap
	testl	%eax, %eax
	jne	LBB0_16
## %bb.4:
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movl	%eax, 44(%r12)
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get
	movl	%eax, 40(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	40(%r12), %edi
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_9:
	movq	%r14, 32(%r12)
	movq	%r14, %rdi
	callq	_devm_input_allocate_device
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_1
## %bb.10:
	movl	(%r15), %ecx
	movl	%ecx, 40(%rax)
	leaq	L_.str.2(%rip), %rcx
	movq	%rcx, (%rax)
	movq	_sun4i_lradc_open@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%rax)
	movq	_sun4i_lradc_close@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rax)
	movq	_BUS_HOST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%rax)
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	movq	%rcx, 16(%rax)
	movl	$256, 24(%rax)                  ## imm = 0x100
	movq	_EV_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	12(%rax), %esi
	callq	___set_bit
	cmpl	$0, (%r12)
	jle	LBB0_13
## %bb.11:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	24(%r12), %rcx
	movl	(%rcx,%rbx,4), %edi
	movl	8(%rax), %esi
	callq	___set_bit
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_12
LBB0_13:
	movq	8(%r12), %rdi
	movq	%r12, %rsi
	callq	_input_set_drvdata
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_devm_ioremap_resource
	movl	%eax, 16(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movl	16(%r12), %edi
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	_sun4i_lradc_irq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str.3(%rip), %r8
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	movq	%r12, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	jne	LBB0_16
## %bb.17:
	movq	8(%r12), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_register_device          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Missing sun4i-a10-lradc-keys variant\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"vref"

L_.str.2:                               ## @.str.2
	.asciz	"sun4i_lradc/input0"

	.comm	_sun4i_lradc_open,4,2           ## @sun4i_lradc_open
	.comm	_sun4i_lradc_close,4,2          ## @sun4i_lradc_close
	.comm	_BUS_HOST,4,2                   ## @BUS_HOST
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_sun4i_lradc_irq,4,2            ## @sun4i_lradc_irq
L_.str.3:                               ## @.str.3
	.asciz	"sun4i-a10-lradc-keys"

	.no_dead_strip	_sun4i_lradc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun4i_lradc_probe
_sun4i_lradc_probe:                     ; @sun4i_lradc_probe
	.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
	mov	x21, x0
	add	x20, x0, #4
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_13
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_sun4i_lradc_load_dt_keymap
	cbnz	w0, LBB0_15
; %bb.2:
	mov	x0, x20
	bl	_of_device_get_match_data
	str	w0, [x19, #44]
	cbz	w0, LBB0_6
; %bb.3:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_devm_regulator_get
	str	w0, [x19, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.4:
	ldr	w0, [x19, #40]
LBB0_5:
	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
	b	_PTR_ERR
LBB0_6:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_7:
	str	x20, [x19, #32]
	mov	x0, x20
	bl	_devm_input_allocate_device
	str	x0, [x19, #8]
	cbz	x0, LBB0_13
; %bb.8:
	ldr	w8, [x21]
	str	w8, [x0, #40]
Lloh9:
	adrp	x8, l_.str.2@PAGE
Lloh10:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [x0]
Lloh11:
	adrp	x8, _sun4i_lradc_open@GOTPAGE
Lloh12:
	ldr	x8, [x8, _sun4i_lradc_open@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _sun4i_lradc_close@GOTPAGE
Lloh15:
	ldr	x9, [x9, _sun4i_lradc_close@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #32]
Lloh17:
	adrp	x8, _BUS_HOST@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BUS_HOST@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	movi.2s	v0, #1
	str	d0, [x0, #16]
	mov	w9, #256
	stp	w9, w8, [x0, #24]
Lloh20:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w1, [x0, #12]
	mov	x0, x8
	bl	___set_bit
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x22, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	w0, [x8, x22, lsl #2]
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #8]
	bl	___set_bit
	add	x22, x22, #1
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.lt	LBB0_10
LBB0_11:
	ldr	x0, [x19, #8]
	mov	x1, x19
	bl	_input_set_drvdata
Lloh23:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	w0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.12:
	ldr	w0, [x19, #16]
	b	LBB0_5
LBB0_13:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	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
LBB0_16:
	mov	x0, x21
	mov	w1, #0
	bl	_platform_get_irq
	mov	x1, x0
Lloh28:
	adrp	x8, _sun4i_lradc_irq@GOTPAGE
Lloh29:
	ldr	x8, [x8, _sun4i_lradc_irq@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
Lloh31:
	adrp	x4, l_.str.3@PAGE
Lloh32:
	add	x4, x4, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	w3, #0
	mov	x5, x19
	bl	_devm_request_irq
	cbnz	w0, LBB0_15
; %bb.17:
	ldr	x0, [x19, #8]
	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
	b	_input_register_device
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Missing sun4i-a10-lradc-keys variant\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"vref"

l_.str.2:                               ; @.str.2
	.asciz	"sun4i_lradc/input0"

	.comm	_sun4i_lradc_open,4,2           ; @sun4i_lradc_open
	.comm	_sun4i_lradc_close,4,2          ; @sun4i_lradc_close
	.comm	_BUS_HOST,4,2                   ; @BUS_HOST
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_sun4i_lradc_irq,4,2            ; @sun4i_lradc_irq
l_.str.3:                               ; @.str.3
	.asciz	"sun4i-a10-lradc-keys"

	.no_dead_strip	_sun4i_lradc_probe
.subsections_via_symbols
