	.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_pull
_wmt_pctl_dt_node_to_map_pull:          ## @wmt_pctl_dt_node_to_map_pull
	.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
	movl	%ecx, %r12d
	movq	%rdi, %r15
	cmpl	$3, %ecx
	jl	LBB0_2
## %bb.1:
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_2:
	movq	%r8, %r14
	movl	%edx, %r13d
	movq	(%r8), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%edx, %esi
	callq	_wmt_pctl_find_group_by_pin
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%rax, %r13
	cmpl	$2, %r12d
	je	LBB0_12
## %bb.8:
	cmpl	$1, %r12d
	je	LBB0_11
## %bb.9:
	movq	_PIN_CONFIG_BIAS_DISABLE@GOTPCREL(%rip), %rax
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.13:
	movq	(%rax), %rax
	movq	%rax, (%r13)
	movl	8(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edx
	callq	_dev_err
	jmp	LBB0_14
LBB0_3:
	movl	8(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	callq	_dev_err
	jmp	LBB0_15
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_12:
	movq	_PIN_CONFIG_BIAS_PULL_UP@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_11:
	movq	_PIN_CONFIG_BIAS_PULL_DOWN@GOTPCREL(%rip), %rax
LBB0_10:
	movq	(%rax), %rax
	movq	%rax, (%r13)
LBB0_14:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	_PIN_MAP_TYPE_CONFIGS_PIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rdx)
	movq	(%r15), %rax
	movl	%ebx, %ecx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 12(%rdx)
	movq	%r13, (%rdx)
	movl	$1, 8(%rdx)
	addq	$24, (%r14)
	xorl	%ebx, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %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	"invalid wm,pull %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"unable to match pin %d to group\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PIN_CONFIG_BIAS_DISABLE,8,3    ## @PIN_CONFIG_BIAS_DISABLE
	.comm	_PIN_CONFIG_BIAS_PULL_DOWN,8,3  ## @PIN_CONFIG_BIAS_PULL_DOWN
	.comm	_PIN_CONFIG_BIAS_PULL_UP,8,3    ## @PIN_CONFIG_BIAS_PULL_UP
L_.str.2:                               ## @.str.2
	.asciz	"invalid pull state %d - disabling\n"

	.comm	_PIN_MAP_TYPE_CONFIGS_PIN,4,2   ## @PIN_MAP_TYPE_CONFIGS_PIN
	.no_dead_strip	_wmt_pctl_dt_node_to_map_pull
.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_pull
_wmt_pctl_dt_node_to_map_pull:          ; @wmt_pctl_dt_node_to_map_pull
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x3
	mov	x21, x0
	cmp	w3, #3
	b.lt	LBB0_3
; %bb.1:
	ldr	w0, [x21, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_15
LBB0_3:
	mov	x20, x4
	mov	x23, x2
	ldr	x24, [x4]
	mov	x0, x21
	mov	x1, x2
	bl	_wmt_pctl_find_group_by_pin
	mov	x19, x0
	tbnz	w0, #31, LBB0_9
; %bb.4:
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.5:
	mov	x23, x0
	cmp	w22, #2
	b.eq	LBB0_11
; %bb.6:
	cmp	w22, #1
	b.eq	LBB0_12
; %bb.7:
Lloh7:
	adrp	x8, _PIN_CONFIG_BIAS_DISABLE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PIN_CONFIG_BIAS_DISABLE@GOTPAGEOFF]
	cbz	w22, LBB0_13
; %bb.8:
	ldr	x8, [x8]
	str	x8, [x23]
	ldr	w0, [x21, #8]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x22
	bl	_dev_err
	b	LBB0_14
LBB0_9:
	ldr	w0, [x21, #8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x23
	bl	_dev_err
	b	LBB0_15
LBB0_10:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_11:
Lloh15:
	adrp	x8, _PIN_CONFIG_BIAS_PULL_UP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PIN_CONFIG_BIAS_PULL_UP@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh17:
	adrp	x8, _PIN_CONFIG_BIAS_PULL_DOWN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PIN_CONFIG_BIAS_PULL_DOWN@GOTPAGEOFF]
LBB0_13:
	ldr	x8, [x8]
	str	x8, [x23]
LBB0_14:
Lloh19:
	adrp	x8, _PIN_MAP_TYPE_CONFIGS_PIN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PIN_MAP_TYPE_CONFIGS_PIN@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x24, #16]
	ldr	x8, [x21]
	ldr	w8, [x8, w19, uxtw #2]
	str	x23, [x24]
	mov	w9, #1
	stp	w9, w8, [x24, #8]
	ldr	x8, [x20]
	add	x8, x8, #24
	str	x8, [x20]
	mov	w19, #0
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid wm,pull %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"unable to match pin %d to group\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PIN_CONFIG_BIAS_DISABLE,8,3    ; @PIN_CONFIG_BIAS_DISABLE
	.comm	_PIN_CONFIG_BIAS_PULL_DOWN,8,3  ; @PIN_CONFIG_BIAS_PULL_DOWN
	.comm	_PIN_CONFIG_BIAS_PULL_UP,8,3    ; @PIN_CONFIG_BIAS_PULL_UP
l_.str.2:                               ; @.str.2
	.asciz	"invalid pull state %d - disabling\n"

	.comm	_PIN_MAP_TYPE_CONFIGS_PIN,4,2   ; @PIN_MAP_TYPE_CONFIGS_PIN
	.no_dead_strip	_wmt_pctl_dt_node_to_map_pull
.subsections_via_symbols
