	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_pinconf_set_mmio
_imx_pinconf_set_mmio:                  ## @imx_pinconf_set_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	callq	_pinctrl_dev_get_drvdata
	movq	8(%rax), %rdx
	movl	%r12d, %ecx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	cmpl	$-1, (%rdx,%rcx,4)
	movq	16(%rax), %r14
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rax), %edi
	movq	16(%r14), %rax
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	(%rax,%rcx,4), %edx
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_dbg
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.3:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movl	%r15d, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15,%r14,8), %rdi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	(%r12,%r13,4), %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	addl	(%rbx), %esi
	callq	_writel
	movl	4(%rbx), %edi
	movl	(%r12,%r13,4), %edx
	movq	(%r15,%r14,8), %rcx
	leaq	L_.str.3(%rip), %rsi
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_dev_dbg
	incq	%r14
	cmpq	%r14, -80(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_SHARE_MUX_CONF_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	testl	%eax, (%r15)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r13,4), %edi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	addl	(%r12), %edi
	callq	_readl
	movq	%rax, %rbx
	andq	8(%r15), %rbx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	orq	(%rax,%r14,8), %rbx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15,%r13,4), %esi
	addl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_writel
	movl	4(%r12), %edi
	movl	(%r15,%r13,4), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rcx
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$56, %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 config function\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"pinconf set pin %s\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"write: offset 0x%x val 0x%lx\n"

	.no_dead_strip	_imx_pinconf_set_mmio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx_pinconf_set_mmio
_imx_pinconf_set_mmio:                  ; @imx_pinconf_set_mmio
	.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	x21, x3
	mov	x19, x2
	mov	x22, x1
	bl	_pinctrl_dev_get_drvdata
	mov	x20, x0
	ldp	x24, x26, [x0, #8]
	mov	w8, w22
	lsl	x25, x8, #2
	ldr	w8, [x24, x25]
	ldr	w0, [x0, #4]
	ldr	x9, [x26, #16]
	ldr	w2, [x9, x25]
	cmn	w8, #1
	b.eq	LBB0_8
; %bb.1:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	cbz	w21, LBB0_7
; %bb.2:
	mov	w27, w21
Lloh2:
	adrp	x28, _SHARE_MUX_CONF_REG@GOTPAGE
Lloh3:
	ldr	x28, [x28, _SHARE_MUX_CONF_REG@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str.3@PAGE
Lloh5:
	add	x21, x21, l_.str.3@PAGEOFF
Lloh6:
	adrp	x22, l_.str.2@PAGE
Lloh7:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19]
	ldr	w8, [x20]
	ldr	w9, [x24, x25]
	add	w1, w9, w8
	bl	_writel
	ldr	w0, [x20, #4]
	ldr	w2, [x24, x25]
	ldr	x8, [x19]
	str	x8, [sp]
	mov	x1, x21
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_dev_dbg
	add	x19, x19, #8
	subs	x27, x27, #1
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20]
	ldr	w9, [x24, x25]
	add	w0, w9, w8
	bl	_readl
	ldr	x8, [x26, #8]
	and	x8, x8, x0
	ldr	x9, [x19]
	orr	x23, x8, x9
	ldr	w8, [x20]
	ldr	w9, [x24, x25]
	add	w1, w9, w8
	mov	x0, x23
	bl	_writel
	ldr	w0, [x20, #4]
	ldr	w2, [x24, x25]
	str	x23, [sp]
	mov	x1, x22
	b	LBB0_4
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Pin(%s) does not support config function\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"pinconf set pin %s\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"write: offset 0x%x val 0x%lx\n"

	.no_dead_strip	_imx_pinconf_set_mmio
.subsections_via_symbols
