	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wmt_pinconf_set
_wmt_pinconf_set:                       ## @wmt_pinconf_set
	.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	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r12
	movl	%esi, %ebx
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_WMT_BANK_FROM_PIN
	movq	%rax, %r13
	movl	%ebx, %edi
	callq	_WMT_BIT_FROM_PIN
	movq	%rax, %r15
	movq	8(%r14), %rax
	shlq	$4, %r13
	movq	(%rax,%r13), %rdx
	movq	_NO_REG@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rcx, %rdx
	je	LBB0_16
## %bb.1:
	movq	8(%rax,%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpq	%rcx, %rax
	je	LBB0_16
## %bb.2:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_9
## %bb.3:
	movl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_BIT
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_wmt_clearbits
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_BIT
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_wmt_setbits
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	cmpq	%r13, -48(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%r13,8), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %ebx
	movq	(%r12,%r13,8), %rdi
	callq	_pinconf_to_config_argument
	movl	%ebx, %ecx
	andl	$-2, %ecx
	testq	%rax, %rax
	movl	%ebx, %eax
	movl	$130, %edx
	cmovel	%edx, %eax
	cmpl	$128, %ecx
	cmovnel	%ebx, %eax
	cmpl	$128, %eax
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$129, %eax
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$130, %eax
	jne	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_BIT
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_wmt_clearbits
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_BIT
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_wmt_setbits
	jmp	LBB0_11
LBB0_16:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_9:
	xorl	%ebx, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_NO_REG,8,3                     ## @NO_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bias functions not supported on pin %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"unknown pinconf param\n"

	.no_dead_strip	_wmt_pinconf_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wmt_pinconf_set
_wmt_pinconf_set:                       ; @wmt_pinconf_set
	.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	x24, x3
	mov	x19, x2
	mov	x25, x1
	bl	_pinctrl_dev_get_drvdata
	mov	x20, x0
	mov	x0, x25
	bl	_WMT_BANK_FROM_PIN
	mov	x22, x0
	mov	x0, x25
	bl	_WMT_BIT_FROM_PIN
	ldr	x8, [x20, #8]
	add	x8, x8, x22, lsl #4
	ldp	x22, x23, [x8]
Lloh0:
	adrp	x8, _NO_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NO_REG@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x22, x8
	ccmp	x23, x8, #4, ne
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x20]
	str	x25, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	bl	_dev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_3:
	cbz	w24, LBB0_13
; %bb.4:
	mov	x21, x0
	mov	w25, w24
	mov	w26, #128
	mov	w27, #130
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_BIT
	mov	x2, x0
	mov	x0, x20
	mov	x1, x23
	bl	_wmt_clearbits
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_BIT
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_wmt_setbits
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x19, x19, #8
	subs	x25, x25, #1
	b.eq	LBB0_13
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	bl	_pinconf_to_config_param
	mov	x24, x0
	ldr	x0, [x19]
	bl	_pinconf_to_config_argument
	and	w8, w24, #0xfffffffe
	cmp	x0, #0
	ccmp	w8, w26, #0, eq
	csel	w8, w27, w24, eq
	cmp	w8, #128
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w8, #130
	b.ne	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_BIT
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_wmt_clearbits
	b	LBB0_7
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_BIT
	mov	x2, x0
	mov	x0, x20
	mov	x1, x23
	bl	_wmt_setbits
	b	LBB0_6
LBB0_13:
	mov	w0, #0
LBB0_14:
	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
LBB0_15:
	ldr	w0, [x20]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NO_REG,8,3                     ; @NO_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bias functions not supported on pin %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"unknown pinconf param\n"

	.no_dead_strip	_wmt_pinconf_set
.subsections_via_symbols
