	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function berlin_pinctrl_build_state
LCPI0_0:
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_berlin_pinctrl_build_state:            ## @berlin_pinctrl_build_state
	.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	%rdi, %r12
	callq	_platform_get_drvdata
	movq	%rax, %r15
	movl	$0, (%rax)
	movq	16(%rax), %rcx
	movl	(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	8(%rcx), %rcx
	cmpl	$9, %eax
	jae	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	xorl	%edi, %edi
	jmp	LBB0_7
LBB0_1:
	xorl	%edi, %edi
	jmp	LBB0_9
LBB0_4:
	movl	%eax, %edx
	andl	$7, %edx
	testq	%rdx, %rdx
	movl	$8, %esi
	cmovneq	%rdx, %rsi
	movq	%rax, %rdx
	subq	%rsi, %rdx
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm2, %xmm2
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = [1065353216,1065353216,1065353216,1065353216]
	movq	%rdx, %rsi
	movq	%rcx, %rdi
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movd	(%rdi), %xmm4                   ## xmm4 = mem[0],zero,zero,zero
	pinsrd	$1, 24(%rdi), %xmm4
	pinsrd	$2, 48(%rdi), %xmm4
	pinsrd	$3, 72(%rdi), %xmm4
	movd	96(%rdi), %xmm5                 ## xmm5 = mem[0],zero,zero,zero
	pinsrd	$1, 120(%rdi), %xmm5
	pinsrd	$2, 144(%rdi), %xmm5
	pinsrd	$3, 168(%rdi), %xmm5
	psubd	%xmm2, %xmm4
	psubd	%xmm2, %xmm5
	pslld	$23, %xmm4
	paddd	%xmm3, %xmm4
	cvttps2dq	%xmm4, %xmm4
	paddd	%xmm4, %xmm0
	pslld	$23, %xmm5
	paddd	%xmm3, %xmm5
	cvttps2dq	%xmm5, %xmm4
	paddd	%xmm4, %xmm1
	addq	$192, %rdi
	addq	$-8, %rsi
	jne	LBB0_5
## %bb.6:
	paddd	%xmm0, %xmm1
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %edi
LBB0_7:
	leaq	(%rdx,%rdx,2), %rsi
	leaq	(%rcx,%rsi,8), %rsi
	subq	%rdx, %rax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rsi), %ecx
	incb	%cl
	movl	$1, %edx
	shll	%cl, %edx
	addl	%edx, %edi
	addq	$24, %rsi
	decq	%rax
	jne	LBB0_8
LBB0_9:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	$24, %esi
	callq	_kcalloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_20
## %bb.10:
	movq	16(%r15), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_18
## %bb.11:
	xorl	%r14d, %r14d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r14
	movslq	(%rcx), %rax
	cmpq	%rax, %r14
	jge	LBB0_17
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movq	8(%rcx), %rax
	leaq	(%r14,%r14,2), %rdx
	movq	16(%rax,%rdx,8), %rbx
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	addq	$8, %rbx
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	callq	_berlin_pinctrl_add_function
	movq	(%rbx), %rsi
	addq	$8, %rbx
	testq	%rsi, %rsi
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	16(%r15), %rcx
	jmp	LBB0_16
LBB0_17:
	movq	8(%r15), %rax
LBB0_18:
	movl	(%r15), %ecx
	shll	$3, %ecx
	leal	(%rcx,%rcx,2), %esi
	movl	(%r13), %edx
	movq	%rax, %rdi
	callq	_krealloc
	movq	%rax, 8(%r15)
	movq	16(%r15), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_19
## %bb.22:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
LBB0_23:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_25 Depth 2
                                        ##       Child Loop BB0_26 Depth 3
                                        ##       Child Loop BB0_34 Depth 3
	movq	8(%rcx), %rax
	leaq	(,%r13,2), %rdx
	addq	%r13, %rdx
	movq	16(%rax,%rdx,8), %r12
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_37
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	leaq	(%rax,%rdx,8), %r14
	addq	$8, %r14
