	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_pinctrl_probe
_atmel_pinctrl_probe:                   ## @atmel_pinctrl_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	$104, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_31
## %bb.1:
	movq	%rax, %r14
	movq	%r15, 96(%rax)
	movl	(%r15), %eax
	movl	%eax, 92(%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	_atmel_pctrl_of_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_of_match_node
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_ATMEL_PIO_NPINS_PER_BANK@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movl	%eax, 4(%r14)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 88(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_4:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
LBB0_5:
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_6:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movl	%eax, 24(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	24(%r14), %edi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_8:
	movl	4(%r14), %esi
	movl	(%r13), %ecx
	movq	%r15, %rdi
	movl	$8, %edx
	callq	_devm_kcalloc
	movq	%rax, 72(%r14)
	testq	%rax, %rax
	je	LBB0_31
## %bb.9:
	movl	4(%r14), %esi
	movl	(%r13), %ecx
	movq	%r15, %rdi
	movl	$16, %edx
	callq	_devm_kcalloc
	testq	%rax, %rax
	je	LBB0_31
## %bb.10:
	movq	_atmel_pinctrl_desc@GOTPCREL(%rip), %rbx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, 16(%rbx)
	movl	4(%r14), %eax
	movl	%eax, (%rbx)
	movq	_atmel_custom_bindings@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_ARRAY_SIZE
	movl	%eax, 8(%rbx)
	movl	(%r12), %eax
	movl	%eax, 4(%rbx)
	movl	4(%r14), %esi
	movl	(%r13), %ecx
	movq	%r15, %rdi
	movl	$8, %edx
	callq	_devm_kcalloc
	testq	%rax, %rax
	je	LBB0_31
## %bb.11:
	movq	%rax, %rbx
	movq	%rax, 8(%r14)
	movl	4(%r14), %esi
	movl	(%r13), %ecx
	movq	%r15, %rdi
	movl	$16, %edx
	callq	_devm_kcalloc
	movq	%rax, 80(%r14)
	testq	%rax, %rax
	je	LBB0_31
## %bb.12:
	movl	4(%r14), %esi
	testl	%esi, %esi
	jle	LBB0_19
## %bb.13:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	_ATMEL_PIO_BANK
	movl	%eax, %r12d
	xorl	%edi, %edi
	callq	_ATMEL_PIO_LINE
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r13), %edx
	movq	%r15, %rdi
	movl	$12, %esi
	callq	_devm_kzalloc
	movq	72(%r14), %rcx
	movq	%rax, (%rcx)
	movq	72(%r14), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:
	movq	%r13, %rsi
	xorl	%edx, %edx
	xorl	%r13d, %r13d
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	%r13d, (%rax)
	movl	%r12d, 4(%rax)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 8(%rax)
	movq	%r12, %rax
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, (%rdi,%rdx)
	movl	(%rsi), %edi
	movq	%rdx, %r12
	leal	65(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_kasprintf
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, 8(%rdx,%r12)
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r13,8)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r12)
	movl	(%rdx,%r12), %eax
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movl	%eax, 8(%rcx,%r12)
	movq	%r15, %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%r13d, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_dev_dbg
	leaq	1(%r13), %r12
	movslq	4(%r14), %rsi
	cmpq	%rsi, %r12
	jge	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	80(%r14), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edi
	callq	_ATMEL_PIO_BANK
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edi
	callq	_ATMEL_PIO_LINE
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$12, %esi
	callq	_devm_kzalloc
	movq	72(%r14), %rcx
	movq	%rax, 8(%rcx,%r13,8)
	movq	72(%r14), %rax
	movq	8(%rax,%r13,8), %rax
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	addq	$16, %rdx
	movq	%r12, %r13
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	testq	%rax, %rax
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rsi
	jne	LBB0_15
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_18:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
LBB0_19:
	movq	_atmel_gpio_chip@GOTPCREL(%rip), %rcx
	movq	%rcx, 32(%r14)
	movl	(%r15), %edx
	movl	%edx, 28(%rcx)
	movl	%esi, (%rcx)
	movq	%r15, %rdi
	callq	_dev_name
	movq	32(%r14), %rcx
	movl	%eax, 24(%rcx)
	movq	%r15, 16(%rcx)
	movq	8(%r14), %rax
	movq	%rax, 8(%rcx)
	movl	(%r14), %esi
	movl	(%r13), %ecx
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_devm_kcalloc
	movq	%rax, 64(%r14)
	testq	%rax, %rax
	je	LBB0_31
## %bb.20:
	movl	(%r14), %esi
	movl	(%r13), %ecx
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_devm_kcalloc
	movq	%rax, 56(%r14)
	testq	%rax, %rax
	je	LBB0_31
## %bb.21:
	movl	(%r14), %esi
	movl	(%r13), %ecx
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_devm_kcalloc
	movq	%rax, 48(%r14)
	testq	%rax, %rax
	je	LBB0_31
## %bb.22:
	cmpl	$0, (%r14)
	jle	LBB0_26
## %bb.23:
	leaq	L_.str.5(%rip), %r13
	xorl	%r12d, %r12d
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_36
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	%rax, %rbx
	movl	(%rax), %eax
	movq	48(%r14), %rcx
	movl	%eax, (%rcx,%r12,4)
	movl	(%rbx), %edi
	movq	_atmel_gpio_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_irq_set_chained_handler
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_irq_set_handler_data
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_dev_dbg
	incq	%r12
	movslq	(%r14), %rax
	cmpq	%rax, %r12
	jl	LBB0_24
LBB0_26:
	movl	(%r15), %edi
	movq	32(%r14), %rax
	movl	(%rax), %esi
	movq	_irq_domain_simple_ops@GOTPCREL(%rip), %rdx
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	callq	_irq_domain_add_linear
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_37
## %bb.27:
	movq	%rax, %rdi
	leaq	L_.str.7(%rip), %rax
	movq	%rax, (%rdi)
	cmpl	$0, 4(%r14)
	jle	LBB0_34
## %bb.28:
	movl	$1, %r13d
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	leal	-1(%r13), %ebx
	movl	%ebx, %esi
	callq	_irq_create_mapping
	movl	%eax, %r12d
	movq	_handle_simple_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	movq	_atmel_gpio_irq_chip@GOTPCREL(%rip), %rsi
	callq	_irq_set_chip_and_handler
	movl	%r12d, %edi
	movq	%r14, %rsi
	callq	_irq_set_chip_data
	movq	%r15, %rdi
	leaq	L_.str.8(%rip), %rsi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpl	4(%r14), %r13d
	jge	LBB0_34
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	16(%r14), %rdi
	incl	%r13d
	jmp	LBB0_29
LBB0_31:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_32:
	subl	(%rax), %ebx
LBB0_33:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	movl	24(%r14), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_38
## %bb.35:
	movl	%eax, %ebx
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_44
LBB0_36:
	addl	$65, %r12d
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_3
LBB0_37:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_5
LBB0_38:
	movq	_atmel_pinctrl_desc@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_devm_pinctrl_register
	movl	%eax, 40(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_40
## %bb.39:
	movl	40(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.10(%rip), %rsi
	jmp	LBB0_42
LBB0_40:
	movq	32(%r14), %rdi
	movq	%r14, %rsi
	callq	_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_45
## %bb.41:
	movl	%eax, %ebx
	leaq	L_.str.11(%rip), %rsi
LBB0_42:
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_43:
	movl	24(%r14), %edi
	callq	_clk_disable_unprepare
LBB0_44:
	movq	16(%r14), %rdi
	callq	_irq_domain_remove
	jmp	LBB0_33
LBB0_45:
	movq	32(%r14), %r12
	movq	%r15, %rdi
	callq	_dev_name
	movq	32(%r14), %rcx
	movl	(%rcx), %r8d
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_gpiochip_add_pin_range
	testl	%eax, %eax
	je	LBB0_47
## %bb.46:
	movl	%eax, %r12d
	leaq	L_.str.12(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	32(%r14), %rdi
	callq	_gpiochip_remove
	movl	%r12d, %ebx
	jmp	LBB0_43
LBB0_47:
	leaq	L_.str.13(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_atmel_pctrl_of_match,4,2       ## @atmel_pctrl_of_match
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown compatible string\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ATMEL_PIO_NPINS_PER_BANK,4,2   ## @ATMEL_PIO_NPINS_PER_BANK
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"failed to get clock\n"

	.comm	_atmel_pinctrl_desc,24,3        ## @atmel_pinctrl_desc
	.comm	_atmel_custom_bindings,4,2      ## @atmel_custom_bindings
L_.str.2:                               ## @.str.2
	.asciz	"P%c%d"

L_.str.3:                               ## @.str.3
	.asciz	"pin_id=%u, bank=%u, line=%u"

	.comm	_atmel_gpio_chip,32,3           ## @atmel_gpio_chip
	.comm	_IORESOURCE_IRQ,4,2             ## @IORESOURCE_IRQ
L_.str.4:                               ## @.str.4
	.asciz	"missing irq resource for group %c\n"

	.comm	_atmel_gpio_irq_handler,4,2     ## @atmel_gpio_irq_handler
L_.str.5:                               ## @.str.5
	.asciz	"bank %i: irq=%pr\n"

	.comm	_irq_domain_simple_ops,4,2      ## @irq_domain_simple_ops
L_.str.6:                               ## @.str.6
	.asciz	"can't add the irq domain\n"

L_.str.7:                               ## @.str.7
	.asciz	"atmel gpio"

	.comm	_atmel_gpio_irq_chip,4,2        ## @atmel_gpio_irq_chip
	.comm	_handle_simple_irq,4,2          ## @handle_simple_irq
L_.str.8:                               ## @.str.8
	.asciz	"atmel gpio irq domain: hwirq: %d, linux irq: %d\n"

L_.str.9:                               ## @.str.9
	.asciz	"failed to prepare and enable clock\n"

L_.str.10:                              ## @.str.10
	.asciz	"pinctrl registration failed\n"

L_.str.11:                              ## @.str.11
	.asciz	"failed to add gpiochip\n"

L_.str.12:                              ## @.str.12
	.asciz	"failed to add gpio pin range\n"

L_.str.13:                              ## @.str.13
	.asciz	"atmel pinctrl initialized\n"

	.no_dead_strip	_atmel_pinctrl_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_pinctrl_probe
_atmel_pinctrl_probe:                   ; @atmel_pinctrl_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
Lloh0:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	w1, #104
	bl	_devm_kzalloc
	cbz	x0, LBB0_29
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #96]
	ldr	w8, [x20]
	str	w8, [x0, #92]
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
Lloh2:
	adrp	x8, _atmel_pctrl_of_match@GOTPAGE
Lloh3:
	ldr	x8, [x8, _atmel_pctrl_of_match@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_of_match_node
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x0]
	ldr	w8, [x8]
	str	w8, [x19]
Lloh5:
	adrp	x9, _ATMEL_PIO_NPINS_PER_BANK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ATMEL_PIO_NPINS_PER_BANK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	mul	w8, w9, w8
	str	w8, [x19, #4]
Lloh8:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	w0, [x19, #88]
	bl	_IS_ERR
	cbz	x0, LBB0_6
LBB0_3:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_30
LBB0_4:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
LBB0_5:
	mov	x0, x20
	bl	_dev_err
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_30
LBB0_6:
	mov	x0, x20
	mov	x1, #0
	bl	_devm_clk_get
	str	w0, [x19, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x19, #24]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_PTR_ERR
LBB0_8:
	ldr	w1, [x19, #4]
	ldr	w3, [x26]
	mov	x0, x20
	mov	w2, #8
	bl	_devm_kcalloc
	str	x0, [x19, #72]
	cbz	x0, LBB0_29
; %bb.9:
	ldr	w1, [x19, #4]
	ldr	w3, [x26]
	mov	x0, x20
	mov	w2, #16
	bl	_devm_kcalloc
	cbz	x0, LBB0_29
; %bb.10:
	mov	x21, x0
Lloh19:
	adrp	x22, _atmel_pinctrl_desc@GOTPAGE
Lloh20:
	ldr	x22, [x22, _atmel_pinctrl_desc@GOTPAGEOFF]
	str	x0, [x22, #16]
	ldr	w8, [x19, #4]
	str	w8, [x22]
Lloh21:
	adrp	x23, _atmel_custom_bindings@GOTPAGE
Lloh22:
	ldr	x23, [x23, _atmel_custom_bindings@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_ARRAY_SIZE
	ldr	w8, [x23]
	stp	w8, w0, [x22, #4]
	ldr	w1, [x19, #4]
	ldr	w3, [x26]
	mov	x0, x20
	mov	w2, #8
	bl	_devm_kcalloc
	cbz	x0, LBB0_29
; %bb.11:
	mov	x22, x0
	str	x0, [x19, #8]
	ldr	w1, [x19, #4]
	ldr	w3, [x26]
	mov	x0, x20
	mov	w2, #16
	bl	_devm_kcalloc
	str	x0, [x19, #80]
	cbz	x0, LBB0_29
; %bb.12:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.13:
	mov	x23, x0
	str	x22, [sp, #24]                  ; 8-byte Folded Spill
	mov	w0, #0
	bl	_ATMEL_PIO_BANK
	mov	x24, x0
	mov	w0, #0
	bl	_ATMEL_PIO_LINE
	mov	x27, x0
	ldr	w2, [x26]
	mov	x0, x20
	mov	w1, #12
	bl	_devm_kzalloc
	ldr	x8, [x19, #72]
	str	x0, [x8]
	ldr	x8, [x19, #72]
	ldr	x8, [x8]
	cbz	x8, LBB0_29
; %bb.14:
	mov	x22, #0
	mov	x25, #0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	stp	w25, w24, [x8]
	str	w27, [x8, #8]
	add	x28, x21, x22
	str	w25, [x28]
	ldr	w0, [x26]
	add	w2, w24, #65
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x3, x27
	bl	_kasprintf
	str	x0, [x28, #8]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	x0, [x8, x25, lsl #3]
	add	x8, x23, x22
	str	x0, [x8]
	ldr	w9, [x28]
	str	w9, [x8, #8]
	stp	x24, x27, [sp]
	mov	x0, x20
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x25
	bl	_dev_dbg
	add	x28, x25, #1
	ldrsw	x8, [x19, #4]
	cmp	x28, x8
	b.ge	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x23, [x19, #80]
	mov	x0, x28
	bl	_ATMEL_PIO_BANK
	mov	x24, x0
	mov	x0, x28
	bl	_ATMEL_PIO_LINE
	mov	x27, x0
	ldr	w2, [x26]
	mov	x0, x20
	mov	w1, #12
	bl	_devm_kzalloc
	ldr	x8, [x19, #72]
	lsl	x9, x25, #3
	add	x8, x8, x9
	str	x0, [x8, #8]
	ldr	x8, [x19, #72]
	add	x8, x8, x9
	ldr	x8, [x8, #8]
	add	x22, x22, #16
	mov	x25, x28
	cbnz	x8, LBB0_15
	b	LBB0_29
LBB0_17:
Lloh27:
	adrp	x9, _atmel_gpio_chip@GOTPAGE
Lloh28:
	ldr	x9, [x9, _atmel_gpio_chip@GOTPAGEOFF]
	str	x9, [x19, #32]
	ldr	w10, [x20]
	str	w10, [x9, #28]
	str	w8, [x9]
	mov	x0, x20
	bl	_dev_name
	ldr	x8, [x19, #32]
	str	w0, [x8, #24]
	ldr	x9, [x19, #8]
	stp	x9, x20, [x8, #8]
	ldr	w1, [x19]
	ldr	w3, [x26]
	mov	x0, x20
	mov	w2, #1
	bl	_devm_kcalloc
	str	x0, [x19, #64]
	cbz	x0, LBB0_29
; %bb.18:
	ldr	w1, [x19]
	ldr	w3, [x26]
	mov	x0, x20
	mov	w2, #1
	bl	_devm_kcalloc
	str	x0, [x19, #56]
	cbz	x0, LBB0_29
; %bb.19:
	ldr	w1, [x19]
	ldr	w3, [x26]
	mov	x0, x20
	mov	w2, #4
	bl	_devm_kcalloc
	str	x0, [x19, #48]
	cbz	x0, LBB0_29
; %bb.20:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.21:
	mov	x21, #0
Lloh29:
	adrp	x24, _IORESOURCE_IRQ@GOTPAGE
Lloh30:
	ldr	x24, [x24, _IORESOURCE_IRQ@GOTPAGEOFF]
Lloh31:
	adrp	x25, _atmel_gpio_irq_handler@GOTPAGE
Lloh32:
	ldr	x25, [x25, _atmel_gpio_irq_handler@GOTPAGEOFF]
Lloh33:
	adrp	x22, l_.str.5@PAGE
Lloh34:
	add	x22, x22, l_.str.5@PAGEOFF
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x20
	mov	x2, x21
	bl	_platform_get_resource
	cbz	x0, LBB0_34
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	x23, x0
	ldr	w8, [x0]
	ldr	x9, [x19, #48]
	str	w8, [x9, x21, lsl #2]
	ldr	w0, [x0]
	ldr	w1, [x25]
	bl	_irq_set_chained_handler
	ldr	w0, [x23]
	mov	x1, x19
	bl	_irq_set_handler_data
	str	x23, [sp]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_dev_dbg
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.lt	LBB0_22
LBB0_24:
	ldr	w0, [x20]
	ldr	x8, [x19, #32]
	ldr	w1, [x8]
Lloh35:
	adrp	x2, _irq_domain_simple_ops@GOTPAGE
Lloh36:
	ldr	x2, [x2, _irq_domain_simple_ops@GOTPAGEOFF]
	mov	x3, #0
	bl	_irq_domain_add_linear
	str	x0, [x19, #16]
	cbz	x0, LBB0_35
; %bb.25:
Lloh37:
	adrp	x8, l_.str.7@PAGE
Lloh38:
	add	x8, x8, l_.str.7@PAGEOFF
	str	x8, [x0]
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_32
; %bb.26:
	mov	w25, #1
Lloh39:
	adrp	x26, _handle_simple_irq@GOTPAGE
Lloh40:
	ldr	x26, [x26, _handle_simple_irq@GOTPAGEOFF]
Lloh41:
	adrp	x21, _atmel_gpio_irq_chip@GOTPAGE
Lloh42:
	ldr	x21, [x21, _atmel_gpio_irq_chip@GOTPAGEOFF]
Lloh43:
	adrp	x22, l_.str.8@PAGE
Lloh44:
	add	x22, x22, l_.str.8@PAGEOFF
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	sub	w23, w25, #1
	mov	x1, x23
	bl	_irq_create_mapping
	mov	x24, x0
	ldr	w2, [x26]
	mov	x1, x21
	bl	_irq_set_chip_and_handler
	mov	x0, x24
	mov	x1, x19
	bl	_irq_set_chip_data
	str	x24, [sp]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	bl	_dev_dbg
	ldr	w8, [x19, #4]
	cmp	w25, w8
	b.ge	LBB0_32
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	x0, [x19, #16]
	add	w25, w25, #1
	b	LBB0_27
LBB0_29:
Lloh45:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_30:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_31:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_32:
	ldr	w0, [x19, #24]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_36
; %bb.33:
	mov	x21, x0
Lloh47:
	adrp	x1, l_.str.9@PAGE
Lloh48:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_42
LBB0_34:
	add	x8, x21, #65
	str	x8, [sp]
Lloh49:
	adrp	x1, l_.str.4@PAGE
Lloh50:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_3
LBB0_35:
Lloh51:
	adrp	x1, l_.str.6@PAGE
Lloh52:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_5
LBB0_36:
Lloh53:
	adrp	x1, _atmel_pinctrl_desc@GOTPAGE
Lloh54:
	ldr	x1, [x1, _atmel_pinctrl_desc@GOTPAGEOFF]
	mov	x0, x20
	mov	x2, x19
	bl	_devm_pinctrl_register
	str	w0, [x19, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_38
; %bb.37:
	ldr	w0, [x19, #40]
	bl	_PTR_ERR
	mov	x21, x0
Lloh55:
	adrp	x1, l_.str.10@PAGE
Lloh56:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_40
LBB0_38:
	ldr	x0, [x19, #32]
	mov	x1, x19
	bl	_gpiochip_add_data
	cbz	w0, LBB0_43
; %bb.39:
	mov	x21, x0
Lloh57:
	adrp	x1, l_.str.11@PAGE
Lloh58:
	add	x1, x1, l_.str.11@PAGEOFF
LBB0_40:
	mov	x0, x20
	bl	_dev_err
LBB0_41:
	ldr	w0, [x19, #24]
	bl	_clk_disable_unprepare
LBB0_42:
	ldr	x0, [x19, #16]
	bl	_irq_domain_remove
	b	LBB0_31
LBB0_43:
	ldr	x21, [x19, #32]
	mov	x0, x20
	bl	_dev_name
	mov	x1, x0
	ldr	x8, [x19, #32]
	ldr	w4, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	w3, #0
	bl	_gpiochip_add_pin_range
	mov	x21, x0
	cbz	w0, LBB0_45
; %bb.44:
Lloh59:
	adrp	x1, l_.str.12@PAGE
Lloh60:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #32]
	bl	_gpiochip_remove
	b	LBB0_41
LBB0_45:
Lloh61:
	adrp	x1, l_.str.13@PAGE
Lloh62:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	b	LBB0_31
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_atmel_pctrl_of_match,4,2       ; @atmel_pctrl_of_match
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown compatible string\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ATMEL_PIO_NPINS_PER_BANK,4,2   ; @ATMEL_PIO_NPINS_PER_BANK
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"failed to get clock\n"

	.comm	_atmel_pinctrl_desc,24,3        ; @atmel_pinctrl_desc
	.comm	_atmel_custom_bindings,4,2      ; @atmel_custom_bindings
l_.str.2:                               ; @.str.2
	.asciz	"P%c%d"

l_.str.3:                               ; @.str.3
	.asciz	"pin_id=%u, bank=%u, line=%u"

	.comm	_atmel_gpio_chip,32,3           ; @atmel_gpio_chip
	.comm	_IORESOURCE_IRQ,4,2             ; @IORESOURCE_IRQ
l_.str.4:                               ; @.str.4
	.asciz	"missing irq resource for group %c\n"

	.comm	_atmel_gpio_irq_handler,4,2     ; @atmel_gpio_irq_handler
l_.str.5:                               ; @.str.5
	.asciz	"bank %i: irq=%pr\n"

	.comm	_irq_domain_simple_ops,4,2      ; @irq_domain_simple_ops
l_.str.6:                               ; @.str.6
	.asciz	"can't add the irq domain\n"

l_.str.7:                               ; @.str.7
	.asciz	"atmel gpio"

	.comm	_atmel_gpio_irq_chip,4,2        ; @atmel_gpio_irq_chip
	.comm	_handle_simple_irq,4,2          ; @handle_simple_irq
l_.str.8:                               ; @.str.8
	.asciz	"atmel gpio irq domain: hwirq: %d, linux irq: %d\n"

l_.str.9:                               ; @.str.9
	.asciz	"failed to prepare and enable clock\n"

l_.str.10:                              ; @.str.10
	.asciz	"pinctrl registration failed\n"

l_.str.11:                              ; @.str.11
	.asciz	"failed to add gpiochip\n"

l_.str.12:                              ; @.str.12
	.asciz	"failed to add gpio pin range\n"

l_.str.13:                              ; @.str.13
	.asciz	"atmel pinctrl initialized\n"

	.no_dead_strip	_atmel_pinctrl_probe
.subsections_via_symbols
