	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_pinconf_get_mmio
_imx_pinconf_get_mmio:                  ## @imx_pinconf_get_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	callq	_pinctrl_dev_get_drvdata
	movq	16(%rax), %rdx
	movq	24(%rax), %r15
	movl	%ebx, %ecx
	movslq	(%rdx,%rcx,4), %rdi
	cmpq	$-1, %rdi
	je	LBB0_1
## %bb.2:
	addq	(%rax), %rdi
	callq	_readl
	movq	%rax, %rcx
	movq	%rax, (%r14)
	movq	_SHARE_MUX_CONF_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	testl	%edx, (%r15)
	je	LBB0_4
## %bb.3:
	movq	8(%r15), %rdx
	notq	%rdx
	andq	%rdx, %rcx
	movq	%rcx, (%r14)
	jmp	LBB0_4
LBB0_1:
	movl	8(%rax), %edi
	movq	16(%r15), %rax
	movl	(%rax,%rcx,4), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	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
	.comm	_SHARE_MUX_CONF_REG,4,2         ## @SHARE_MUX_CONF_REG
	.no_dead_strip	_imx_pinconf_get_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_get_mmio
_imx_pinconf_get_mmio:                  ; @imx_pinconf_get_mmio
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	bl	_pinctrl_dev_get_drvdata
	ldp	x8, x21, [x0, #16]
	ldrsw	x8, [x8, w20, uxtw #2]
	cmn	w8, #1
	b.eq	LBB0_3
; %bb.1:
	ldr	x9, [x0]
	add	x0, x9, x8
	bl	_readl
	str	x0, [x19]
	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:
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x21, #8]
	bic	x8, x8, x9
	str	x8, [x19]
	b	LBB0_5
LBB0_3:
	mov	w8, w20
	ldr	w0, [x0, #8]
	ldr	x9, [x21, #16]
	ldr	w2, [x9, x8, lsl #2]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.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
	.comm	_SHARE_MUX_CONF_REG,4,2         ; @SHARE_MUX_CONF_REG
	.no_dead_strip	_imx_pinconf_get_mmio
.subsections_via_symbols
