	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function artpec6_pmx_request_gpio
_artpec6_pmx_request_gpio:              ## @artpec6_pmx_request_gpio
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %ebx
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_artpec6_pmx_reg_offset
	cmpl	$32, %ebx
	jb	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movl	%eax, %ebx
	movq	(%r14), %rdi
	addq	%rbx, %rdi
	callq	_readl_relaxed
	movq	_ARTPEC6_PINMUX_SEL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	movq	_ARTPEC6_PINMUX_SEL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	_ARTPEC6_CONFIG_0@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	shll	%cl, %edi
	andl	%eax, %edx
	orl	%edx, %edi
	addq	(%r14), %rbx
	movq	%rbx, %rsi
	callq	_writel_relaxed
	xorl	%eax, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ARTPEC6_PINMUX_SEL_MASK,4,2    ## @ARTPEC6_PINMUX_SEL_MASK
	.comm	_ARTPEC6_CONFIG_0,4,2           ## @ARTPEC6_CONFIG_0
	.comm	_ARTPEC6_PINMUX_SEL_SHIFT,4,2   ## @ARTPEC6_PINMUX_SEL_SHIFT
	.no_dead_strip	_artpec6_pmx_request_gpio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function artpec6_pmx_request_gpio
_artpec6_pmx_request_gpio:              ; @artpec6_pmx_request_gpio
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	bl	_pinctrl_dev_get_drvdata
	mov	x19, x0
	mov	x0, x20
	bl	_artpec6_pmx_reg_offset
	cmp	w20, #32
	b.lo	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19]
	mov	w20, w0
	add	x0, x8, x20
	bl	_readl_relaxed
Lloh3:
	adrp	x8, _ARTPEC6_PINMUX_SEL_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARTPEC6_PINMUX_SEL_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh6:
	adrp	x9, _ARTPEC6_CONFIG_0@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ARTPEC6_CONFIG_0@GOTPAGEOFF]
Lloh8:
	adrp	x10, _ARTPEC6_PINMUX_SEL_SHIFT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ARTPEC6_PINMUX_SEL_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w0, w9, w8
	ldr	x8, [x19]
	add	x1, x8, x20
	bl	_writel_relaxed
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ARTPEC6_PINMUX_SEL_MASK,4,2    ; @ARTPEC6_PINMUX_SEL_MASK
	.comm	_ARTPEC6_CONFIG_0,4,2           ; @ARTPEC6_CONFIG_0
	.comm	_ARTPEC6_PINMUX_SEL_SHIFT,4,2   ; @ARTPEC6_PINMUX_SEL_SHIFT
	.no_dead_strip	_artpec6_pmx_request_gpio
.subsections_via_symbols
