	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv_pinctrl_configure_pins
_mv_pinctrl_configure_pins:             ## @mv_pinctrl_configure_pins
	.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
	movl	%esi, %ebx
	callq	_device_get_softc
	movq	%rax, %r15
	movl	%ebx, %edi
	callq	_OF_node_from_xref
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	leaq	-64(%rbp), %rdx
	movl	%ebx, %edi
	callq	_OF_getprop_alloc
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	leaq	-56(%rbp), %rdx
	movl	%ebx, %edi
	callq	_ofw_bus_string_list_to_array
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.3:
	testl	%eax, %eax
	jle	LBB0_17
## %bb.4:
	movl	%eax, %r13d
	xorl	%r12d, %r12d
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r12
	cmpq	%r13, %r12
	je	LBB0_17
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##     Child Loop BB0_20 Depth 2
	movq	(%r15), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$8, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-56(%rbp), %rcx
	movq	(%rcx,%r12,8), %rdi
	movq	8(%rax), %rax
	movq	(%rax,%rbx), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	incq	%r14
	movq	(%r15), %rax
	movslq	(%rax), %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r14
	jl	LBB0_8
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r14d, %r14d
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%ecx, %r14d
	je	LBB0_16
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %r14d
	je	LBB0_16
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_MAX_PIN_FUNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_13
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rbx
	movl	%r14d, %r15d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rax), %rax
	movq	%r15, %rdx
	shlq	$4, %rdx
	movq	(%rax,%rdx), %rax
	movq	(%rax,%r13,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=2
	movq	-64(%rbp), %rdi
	callq	_strcmp
	movq	_MAX_PIN_FUNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	je	LBB0_22
LBB0_24:                                ##   in Loop: Header=BB0_20 Depth=2
	leaq	1(%r13), %rdx
	movslq	%ecx, %rax
	cmpq	%rax, %rdx
	jge	LBB0_23
## %bb.25:                              ##   in Loop: Header=BB0_20 Depth=2
	movq	(%rbx), %rax
	incq	%r13
	jmp	LBB0_20
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edx, %edx
	cmpl	%ecx, %edx
	je	LBB0_16
	jmp	LBB0_15
LBB0_22:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdx
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %r15
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	cmpl	%ecx, %edx
	je	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_mv_pinctrl_configure_pin
	jmp	LBB0_16
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_18
LBB0_17:
	movq	-56(%rbp), %rdi
	callq	_OF_prop_free
	xorl	%eax, %eax
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"marvell,function"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"marvell,pins"

	.comm	_MAX_PIN_FUNC,4,2               ## @MAX_PIN_FUNC
	.no_dead_strip	_mv_pinctrl_configure_pins
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv_pinctrl_configure_pins
_mv_pinctrl_configure_pins:             ; @mv_pinctrl_configure_pins
	.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	x20, x1
	bl	_device_get_softc
	mov	x19, x0
	mov	x0, x20
	bl	_OF_node_from_xref
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x0, x20
	bl	_OF_getprop_alloc
	cmn	w0, #1
	b.eq	LBB0_21
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, sp
	mov	x0, x20
	bl	_ofw_bus_string_list_to_array
	cmn	w0, #1
	b.eq	LBB0_21
; %bb.2:
	cmp	w0, #1
	b.lt	LBB0_22
; %bb.3:
	mov	x22, #0
	mov	w23, w0
Lloh4:
	adrp	x24, _MAX_PIN_FUNC@GOTPAGE
Lloh5:
	ldr	x24, [x24, _MAX_PIN_FUNC@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	cmp	x22, x23
	b.eq	LBB0_22
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
	ldr	x8, [x19]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x20, #0
	mov	w21, #8
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [sp]
	ldr	x0, [x9, x22, lsl #3]
	ldr	x8, [x8, #8]
	ldr	x1, [x8, x21]
	bl	_strcmp
	cbz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x20, x20, #1
	ldr	x8, [x19]
	ldrsw	x9, [x8]
	add	x21, x21, #16
	cmp	x20, x9
	b.lt	LBB0_7
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w20, #0
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w20, w9
	b.eq	LBB0_4
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19]
	ldr	w9, [x8]
	cmp	w20, w9
	b.eq	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x24]
	cmp	w9, #1
	b.lt	LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x21, #0
	mov	w25, w20
LBB0_14:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x8, #8]
	lsl	x10, x25, #4
	ldr	x8, [x8, x10]
	ldr	x1, [x8, x21, lsl #3]
	cbz	x1, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	ldr	x0, [sp, #8]
	bl	_strcmp
	ldr	w9, [x24]
	cbz	x0, LBB0_19
LBB0_16:                                ;   in Loop: Header=BB0_14 Depth=2
	add	x21, x21, #1
	cmp	x21, w9, sxtw
	b.ge	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=2
	ldr	x8, [x19]
	b	LBB0_14
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w21, #0
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w21, w9
	b.eq	LBB0_4
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_mv_pinctrl_configure_pin
	b	LBB0_4
LBB0_21:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_23
LBB0_22:
	ldr	x0, [sp]
	bl	_OF_prop_free
	mov	w0, #0
LBB0_23:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"marvell,function"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"marvell,pins"

	.comm	_MAX_PIN_FUNC,4,2               ; @MAX_PIN_FUNC
	.no_dead_strip	_mv_pinctrl_configure_pins
.subsections_via_symbols
