	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_pinctrl_parse_groups
_rockchip_pinctrl_parse_groups:         ## @rockchip_pinctrl_parse_groups
	.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	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ecx, %edx
	movq	%rbx, %rcx
	callq	_dev_dbg
	movl	(%rbx), %eax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, 24(%r14)
	leaq	L_.str.1(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_get_property
	movq	%rax, %r12
	movl	-44(%rbp), %ecx
	movl	%ecx, %eax
	sarl	$2, %eax
	movl	%eax, -44(%rbp)
	cmpl	$4, %ecx
	jb	LBB0_2
## %bb.1:
	andl	$12, %ecx
	jne	LBB0_2
## %bb.3:
	leal	3(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$2, %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%esi, (%rbx)
	movl	(%r13), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movl	$4, %edx
	callq	_devm_kcalloc
	movq	%rax, 16(%rbx)
	movl	(%r13), %edi
	movl	(%rbx), %esi
	movl	(%r14), %ecx
	movl	$4, %edx
	callq	_devm_kcalloc
	movq	%rax, 8(%rbx)
	cmpq	$0, 16(%rbx)
	je	LBB0_9
## %bb.4:
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	cmpl	$0, -44(%rbp)
	jle	LBB0_13
## %bb.6:
	movl	$4, %r15d
	xorl	%r14d, %r14d
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%r14,4), %edi
	callq	_be32_to_cpu
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_bank_num_to_bank
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rax
	movq	%r13, %r12
	leaq	(%rax,%r14,4), %r13
	movq	(%rbx), %rbx
	movl	4(%r13), %edi
	callq	_be32_to_cpu
	addq	%rbx, %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx,%r14,2)
	movl	8(%r13), %edi
	callq	_be32_to_cpu
	movq	8(%rbx), %rcx
	movq	%rax, 8(%rcx,%r14,4)
	addq	$12, %r13
	movq	%r13, %rdi
	callq	_be32_to_cpup
	movl	%eax, %edi
	callq	_of_find_node_by_phandle
	movq	8(%rbx), %rdx
	leaq	(%rdx,%r15), %rcx
	addq	$-4, %rcx
	addq	%r15, %rdx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_pinconf_generic_parse_dt_config
	testl	%eax, %eax
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	addq	$4, %r14
	addq	$16, %r15
	cmpl	-44(%rbp), %r14d
	movq	%r12, %r13
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jl	LBB0_7
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_2:
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_10:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"group(%d): %pOFn\n"

L_.str.1:                               ## @.str.1
	.asciz	"rockchip,pins"

L_.str.2:                               ## @.str.2
	.asciz	"wrong pins number or pins and configs should be by 4\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_rockchip_pinctrl_parse_groups
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rockchip_pinctrl_parse_groups
_rockchip_pinctrl_parse_groups:         ; @rockchip_pinctrl_parse_groups
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x2]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x3
	mov	x3, x21
	bl	_dev_dbg
	ldr	w8, [x21]
	str	w8, [x20, #24]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	mov	x0, x21
	bl	_of_get_property
	ldr	w9, [sp, #12]
	asr	w8, w9, #2
	str	w8, [sp, #12]
	and	w10, w9, #0xc
	cmp	w9, #4
	ccmp	w10, #0, #0, hs
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
	mov	x21, x0
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w1, w8, #2
	str	w1, [x20]
	ldr	w0, [x19]
Lloh8:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	w2, #4
	bl	_devm_kcalloc
	str	x0, [x20, #16]
	ldr	w0, [x19]
	ldr	w1, [x20]
	ldr	w3, [x22]
	mov	w2, #4
	bl	_devm_kcalloc
	str	x0, [x20, #8]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_10
; %bb.3:
	cbz	x0, LBB0_10
; %bb.4:
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.5:
	mov	x23, #0
	mov	x24, #0
	mov	w25, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x26, x21, x23
	ldr	w0, [x26]
	bl	_be32_to_cpu
	mov	x1, x0
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_bank_num_to_bank
	mov	x22, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x22, [x22]
	ldr	w0, [x26, #4]
	bl	_be32_to_cpu
	add	x8, x0, x22
	ldr	x9, [x20, #16]
	str	x8, [x9, x24]
	ldr	w0, [x26, #8]
	bl	_be32_to_cpu
	ldr	x8, [x20, #8]
	add	x8, x8, x23
	str	x0, [x8, #8]
	add	x0, x26, #12
	bl	_be32_to_cpup
	bl	_of_find_node_by_phandle
	ldr	x8, [x20, #8]
	add	x3, x8, x23
	add	x2, x3, #4
	mov	x1, #0
	bl	_pinconf_generic_parse_dt_config
	cbnz	w0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w25, w25, #4
	ldr	w8, [sp, #12]
	add	x24, x24, #8
	add	x23, x23, #16
	cmp	w25, w8
	b.lt	LBB0_6
LBB0_9:
	mov	w0, #0
	b	LBB0_12
LBB0_10:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
	mov	x0, x22
	bl	_PTR_ERR
	b	LBB0_12
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"group(%d): %pOFn\n"

l_.str.1:                               ; @.str.1
	.asciz	"rockchip,pins"

l_.str.2:                               ; @.str.2
	.asciz	"wrong pins number or pins and configs should be by 4\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_rockchip_pinctrl_parse_groups
.subsections_via_symbols
