	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtk_moore_pinctrl_probe        ## -- Begin function mtk_moore_pinctrl_probe
	.p2align	4, 0x90
_mtk_moore_pinctrl_probe:               ## @mtk_moore_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movq	%rbx, 8(%r15)
	movq	%r12, 24(%r15)
	movl	(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_4
## %bb.5:
	movq	%r15, %r14
	movl	(%r13), %ecx
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_devm_kmalloc_array
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movq	8(%r14), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_13
## %bb.7:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	16(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r12, %rdi
	callq	_platform_get_resource_byname
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	16(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_38
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	movq	8(%r14), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_8
## %bb.12:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_13:
	movl	%ecx, (%r14)
	movl	4(%rax), %esi
	movl	(%r13), %ecx
	movq	%r12, %rdi
	movl	$8, %edx
	callq	_devm_kmalloc_array
	testq	%rax, %rax
	je	LBB0_1
## %bb.14:
	movq	%r15, %r13
	movq	8(%r14), %rcx
	movl	4(%rcx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_25
## %bb.15:
	movq	8(%rcx), %rdx
	cmpl	$4, %r8d
	jae	LBB0_17
## %bb.16:
	xorl	%esi, %esi
	jmp	LBB0_24
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_37:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_38:
	movq	16(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_17:
	movl	%r8d, %esi
	andl	$-4, %esi
	leaq	-4(%rsi), %rbx
	movq	%rbx, %rdi
	shrq	$2, %rdi
	incq	%rdi
	movl	%edi, %ecx
	andl	$3, %ecx
	cmpq	$12, %rbx
	jae	LBB0_19
## %bb.18:
	xorl	%ebx, %ebx
	jmp	LBB0_21
LBB0_19:
	andq	$-4, %rdi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rdx,%rbx,8), %xmm0
	movups	16(%rdx,%rbx,8), %xmm1
	movups	%xmm0, (%rax,%rbx,8)
	movups	%xmm1, 16(%rax,%rbx,8)
	movups	32(%rdx,%rbx,8), %xmm0
	movups	48(%rdx,%rbx,8), %xmm1
	movups	%xmm0, 32(%rax,%rbx,8)
	movups	%xmm1, 48(%rax,%rbx,8)
	movups	64(%rdx,%rbx,8), %xmm0
	movups	80(%rdx,%rbx,8), %xmm1
	movups	%xmm0, 64(%rax,%rbx,8)
	movups	%xmm1, 80(%rax,%rbx,8)
	movups	96(%rdx,%rbx,8), %xmm0
	movups	112(%rdx,%rbx,8), %xmm1
	movups	%xmm0, 96(%rax,%rbx,8)
	movups	%xmm1, 112(%rax,%rbx,8)
	addq	$16, %rbx
	addq	$-4, %rdi
	jne	LBB0_20
LBB0_21:
	testq	%rcx, %rcx
	je	LBB0_23
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	leaq	(,%rbx,8), %rdi
	orq	$16, %rdi
	movups	(%rdx,%rbx,8), %xmm0
	movups	(%rdx,%rdi), %xmm1
	movups	%xmm0, (%rax,%rbx,8)
	movups	%xmm1, (%rax,%rdi)
	addq	$4, %rbx
	decq	%rcx
	jne	LBB0_22
LBB0_23:
	cmpq	%r8, %rsi
	je	LBB0_25
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%rdx,%rsi,8), %ecx
	movl	%ecx, 4(%rax,%rsi,8)
	movl	(%rdx,%rsi,8), %ecx
	movl	%ecx, (%rax,%rsi,8)
	incq	%rsi
	cmpq	%rsi, %r8
	jne	LBB0_24
LBB0_25:
	movq	_mtk_desc@GOTPCREL(%rip), %rbx
	movq	%rax, 16(%rbx)
	movl	%r8d, (%rbx)
	movq	_mtk_custom_bindings@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_ARRAY_SIZE
	movl	%eax, 12(%rbx)
	movl	(%r15), %eax
	movl	%eax, 8(%rbx)
	movq	%r13, %r15
	addq	$4, %r15
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_devm_pinctrl_register_and_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_37
## %bb.26:
	movq	%r14, %rdi
	callq	_mtk_build_groups
	testl	%eax, %eax
	je	LBB0_29
## %bb.27:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_28
LBB0_29:
	movq	%r14, %rdi
	callq	_mtk_build_functions
	testl	%eax, %eax
	je	LBB0_31
## %bb.30:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
LBB0_28:
	movq	%r12, %rdi
	callq	_dev_err
	jmp	LBB0_37
LBB0_31:
	movl	(%r15), %edi
	callq	_pinctrl_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_37
## %bb.32:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mtk_build_eint
	testl	%eax, %eax
	je	LBB0_34
## %bb.33:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_warn
LBB0_34:
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_mtk_build_gpiochip
	testl	%eax, %eax
	je	LBB0_36
## %bb.35:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_28
LBB0_36:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_37
	.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	"SoC should be assigned at least one register base\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.1:                               ## @.str.1
	.asciz	"missing IO resource\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_mtk_desc,24,3                  ## @mtk_desc
	.comm	_mtk_custom_bindings,4,2        ## @mtk_custom_bindings
L_.str.2:                               ## @.str.2
	.asciz	"Failed to build groups\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to build functions\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to add EINT, but pinctrl still can work\n"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to add gpio_chip\n"

	.comm	_mtk_conf_items,4,2             ## @mtk_conf_items
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtk_moore_pinctrl_probe        ; -- Begin function mtk_moore_pinctrl_probe
	.p2align	2
_mtk_moore_pinctrl_probe:               ; @mtk_moore_pinctrl_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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_12
; %bb.1:
	mov	x20, x0
	str	x21, [x0, #8]
	str	x19, [x0, #24]
	ldr	w1, [x21]
	cbz	w1, LBB0_13
; %bb.2:
	ldr	w3, [x22]
	mov	x0, x19
	mov	w2, #4
	bl	_devm_kmalloc_array
	str	x0, [x20, #16]
	cbz	x0, LBB0_12
; %bb.3:
	ldr	x8, [x20, #8]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x21, #0
Lloh2:
	adrp	x23, _IORESOURCE_MEM@GOTPAGE
Lloh3:
	ldr	x23, [x23, _IORESOURCE_MEM@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	ldr	x8, [x8, #16]
	ldr	w2, [x8, x21, lsl #2]
	mov	x0, x19
	bl	_platform_get_resource_byname
	cbz	x0, LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	ldr	x8, [x20, #16]
	str	w0, [x8, x21, lsl #2]
	bl	_IS_ERR
	cbnz	x0, LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldr	x8, [x20, #8]
	ldrsw	x9, [x8]
	cmp	x21, x9
	b.lt	LBB0_5
LBB0_8:
	str	w9, [x20]
	ldr	w1, [x8, #4]
	ldr	w3, [x22]
	mov	x0, x19
	mov	w2, #8
	bl	_devm_kmalloc_array
	cbz	x0, LBB0_12
; %bb.9:
	ldr	x9, [x20, #8]
	ldr	w8, [x9, #4]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.10:
	ldr	x9, [x9, #8]
	cmp	w8, #8
	b.hs	LBB0_18
; %bb.11:
	mov	x10, #0
	b	LBB0_21
LBB0_12:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_15:
	mov	x0, x21
	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_16:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh12:
	adrp	x8, _ENXIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_14
LBB0_17:
	ldr	x8, [x20, #16]
	ldr	w0, [x8, x21, lsl #2]
	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_18:
	and	x10, x8, #0xfffffff8
	add	x11, x9, #32
	add	x12, x0, #32
	mov	x13, x10
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldp	q1, q0, [x11, #-32]
	ldp	q3, q2, [x11], #64
	stp	q1, q0, [x12, #-32]
	stp	q3, q2, [x12], #64
	subs	x13, x13, #8
	b.ne	LBB0_19
; %bb.20:
	cmp	x10, x8
	b.eq	LBB0_23
LBB0_21:
	lsl	x11, x10, #3
	add	x9, x9, x11
	add	x11, x0, x11
	sub	x10, x8, x10
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x9], #8
	str	d0, [x11], #8
	subs	x10, x10, #1
	b.ne	LBB0_22
LBB0_23:
Lloh14:
	adrp	x21, _mtk_desc@GOTPAGE
Lloh15:
	ldr	x21, [x21, _mtk_desc@GOTPAGEOFF]
	str	x0, [x21, #16]
	str	w8, [x21]
Lloh16:
	adrp	x22, _mtk_custom_bindings@GOTPAGE
Lloh17:
	ldr	x22, [x22, _mtk_custom_bindings@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_ARRAY_SIZE
	ldr	w8, [x22]
	stp	w8, w0, [x21, #8]
	add	x22, x20, #4
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	bl	_devm_pinctrl_register_and_init
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.24:
	mov	x0, x20
	bl	_mtk_build_groups
	cbz	w0, LBB0_26
; %bb.25:
	mov	x21, x0
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_28
LBB0_26:
	mov	x0, x20
	bl	_mtk_build_functions
	cbz	w0, LBB0_29
; %bb.27:
	mov	x21, x0
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_28:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_15
LBB0_29:
	ldr	w0, [x22]
	bl	_pinctrl_enable
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.30:
	mov	x0, x20
	mov	x1, x19
	bl	_mtk_build_eint
	cbz	w0, LBB0_32
; %bb.31:
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_32:
	ldr	w1, [x19]
	mov	x0, x20
	bl	_mtk_build_gpiochip
	mov	x21, x0
	cbz	w0, LBB0_34
; %bb.33:
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_28
LBB0_34:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.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	"SoC should be assigned at least one register base\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.1:                               ; @.str.1
	.asciz	"missing IO resource\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_mtk_desc,24,3                  ; @mtk_desc
	.comm	_mtk_custom_bindings,4,2        ; @mtk_custom_bindings
l_.str.2:                               ; @.str.2
	.asciz	"Failed to build groups\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to build functions\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to add EINT, but pinctrl still can work\n"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to add gpio_chip\n"

	.comm	_mtk_conf_items,4,2             ; @mtk_conf_items
.subsections_via_symbols
