	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvebu_pinctrl_build_functions
_mvebu_pinctrl_build_functions:         ## @mvebu_pinctrl_build_functions
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	32(%rsi), %esi
	movl	%esi, -52(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	$16, %edx
	callq	_devm_kcalloc
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_29
## %bb.1:
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_2
## %bb.3:
	xorl	%edi, %edi
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r14), %eax
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdi
	movslq	%eax, %rcx
	cmpq	%rcx, %rdi
	jge	LBB0_14
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	16(%r14), %rdx
	leaq	(%rdi,%rdi,2), %rsi
	movl	(%rdx,%rsi,8), %ecx
	testl	%ecx, %ecx
	jle	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rdx,%rsi,8), %rbx
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=2
	notl	%r13d
	shrl	$31, %r13d
	addl	%r13d, %r12d
	movl	(%rbx), %ecx
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=2
	incq	%r15
	movslq	%ecx, %rax
	cmpq	%rax, %r15
	jge	LBB0_12
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	4(%r14), %edx
	movq	16(%rbx), %rax
	testl	%edx, %edx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	testl	%edx, (%rax,%r15,8)
	je	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	movl	4(%rax,%r15,8), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	-52(%rbp), %rsi
	callq	__add_function
	movl	%eax, %r13d
	movq	_EOVERFLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	32(%r14), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_10
LBB0_14:
	movl	%r12d, 8(%r14)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 24(%r14)
	testl	%eax, %eax
	jle	LBB0_27
## %bb.15:
	xorl	%r13d, %r13d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_16 Depth=1
	movl	(%r14), %eax
LBB0_26:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	cmpq	%rcx, %r13
	jge	LBB0_27
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
                                        ##       Child Loop BB0_22 Depth 3
	movq	16(%r14), %rdx
	leaq	(,%r13,2), %rsi
	addq	%r13, %rsi
	movl	(%rdx,%rsi,8), %ecx
	testl	%ecx, %ecx
	jle	LBB0_26
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	leaq	(%rdx,%rsi,8), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_18 Depth=2
	incq	%rbx
	movslq	%ecx, %rax
	cmpq	%rax, %rbx
	jge	LBB0_25
LBB0_18:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_22 Depth 3
	movl	4(%r14), %edx
	movq	16(%r12), %rax
	testl	%edx, %edx
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=2
	testl	%edx, (%rax,%rbx,8)
	je	LBB0_24
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=2
	movl	4(%rax,%rbx,8), %esi
	movq	%r14, %rdi
	callq	_mvebu_pinctrl_find_function_by_name
	movq	%rax, %r15
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=2
	movl	8(%r15), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$8, %edx
	callq	_devm_kcalloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_29
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_16 Depth=1
                                        ##     Parent Loop BB0_18 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpq	$0, (%rax)
	leaq	8(%rax), %rax
	jne	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_18 Depth=2
	movq	8(%r12), %rcx
	movq	%rcx, -8(%rax)
	movl	(%r12), %ecx
	jmp	LBB0_24
LBB0_29:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_28
LBB0_2:
	movl	$0, 8(%r14)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%r14)
LBB0_27:
	xorl	%eax, %eax
LBB0_28:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EOVERFLOW,4,2                  ## @EOVERFLOW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"More functions than pins(%d)\n"

	.no_dead_strip	_mvebu_pinctrl_build_functions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvebu_pinctrl_build_functions
_mvebu_pinctrl_build_functions:         ; @mvebu_pinctrl_build_functions
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x1
	ldr	w1, [x1, #32]
	str	w1, [sp, #12]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	str	x0, [sp]                        ; 8-byte Folded Spill
	mov	w2, #16
	bl	_devm_kcalloc
	cbz	x0, LBB0_26
; %bb.1:
	mov	x21, x0
	ldr	w8, [x19]
	cmp	w8, #0
	b.le	LBB0_27
; %bb.2:
	mov	x26, #0
	mov	w25, #0
	mov	w11, #24
Lloh3:
	adrp	x28, _EOVERFLOW@GOTPAGE
Lloh4:
	ldr	x28, [x28, _EOVERFLOW@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19]
	mov	w11, #24
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x26, #1
	cmp	x26, w8, sxtw
	b.ge	LBB0_13
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x10, [x19, #16]
	madd	x24, x26, x11, x10
	ldr	w9, [x24]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x27, #0
	mov	x22, #0
	madd	x8, x26, x11, x10
	add	x20, x8, #16
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	mvn	w8, w23
	add	w25, w25, w8, lsr #31
	ldr	w9, [x24]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	x22, x22, #1
	add	x27, x27, #8
	cmp	x22, w9, sxtw
	b.ge	LBB0_3
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x19, #4]
	ldr	x8, [x20]
	cbz	w10, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w11, [x8, x27]
	tst	w11, w10
	b.eq	LBB0_8
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=2
	add	x8, x8, x27
	ldr	w2, [x8, #4]
	add	x1, sp, #12
	mov	x0, x21
	bl	__add_function
	mov	x23, x0
	ldr	w8, [x28]
	cmn	w0, w8
	b.ne	LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w2, [x19, #32]
	ldr	x0, [sp]                        ; 8-byte Folded Reload
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_7
LBB0_13:
	str	w25, [x19, #8]
	str	x21, [x19, #24]
	cmp	w8, #1
	b.lt	LBB0_28
; %bb.14:
	mov	x22, #0
	mov	w23, #24
Lloh7:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	w8, [x19]
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_28
LBB0_17:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_20 Depth 2
                                        ;       Child Loop BB0_24 Depth 3
	ldr	x10, [x19, #16]
	madd	x25, x22, x23, x10
	ldr	w9, [x25]
	cmp	w9, #1
	b.lt	LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x26, #0
	madd	x8, x22, x23, x10
	add	x27, x8, #16
	add	x24, x8, #8
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=2
	add	x26, x26, #1
	cmp	x26, w9, sxtw
	b.ge	LBB0_15
LBB0_20:                                ;   Parent Loop BB0_17 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_24 Depth 3
	ldr	w10, [x19, #4]
	ldr	x8, [x27]
	cbz	w10, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=2
	lsl	x11, x26, #3
	ldr	w11, [x8, x11]
	tst	w11, w10
	b.eq	LBB0_19
LBB0_22:                                ;   in Loop: Header=BB0_20 Depth=2
	add	x8, x8, x26, lsl #3
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_mvebu_pinctrl_find_function_by_name
	mov	x21, x0
	ldr	x0, [x0]
	cbnz	x0, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=2
	ldr	w1, [x21, #8]
	ldr	w3, [x20]
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	w2, #8
	bl	_devm_kcalloc
	str	x0, [x21]
	cbz	x0, LBB0_26
LBB0_24:                                ;   Parent Loop BB0_17 Depth=1
                                        ;     Parent Loop BB0_20 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x0], #8
	cbnz	x8, LBB0_24
; %bb.25:                               ;   in Loop: Header=BB0_20 Depth=2
	ldr	x8, [x24]
	stur	x8, [x0, #-8]
	ldr	w9, [x25]
	b	LBB0_19
LBB0_26:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_29
LBB0_27:
	mov	w0, #0
	str	wzr, [x19, #8]
	str	x21, [x19, #24]
	b	LBB0_29
LBB0_28:
	mov	w0, #0
LBB0_29:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EOVERFLOW,4,2                  ; @EOVERFLOW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"More functions than pins(%d)\n"

	.no_dead_strip	_mvebu_pinctrl_build_functions
.subsections_via_symbols
