	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_pmx_set_one_pin_mmio
_imx_pmx_set_one_pin_mmio:              ## @imx_pmx_set_one_pin_mmio
	.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	%rsi, %rbx
	movq	%rdi, %r15
	movq	16(%rdi), %r13
	movq	24(%rdi), %r14
	movl	(%rsi), %r12d
	movl	(%r13,%r12,4), %esi
	cmpl	$-1, %esi
	je	LBB0_1
## %bb.2:
	movq	_SHARE_MUX_CONF_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_4
## %bb.3:
	addl	(%r15), %esi
	movl	%esi, %edi
	callq	_readl
	movl	4(%r14), %edx
	notl	%edx
	andl	%eax, %edx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %ebx
	movb	8(%r14), %cl
	shll	%cl, %ebx
	orl	%edx, %ebx
	movl	(%r13,%r12,4), %esi
	addl	(%r15), %esi
	movl	%ebx, %edi
	callq	_writel
	movl	8(%r15), %edi
	movl	(%r13,%r12,4), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %ecx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_1:
	movl	8(%r15), %edi
	movq	16(%r14), %rax
	movl	(%rax,%r12,4), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_9
LBB0_4:
	movl	4(%rbx), %edi
	addl	(%r15), %esi
	callq	_writel
	movl	8(%r15), %edi
	movl	(%r13,%r12,4), %edx
	movl	4(%rbx), %ecx
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	12(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movl	8(%rbx), %edi
	movl	4(%r15), %esi
	testl	%esi, %esi
	jne	LBB0_8
## %bb.7:
	movl	(%r15), %esi
LBB0_8:
	addl	%eax, %esi
	callq	_writel
	movl	8(%r15), %edi
	movl	8(%rbx), %ecx
	movl	12(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_9:
	xorl	%eax, %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	"Pin(%s) does not support mux function\n"

	.comm	_SHARE_MUX_CONF_REG,4,2         ## @SHARE_MUX_CONF_REG
L_.str.1:                               ## @.str.1
	.asciz	"write: offset 0x%x val 0x%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"==>select_input: offset 0x%x val 0x%x\n"

	.no_dead_strip	_imx_pmx_set_one_pin_mmio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx_pmx_set_one_pin_mmio
_imx_pmx_set_one_pin_mmio:              ; @imx_pmx_set_one_pin_mmio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x0
	ldr	w23, [x1]
	ldp	x22, x21, [x0, #16]
	ldr	w8, [x22, x23, lsl #2]
	cmn	w8, #1
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x1
	ldr	w9, [x21]
Lloh0:
	adrp	x10, _SHARE_MUX_CONF_REG@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SHARE_MUX_CONF_REG@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.2:
	ldr	w9, [x20]
	add	w0, w9, w8
	bl	_readl
	ldp	w8, w9, [x21, #4]
	bic	w8, w0, w8
	ldr	w10, [x19, #4]
	lsl	w9, w10, w9
	orr	w21, w9, w8
	ldr	w8, [x20]
	lsl	x23, x23, #2
	ldr	w9, [x22, x23]
	add	w1, w9, w8
	mov	x0, x21
	bl	_writel
	ldr	w0, [x20, #8]
	ldr	w2, [x22, x23]
	str	x21, [sp]
	b	LBB0_5
LBB0_3:
	ldr	w0, [x20, #8]
	ldr	x8, [x21, #16]
	ldr	w2, [x8, x23, lsl #2]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_4:
	ldr	w0, [x19, #4]
	ldr	w9, [x20]
	add	w1, w9, w8
	bl	_writel
	ldr	w0, [x20, #8]
	ldr	w2, [x22, x23, lsl #2]
	ldr	w8, [x19, #4]
	str	x8, [sp]
LBB0_5:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_10
; %bb.6:
	ldr	w0, [x19, #8]
	ldr	w9, [x20, #4]
	cbnz	w9, LBB0_8
; %bb.7:
	ldr	w9, [x20]
LBB0_8:
	add	w1, w9, w8
	bl	_writel
	ldr	w0, [x20, #8]
	ldp	w8, w2, [x19, #8]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	bl	_dev_dbg
LBB0_10:
	mov	w0, #0
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Pin(%s) does not support mux function\n"

	.comm	_SHARE_MUX_CONF_REG,4,2         ; @SHARE_MUX_CONF_REG
l_.str.1:                               ; @.str.1
	.asciz	"write: offset 0x%x val 0x%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"==>select_input: offset 0x%x val 0x%x\n"

	.no_dead_strip	_imx_pmx_set_one_pin_mmio
.subsections_via_symbols
