	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sprd_pinctrl_core_probe        ## -- Begin function sprd_pinctrl_core_probe
	.p2align	4, 0x90
_sprd_pinctrl_core_probe:               ## @sprd_pinctrl_core_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
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movl	%eax, 24(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	24(%r15), %edi
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_5:
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movq	%rax, 16(%r15)
	movq	%r14, 8(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_platform_set_drvdata
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_sprd_pinctrl_add_pins
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_8
LBB0_9:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_sprd_pinctrl_parse_dt
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_8:
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_21
LBB0_11:
	movq	%r12, %rbx
	movl	(%r12), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$16, %edx
	callq	_devm_kcalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.12:
	movl	(%rbx), %r8d
	testl	%r8d, %r8d
	movq	%rbx, %r9
	jle	LBB0_19
## %bb.13:
	movq	8(%r9), %rdx
	cmpl	$1, %r8d
	jne	LBB0_15
## %bb.14:
	xorl	%esi, %esi
	jmp	LBB0_17
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	%r8d, %edi
	andl	$-2, %edi
	movq	%rax, %rbx
	addq	$28, %rbx
	xorl	%esi, %esi
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%rdx,%rsi,8), %ecx
	movl	%ecx, -16(%rbx)
	movl	(%rdx,%rsi,8), %ecx
	movl	%ecx, -20(%rbx)
	movq	%r9, -28(%rbx)
	movl	12(%rdx,%rsi,8), %ecx
	movl	%ecx, (%rbx)
	movl	8(%rdx,%rsi,8), %ecx
	movl	%ecx, -4(%rbx)
	movq	%r9, -12(%rbx)
	addq	$2, %rsi
	addq	$32, %rbx
	cmpq	%rsi, %rdi
	jne	LBB0_16
LBB0_17:
	testb	$1, %r8b
	je	LBB0_19
## %bb.18:
	movl	4(%rdx,%rsi,8), %ecx
	movq	%rsi, %rdi
	shlq	$4, %rdi
	movl	%ecx, 12(%rax,%rdi)
	movl	(%rdx,%rsi,8), %ecx
	movl	%ecx, 8(%rax,%rdi)
	movq	%r9, (%rax,%rdi)
LBB0_19:
	movq	_sprd_pinctrl_desc@GOTPCREL(%rip), %rbx
	movq	%rax, 8(%rbx)
	movq	%r14, %rdi
	movq	%r9, %r12
	callq	_dev_name
	movl	%eax, 4(%rbx)
	movl	(%r12), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_pinctrl_register
	movl	%eax, (%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_20
## %bb.22:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	(%r15), %edi
	jmp	LBB0_4
LBB0_20:
	xorl	%ebx, %ebx
	jmp	LBB0_21
	.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	"fail to add pins information\n"

L_.str.1:                               ## @.str.1
	.asciz	"fail to parse dt properties\n"

	.comm	_sprd_pinctrl_desc,16,3         ## @sprd_pinctrl_desc
L_.str.2:                               ## @.str.2
	.asciz	"could not register pinctrl driver\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sprd_pinctrl_core_probe        ; -- Begin function sprd_pinctrl_core_probe
	.p2align	2
_sprd_pinctrl_core_probe:               ; @sprd_pinctrl_core_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	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_14
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	w0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x20, #24]
LBB0_3:
	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_4:
	ldr	w2, [x24]
	mov	x0, x19
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_14
; %bb.5:
	mov	x21, x0
	stp	x19, x0, [x20, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	bl	_sprd_pinctrl_add_pins
	cbz	w0, LBB0_7
; %bb.6:
	mov	x22, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_7:
	mov	x0, x20
	bl	_sprd_pinctrl_parse_dt
	cbz	w0, LBB0_10
; %bb.8:
	mov	x22, x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_15
LBB0_10:
	ldr	w1, [x21]
	ldr	w3, [x24]
	mov	x0, x19
	mov	w2, #16
	bl	_devm_kcalloc
	cbz	x0, LBB0_14
; %bb.11:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.12:
	ldr	x9, [x21, #8]
	cmp	w8, #1
	b.ne	LBB0_16
; %bb.13:
	mov	x10, #0
	b	LBB0_19
LBB0_14:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_15:
	mov	x0, x22
	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:
	and	x10, x8, #0xfffffffe
	add	x11, x0, #16
	add	x12, x9, #8
	mov	x13, x10
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldp	w15, w14, [x12]
	str	w14, [x11, #12]
	ldur	d0, [x12, #-8]
	stur	d0, [x11, #-8]
	str	w15, [x11, #8]
	stur	x21, [x11, #-16]
	str	x21, [x11], #32
	add	x12, x12, #16
	subs	x13, x13, #2
	b.ne	LBB0_17
; %bb.18:
	cmp	x10, x8
	b.eq	LBB0_21
LBB0_19:
	add	x9, x9, x10, lsl #3
	add	x11, x0, x10, lsl #4
	add	x11, x11, #8
	sub	x8, x8, x10
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x9], #8
	str	d0, [x11]
	stur	x21, [x11, #-8]
	add	x11, x11, #16
	subs	x8, x8, #1
	b.ne	LBB0_20
LBB0_21:
Lloh9:
	adrp	x22, _sprd_pinctrl_desc@GOTPAGE
Lloh10:
	ldr	x22, [x22, _sprd_pinctrl_desc@GOTPAGEOFF]
	str	x0, [x22, #8]
	mov	x0, x19
	bl	_dev_name
	ldr	w8, [x21]
	stp	w8, w0, [x22]
	mov	x0, x22
	mov	x1, x19
	mov	x2, x20
	bl	_pinctrl_register
	str	w0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_23
; %bb.22:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20]
	b	LBB0_3
LBB0_23:
	mov	w22, #0
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.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	"fail to add pins information\n"

l_.str.1:                               ; @.str.1
	.asciz	"fail to parse dt properties\n"

	.comm	_sprd_pinctrl_desc,16,3         ; @sprd_pinctrl_desc
l_.str.2:                               ; @.str.2
	.asciz	"could not register pinctrl driver\n"

.subsections_via_symbols
