	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun4i_gpadc_probe
_sun4i_gpadc_probe:                     ## @sun4i_gpadc_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	_sun4i_gpadc_of_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	_of_match_node
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	(%rax), %rax
	leaq	-128(%rax), %rcx
	cmpq	$3, %rcx
	jae	LBB0_1
## %bb.4:
	leaq	l_switch.table.sun4i_gpadc_probe(%rip), %rcx
	movq	-1024(%rcx,%rax,8), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r12
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 16(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.14:
	movl	16(%r12), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	%r13, (%r12)
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_dev_set_drvdata
	movq	(%r12), %rdi
	movl	16(%r12), %esi
	movq	_sun4i_gpadc_regmap_config@GOTPCREL(%rip), %rdx
	callq	_devm_regmap_init_mmio
	movl	%eax, 12(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	12(%r12), %edi
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_13
LBB0_9:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	_SUN4I_GPADC_INT_FIFOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_regmap_write
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	12(%r12), %esi
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r12, %rdx
	addq	$8, %rdx
	movq	%rdx, (%rsp)
	movq	_sun4i_gpadc_regmap_irq_chip@GOTPCREL(%rip), %r9
	movq	%r13, %rdi
	movl	%eax, %edx
	xorl	%r8d, %r8d
	callq	_devm_regmap_add_irq_chip
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movl	%r15d, %ebx
	jmp	LBB0_13
LBB0_11:
	movq	(%r12), %rdi
	movq	$0, (%rsp)
	xorl	%esi, %esi
	movq	%r14, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_devm_mfd_add_devices
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movl	%r14d, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_sun4i_gpadc_of_match,4,2       ## @sun4i_gpadc_of_match
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_sun4i_gpadc_cells,8,3          ## @sun4i_gpadc_cells
	.comm	_sun5i_gpadc_cells,8,3          ## @sun5i_gpadc_cells
	.comm	_sun6i_gpadc_cells,8,3          ## @sun6i_gpadc_cells
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_sun4i_gpadc_regmap_config,4,2  ## @sun4i_gpadc_regmap_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to init regmap: %d\n"

	.comm	_SUN4I_GPADC_INT_FIFOC,4,2      ## @SUN4I_GPADC_INT_FIFOC
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_sun4i_gpadc_regmap_irq_chip,4,2 ## @sun4i_gpadc_regmap_irq_chip
L_.str.1:                               ## @.str.1
	.asciz	"failed to add irq chip: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to add MFD devices: %d\n"

	.no_dead_strip	_sun4i_gpadc_probe
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.sun4i_gpadc_probe
l_switch.table.sun4i_gpadc_probe:
	.quad	_sun6i_gpadc_cells
	.quad	_sun5i_gpadc_cells
	.quad	_sun4i_gpadc_cells

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun4i_gpadc_probe
_sun4i_gpadc_probe:                     ; @sun4i_gpadc_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _sun4i_gpadc_of_match@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sun4i_gpadc_of_match@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_of_match_node
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x0]
	sub	x8, x8, #128
	cmp	x8, #3
	b.hs	LBB0_5
; %bb.2:
Lloh3:
	adrp	x9, l_switch.table.sun4i_gpadc_probe@PAGE
Lloh4:
	add	x9, x9, l_switch.table.sun4i_gpadc_probe@PAGEOFF
	ldr	x8, [x9, x8, lsl #3]
	ldr	x20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x21, x0
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_8
; %bb.3:
	mov	x22, x0
Lloh8:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	w0, [x22, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.4:
	ldr	w0, [x22, #16]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_5:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_7:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_9:
	str	x19, [x22]
	mov	x0, x19
	mov	x1, x22
	bl	_dev_set_drvdata
	ldr	x0, [x22]
	ldr	w1, [x22, #16]
Lloh15:
	adrp	x2, _sun4i_gpadc_regmap_config@GOTPAGE
Lloh16:
	ldr	x2, [x2, _sun4i_gpadc_regmap_config@GOTPAGEOFF]
	bl	_devm_regmap_init_mmio
	str	w0, [x22, #12]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x22, #12]
	cbz	x8, LBB0_11
; %bb.10:
	bl	_PTR_ERR
	mov	x23, x0
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_15
LBB0_11:
Lloh19:
	adrp	x8, _SUN4I_GPADC_INT_FIFOC@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SUN4I_GPADC_INT_FIFOC@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_regmap_write
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x2, x0
	ldr	w1, [x22, #12]
Lloh22:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	add	x6, x22, #8
Lloh25:
	adrp	x5, _sun4i_gpadc_regmap_irq_chip@GOTPAGE
Lloh26:
	ldr	x5, [x5, _sun4i_gpadc_regmap_irq_chip@GOTPAGEOFF]
	mov	x0, x19
	mov	w4, #0
	bl	_devm_regmap_add_irq_chip
	cbz	w0, LBB0_13
; %bb.12:
	mov	x23, x0
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_13:
	ldr	x0, [x22]
	mov	w1, #0
	mov	x2, x20
	mov	x3, x21
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_devm_mfd_add_devices
	mov	x23, x0
	cbz	w0, LBB0_7
; %bb.14:
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_15:
	mov	x0, x19
	mov	x2, x23
	bl	_dev_err
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_sun4i_gpadc_of_match,4,2       ; @sun4i_gpadc_of_match
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_sun4i_gpadc_cells,8,3          ; @sun4i_gpadc_cells
	.comm	_sun5i_gpadc_cells,8,3          ; @sun5i_gpadc_cells
	.comm	_sun6i_gpadc_cells,8,3          ; @sun6i_gpadc_cells
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_sun4i_gpadc_regmap_config,4,2  ; @sun4i_gpadc_regmap_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to init regmap: %d\n"

	.comm	_SUN4I_GPADC_INT_FIFOC,4,2      ; @SUN4I_GPADC_INT_FIFOC
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_sun4i_gpadc_regmap_irq_chip,4,2 ; @sun4i_gpadc_regmap_irq_chip
l_.str.1:                               ; @.str.1
	.asciz	"failed to add irq chip: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to add MFD devices: %d\n"

	.no_dead_strip	_sun4i_gpadc_probe
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.sun4i_gpadc_probe
l_switch.table.sun4i_gpadc_probe:
	.quad	_sun6i_gpadc_cells
	.quad	_sun5i_gpadc_cells
	.quad	_sun4i_gpadc_cells

.subsections_via_symbols
