	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wmt_pctl_dt_node_to_map
_wmt_pctl_dt_node_to_map:               ## @wmt_pctl_dt_node_to_map
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_of_find_property
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r12
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_of_find_property
	movq	%rax, %rbx
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_of_find_property
	movq	%rbx, %rcx
	orq	%rax, %rcx
	je	LBB0_7
## %bb.2:
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %r14d
	sarl	$2, %r14d
LBB0_4:
	movl	(%r12), %ebx
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movl	(%rax), %eax
	sarl	$2, %eax
	jmp	LBB0_10
LBB0_6:
	movl	4(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_8
LBB0_7:
	movl	4(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
LBB0_8:
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_17
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	movl	%ebx, %r12d
	sarl	$2, %r12d
	cmpl	$2, %r14d
	jl	LBB0_13
## %bb.11:
	cmpl	%r12d, %r14d
	je	LBB0_13
## %bb.12:
	movl	4(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_16
LBB0_13:
	cmpl	$2, %eax
	jl	LBB0_20
## %bb.14:
	cmpl	%r12d, %eax
	je	LBB0_20
## %bb.15:
	movl	4(%r15), %edi
	leaq	L_.str.6(%rip), %rsi
LBB0_16:
	xorl	%r14d, %r14d
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_18:
	subl	(%rax), %r14d
LBB0_19:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	%eax, %edx
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	testl	%r14d, %r14d
	sete	%al
	setne	%cl
	movl	$2, %edi
	subl	%eax, %edi
	movl	%edx, -76(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	cmovel	%ecx, %edi
	imull	%r12d, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, -96(%rbp)
	testq	%rax, %rax
	je	LBB0_33
## %bb.21:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpl	$4, %ebx
	jl	LBB0_34
## %bb.22:
	cmpl	$2, %r12d
	movl	$1, %ebx
	cmovgel	%r12d, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_24
LBB0_23:                                ##   in Loop: Header=BB0_24 Depth=1
	incl	%r12d
	cmpl	%r12d, %ebx
	je	LBB0_34
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	leaq	-60(%rbp), %rcx
	callq	_of_property_read_u32_index
	testl	%eax, %eax
	jne	LBB0_32
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movl	(%r15), %eax
	shll	$5, %eax
	cmpl	%eax, -60(%rbp)
	jge	LBB0_35
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	testl	%r14d, %r14d
	je	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_24 Depth=1
	cmpl	$2, %r14d
	movl	$0, %edx
	cmovgel	%r12d, %edx
	movq	%r13, %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	-84(%rbp), %rcx
	callq	_of_property_read_u32_index
	testl	%eax, %eax
	jne	LBB0_32
## %bb.28:                              ##   in Loop: Header=BB0_24 Depth=1
	movl	-60(%rbp), %edx
	movl	-84(%rbp), %ecx
	movq	%r15, %rdi
	movq	%r13, %rsi
	leaq	-96(%rbp), %r8
	callq	_wmt_pctl_dt_node_to_map_func
	testl	%eax, %eax
	jne	LBB0_32
LBB0_29:                                ##   in Loop: Header=BB0_24 Depth=1
	cmpl	$0, -76(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_23
## %bb.30:                              ##   in Loop: Header=BB0_24 Depth=1
	cmpl	$2, -76(%rbp)                   ## 4-byte Folded Reload
	movl	$0, %edx
	cmovgel	%r12d, %edx
	movq	%r13, %rdi
	leaq	L_.str.3(%rip), %rsi
	leaq	-80(%rbp), %rcx
	callq	_of_property_read_u32_index
	testl	%eax, %eax
	jne	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_24 Depth=1
	movl	-60(%rbp), %edx
	movl	-80(%rbp), %ecx
	movq	%r15, %rdi
	movq	%r13, %rsi
	leaq	-96(%rbp), %r8
	callq	_wmt_pctl_dt_node_to_map_pull
	testl	%eax, %eax
	je	LBB0_23
LBB0_32:
	movl	%eax, %r14d
	jmp	LBB0_36
LBB0_33:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	jmp	LBB0_18
LBB0_34:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	xorl	%r14d, %r14d
	jmp	LBB0_19
LBB0_35:
	movl	4(%r15), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_36:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_wmt_pctl_dt_free_map
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wm,pins"

L_.str.1:                               ## @.str.1
	.asciz	"missing wmt,pins property\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"wm,function"

L_.str.3:                               ## @.str.3
	.asciz	"wm,pull"

L_.str.4:                               ## @.str.4
	.asciz	"neither wm,function nor wm,pull specified\n"

L_.str.5:                               ## @.str.5
	.asciz	"wm,function must have 1 or %d entries\n"

L_.str.6:                               ## @.str.6
	.asciz	"wm,pull must have 1 or %d entries\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.7:                               ## @.str.7
	.asciz	"invalid wm,pins value\n"

	.no_dead_strip	_wmt_pctl_dt_node_to_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wmt_pctl_dt_node_to_map
_wmt_pctl_dt_node_to_map:               ; @wmt_pctl_dt_node_to_map
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_pinctrl_dev_get_drvdata
	mov	x23, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, #0
	bl	_of_find_property
	cbz	x0, LBB0_5
; %bb.1:
	mov	x24, x0
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x2, #0
	bl	_of_find_property
	mov	x25, x0
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	mov	x2, #0
	bl	_of_find_property
	orr	x8, x25, x0
	cbz	x8, LBB0_6
; %bb.2:
	cbz	x25, LBB0_7
; %bb.3:
	ldr	w8, [x25]
	asr	w27, w8, #2
	ldr	w26, [x24]
	cbz	x0, LBB0_8
LBB0_4:
	ldr	w8, [x0]
	asr	w24, w8, #2
	b	LBB0_9
LBB0_5:
	ldr	w0, [x23, #4]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_6:
	ldr	w0, [x23, #4]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_15
LBB0_7:
	mov	w27, #0
	ldr	w26, [x24]
	cbnz	x0, LBB0_4
LBB0_8:
	mov	w24, #0
LBB0_9:
	asr	w28, w26, #2
	cmp	w27, #2
	b.lt	LBB0_12
; %bb.10:
	cmp	w27, w28
	b.eq	LBB0_12
; %bb.11:
	ldr	w0, [x23, #4]
	str	x28, [sp]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_15
LBB0_12:
	cmp	w24, #2
	b.lt	LBB0_18
; %bb.13:
	cmp	w24, w28
	b.eq	LBB0_18
; %bb.14:
	ldr	w0, [x23, #4]
                                        ; kill: def $w28 killed $w28 killed $x28 def $x28
	str	x28, [sp]
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_15:
	bl	_dev_err
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w28, w8
LBB0_17:
	mov	x0, x28
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_18:
	cmp	w27, #0
	cset	w8, ne
	mov	w9, #1
	cinc	w9, w9, ne
	cmp	w24, #0
	csel	w8, w8, w9, eq
	mul	w0, w8, w28
Lloh16:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	mov	w1, #4
	bl	_kcalloc
	str	x0, [sp, #40]
	cbz	x0, LBB0_31
; %bb.19:
	mov	x25, x0
	cmp	w26, #4
	b.lt	LBB0_32
; %bb.20:
	mov	w26, #0
	cmp	w28, #1
	csinc	w8, w28, wzr, gt
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	w26, w26, #1
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	cmp	w8, w26
	b.eq	LBB0_32
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	add	x3, sp, #36
	mov	x0, x22
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x26
	bl	_of_property_read_u32_index
	cbnz	w0, LBB0_30
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	w8, [sp, #36]
	ldr	w9, [x23]
	cmp	w8, w9, lsl #5
	b.ge	LBB0_33
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=1
	cbz	w27, LBB0_27
; %bb.25:                               ;   in Loop: Header=BB0_22 Depth=1
	cmp	w27, #1
	csel	w2, w26, wzr, gt
	add	x3, sp, #32
	mov	x0, x22
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_of_property_read_u32_index
	cbnz	w0, LBB0_30
; %bb.26:                               ;   in Loop: Header=BB0_22 Depth=1
	ldp	w3, w2, [sp, #32]
	add	x4, sp, #40
	mov	x0, x23
	mov	x1, x22
	bl	_wmt_pctl_dt_node_to_map_func
	cbnz	w0, LBB0_30
LBB0_27:                                ;   in Loop: Header=BB0_22 Depth=1
	cbz	w24, LBB0_21
; %bb.28:                               ;   in Loop: Header=BB0_22 Depth=1
	cmp	w24, #1
	csel	w2, w26, wzr, gt
	add	x3, sp, #28
	mov	x0, x22
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_of_property_read_u32_index
	cbnz	w0, LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	w2, [sp, #36]
	ldr	w3, [sp, #28]
	add	x4, sp, #40
	mov	x0, x23
	mov	x1, x22
	bl	_wmt_pctl_dt_node_to_map_pull
	cbz	w0, LBB0_21
LBB0_30:
	mov	x28, x0
	b	LBB0_34
LBB0_31:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_16
LBB0_32:
	mov	w28, #0
	str	x25, [x21]
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	str	w8, [x20]
	b	LBB0_17
LBB0_33:
	ldr	w0, [x23, #4]
Lloh27:
	adrp	x1, l_.str.7@PAGE
Lloh28:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_err
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w28, w8
LBB0_34:
	ldr	w2, [sp, #20]                   ; 4-byte Folded Reload
	mov	x0, x19
	mov	x1, x25
	bl	_wmt_pctl_dt_free_map
	b	LBB0_17
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wm,pins"

l_.str.1:                               ; @.str.1
	.asciz	"missing wmt,pins property\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"wm,function"

l_.str.3:                               ; @.str.3
	.asciz	"wm,pull"

l_.str.4:                               ; @.str.4
	.asciz	"neither wm,function nor wm,pull specified\n"

l_.str.5:                               ; @.str.5
	.asciz	"wm,function must have 1 or %d entries\n"

l_.str.6:                               ; @.str.6
	.asciz	"wm,pull must have 1 or %d entries\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.7:                               ; @.str.7
	.asciz	"invalid wm,pins value\n"

	.no_dead_strip	_wmt_pctl_dt_node_to_map
.subsections_via_symbols
