	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wmt_set_pinmux
_wmt_set_pinmux:                        ## @wmt_set_pinmux
	.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	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r13
	movl	%edx, %edi
	callq	_WMT_BANK_FROM_PIN
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_WMT_BIT_FROM_PIN
	movq	%rax, %rdi
	movq	8(%r13), %rcx
	shlq	$4, %rbx
	movq	8(%rcx,%rbx), %rdx
	movq	_NO_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jne	LBB0_3
## %bb.1:
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
LBB0_2:
	movl	%r15d, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_15
LBB0_3:
	movq	(%rcx,%rbx), %rcx
	xorl	%r14d, %r14d
	cmpl	$128, %r12d
	je	LBB0_8
## %bb.4:
	cmpl	$130, %r12d
	je	LBB0_11
## %bb.5:
	cmpl	$129, %r12d
	jne	LBB0_15
## %bb.6:
	movq	%rdx, %rbx
	cmpq	%rax, %rcx
	je	LBB0_14
## %bb.7:
	movq	%rdi, %r15
	movq	%rcx, %r12
	callq	_BIT
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_wmt_setbits
	movq	%r15, %rdi
	jmp	LBB0_14
LBB0_8:
	movq	%rdx, %r15
	cmpq	%rax, %rcx
	je	LBB0_10
## %bb.9:
	movq	%rdi, %rbx
	movq	%rcx, %r12
	callq	_BIT
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_wmt_setbits
	movq	%rbx, %rdi
LBB0_10:
	callq	_BIT
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_wmt_setbits
	jmp	LBB0_15
LBB0_11:
	cmpq	%rax, %rcx
	jne	LBB0_13
## %bb.12:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_13:
	movq	%rcx, %rbx
LBB0_14:
	callq	_BIT
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_wmt_clearbits
LBB0_15:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NO_REG,8,3                     ## @NO_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pin:%d no direction register defined\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"pin:%d no alt function available\n"

	.no_dead_strip	_wmt_set_pinmux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wmt_set_pinmux
_wmt_set_pinmux:                        ; @wmt_set_pinmux
	.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	x23, x2
	mov	x24, x1
	mov	x19, x0
	mov	x0, x2
	bl	_WMT_BANK_FROM_PIN
	mov	x20, x0
	mov	x0, x23
	bl	_WMT_BIT_FROM_PIN
	ldr	x8, [x19, #8]
	add	x9, x8, x20, lsl #4
	ldr	x20, [x9, #8]
Lloh0:
	adrp	x8, _NO_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NO_REG@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	x2, x23
	bl	_dev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_3:
	mov	x21, x0
	ldr	x22, [x9]
	cmp	w24, #128
	b.eq	LBB0_9
; %bb.4:
	cmp	w24, #130
	b.eq	LBB0_12
; %bb.5:
	cmp	w24, #129
	b.ne	LBB0_16
; %bb.6:
	cmp	x22, x8
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_wmt_setbits
LBB0_8:
	mov	x0, x21
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	b	LBB0_15
LBB0_9:
	cmp	x22, x8
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x21
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_wmt_setbits
LBB0_11:
	mov	x0, x21
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_wmt_setbits
	b	LBB0_16
LBB0_12:
	cmp	x22, x8
	b.ne	LBB0_14
; %bb.13:
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_14:
	mov	x0, x21
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
LBB0_15:
	bl	_wmt_clearbits
LBB0_16:
	mov	w0, #0
LBB0_17:
	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 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	"pin:%d no direction register defined\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"pin:%d no alt function available\n"

	.no_dead_strip	_wmt_set_pinmux
.subsections_via_symbols