LBB0_25:                                ##   Parent Loop BB0_23 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_26 Depth 3
                                        ##       Child Loop BB0_34 Depth 3
	movq	8(%r15), %rbx
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_33
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_23 Depth=1
                                        ##     Parent Loop BB0_25 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=3
	movq	40(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_32
## %bb.28:                              ##   in Loop: Header=BB0_26 Depth=3
	addq	$24, %rbx
	movq	(%r12), %rdi
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_25 Depth=2
	movq	(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_34
## %bb.30:                              ##   in Loop: Header=BB0_25 Depth=2
	movl	8(%rbx), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$8, %edx
	callq	_devm_kcalloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_31
	.p2align	4, 0x90
LBB0_34:                                ##   Parent Loop BB0_23 Depth=1
                                        ##     Parent Loop BB0_25 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpq	$0, (%rax)
	leaq	8(%rax), %rax
	jne	LBB0_34
## %bb.35:                              ##   in Loop: Header=BB0_25 Depth=2
	movq	(%r14), %rcx
	movq	%rcx, -8(%rax)
	movq	8(%r12), %rdi
	addq	$8, %r12
	testq	%rdi, %rdi
	jne	LBB0_25
## %bb.36:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	16(%r15), %rcx
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_23 Depth=1
	incq	%r13
	movslq	(%rcx), %rdx
	xorl	%eax, %eax
	cmpq	%rdx, %r13
	jl	LBB0_23
	jmp	LBB0_38
LBB0_32:
	movq	8(%r15), %rbx
LBB0_33:
	movq	%rbx, %rdi
	callq	_kfree
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_21
LBB0_19:
	xorl	%eax, %eax
	jmp	LBB0_38
LBB0_31:
	movq	8(%r15), %rdi
	callq	_kfree
LBB0_20:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_21:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_38:
	addq	$8, %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	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_berlin_pinctrl_build_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function berlin_pinctrl_build_state
_berlin_pinctrl_build_state:            ; @berlin_pinctrl_build_state
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	bl	_platform_get_drvdata
	mov	x20, x0
	str	wzr, [x0]
	ldr	x9, [x0, #16]
	ldr	w8, [x9]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x9, [x9, #8]
	cmp	w8, #17
	b.hs	LBB0_4
; %bb.2:
	mov	x10, #0
	mov	w0, #0
	b	LBB0_7
LBB0_3:
	mov	w0, #0
	b	LBB0_9
LBB0_4:
	ands	x10, x8, #0xf
	mov	w11, #16
	csel	x10, x11, x10, eq
	sub	x10, x8, x10
	add	x11, x9, #192
	movi.2d	v0, #0000000000000000
	movi.4s	v1, #1
	mov	x12, x10
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q6, q5, [x11, #-144]
	ldur	q7, [x11, #-192]
	ldp	q17, q16, [x11, #-48]
	ldur	q18, [x11, #-96]
	ldp	q20, q19, [x11, #48]
	ldr	q21, [x11]
	ldp	q23, q22, [x11, #144]
	sub	x13, x11, #168
	ld1.s	{ v7 }[1], [x13]
	uzp1.4s	v6, v6, v6
	trn1.4s	v5, v6, v5
	mov.d	v7[1], v5[1]
	ldr	q5, [x11, #96]
	sub	x13, x11, #72
	ld1.s	{ v18 }[1], [x13]
	uzp1.4s	v6, v17, v17
	trn1.4s	v6, v6, v16
	mov.d	v18[1], v6[1]
	add	x13, x11, #24
	ld1.s	{ v21 }[1], [x13]
	uzp1.4s	v6, v20, v20
	trn1.4s	v6, v6, v19
	mov.d	v21[1], v6[1]
	add	x13, x11, #120
	ld1.s	{ v5 }[1], [x13]
	uzp1.4s	v6, v23, v23
	trn1.4s	v6, v6, v22
	mov.d	v5[1], v6[1]
	add.4s	v6, v7, v1
	add.4s	v7, v18, v1
	add.4s	v16, v21, v1
	add.4s	v5, v5, v1
	ushl.4s	v6, v1, v6
	ushl.4s	v7, v1, v7
	ushl.4s	v16, v1, v16
	ushl.4s	v5, v1, v5
	add.4s	v0, v6, v0
	add.4s	v2, v7, v2
	add.4s	v3, v16, v3
	add.4s	v4, v5, v4
	add	x11, x11, #384
	subs	x12, x12, #16
	b.ne	LBB0_5
; %bb.6:
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	add.4s	v0, v4, v0
	addv.4s	s0, v0
	fmov	w0, s0
LBB0_7:
	mov	w11, #24
	madd	x9, x10, x11, x9
	sub	x8, x8, x10
	mov	w10, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9], #24
	add	w11, w11, #1
	lsl	w11, w10, w11
	add	w0, w11, w0
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w1, #24
	bl	_kcalloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_36
; %bb.10:
	ldr	x8, [x20, #16]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_18
; %bb.11:
	mov	x21, #0
	mov	w23, #24
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x21, x21, #1
	ldrsw	x9, [x8]
	cmp	x21, x9
	b.ge	LBB0_17
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	ldr	x9, [x8, #8]
	madd	x9, x21, x23, x9
	ldr	x9, [x9, #16]
	ldr	x1, [x9]
	cbz	x1, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x24, x9, #8
LBB0_15:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_berlin_pinctrl_add_function
	ldr	x1, [x24], #8
	cbnz	x1, LBB0_15
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x20, #16]
	b	LBB0_12
LBB0_17:
	ldr	x0, [x20, #8]
LBB0_18:
	ldr	w8, [x20]
	add	w8, w8, w8, lsl #1
	lsl	w1, w8, #3
	ldr	w2, [x22]
	bl	_krealloc
	str	x0, [x20, #8]
	ldr	x8, [x20, #16]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_34
; %bb.19:
	mov	x23, #0
	mov	w24, #24
LBB0_20:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_22 Depth 2
                                        ;       Child Loop BB0_24 Depth 3
                                        ;       Child Loop BB0_28 Depth 3
	ldr	x9, [x8, #8]
	madd	x10, x23, x24, x9
	ldr	x25, [x10, #16]
	ldr	x0, [x25]
	cbz	x0, LBB0_31
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	madd	x8, x23, x24, x9
	add	x26, x8, #8
LBB0_22:                                ;   Parent Loop BB0_20 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_24 Depth 3
                                        ;       Child Loop BB0_28 Depth 3
	ldr	x21, [x20, #8]
	ldr	x1, [x21, #16]
	cbz	x1, LBB0_33
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=2
	bl	_strcmp
	cbz	w0, LBB0_26
LBB0_24:                                ;   Parent Loop BB0_20 Depth=1
                                        ;     Parent Loop BB0_22 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x1, [x21, #40]
	cbz	x1, LBB0_32
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=3
	add	x21, x21, #24
	ldr	x0, [x25]
	bl	_strcmp
	cbnz	w0, LBB0_24
LBB0_26:                                ;   in Loop: Header=BB0_22 Depth=2
	ldr	x0, [x21]
	cbnz	x0, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_22 Depth=2
	ldr	w1, [x21, #8]
	ldr	w3, [x22]
	mov	x0, x19
	mov	w2, #8
	bl	_devm_kcalloc
	str	x0, [x21]
	cbz	x0, LBB0_35
LBB0_28:                                ;   Parent Loop BB0_20 Depth=1
                                        ;     Parent Loop BB0_22 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x0], #8
	cbnz	x8, LBB0_28
; %bb.29:                               ;   in Loop: Header=BB0_22 Depth=2
	ldr	x8, [x26]
	stur	x8, [x0, #-8]
	ldr	x0, [x25, #8]!
	cbnz	x0, LBB0_22
; %bb.30:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x20, #16]
LBB0_31:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	w0, #0
	add	x23, x23, #1
	ldrsw	x9, [x8]
	cmp	x23, x9
	b.lt	LBB0_20
	b	LBB0_38
LBB0_32:
	ldr	x21, [x20, #8]
LBB0_33:
	mov	x0, x21
	bl	_kfree
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_37
LBB0_34:
	mov	w0, #0
	b	LBB0_38
LBB0_35:
	ldr	x0, [x20, #8]
	bl	_kfree
LBB0_36:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_37:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_38:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_berlin_pinctrl_build_state
.subsections_via_symbols
