	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function artpec6_pconf_get
_artpec6_pconf_get:                     ## @artpec6_pconf_get
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r12d
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %rbx
	movq	(%r14), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %r15d
	movl	24(%rbx), %edi
	movq	16(%rbx), %rax
	movl	%r12d, %ecx
	movl	(%rax,%rcx,4), %edx
	cmpl	%r12d, (%rbx)
	jbe	LBB0_1
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movq	8(%rbx), %rbx
	movl	%r12d, %edi
	callq	_artpec6_pmx_reg_offset
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readl
	movl	%eax, %edi
	leal	-129(%r15), %eax
	cmpl	$2, %eax
	jb	LBB0_9
## %bb.5:
	cmpl	$128, %r15d
	je	LBB0_12
## %bb.6:
	cmpl	$131, %r15d
	jne	LBB0_2
## %bb.7:
	movq	_ARTPEC6_PINMUX_UDC1_MASK@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	testl	%edi, (%rcx)
	jne	LBB0_13
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
LBB0_2:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_9:
	movq	_ARTPEC6_PINMUX_UDC1_MASK@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_10
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_ARTPEC6_PINMUX_DRV_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	movq	_ARTPEC6_PINMUX_DRV_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrl	%cl, %edi
	callq	_artpec6_pconf_drive_field_to_mA
	movl	$128, %edi
	movl	%eax, %esi
	callq	_pinconf_to_config_packed
	movq	%rax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_10:
	movq	_ARTPEC6_PINMUX_UDC0_MASK@GOTPCREL(%rip), %rax
	cmpl	$129, %r15d
	setne	%bl
	testl	%edi, (%rax)
	setne	%cl
	orb	%cl, %bl
	cmpl	$130, %r15d
	sete	%dl
	cmpb	$1, %bl
	jne	LBB0_8
## %bb.11:
	xorl	%eax, %eax
	andb	%cl, %dl
	je	LBB0_13
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pinconf is not supported for pin %s\n"

	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
L_.str.1:                               ## @.str.1
	.asciz	"getting configuration for pin %s\n"

	.comm	_ARTPEC6_PINMUX_UDC1_MASK,4,2   ## @ARTPEC6_PINMUX_UDC1_MASK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ARTPEC6_PINMUX_UDC0_MASK,4,2   ## @ARTPEC6_PINMUX_UDC0_MASK
	.comm	_ARTPEC6_PINMUX_DRV_MASK,4,2    ## @ARTPEC6_PINMUX_DRV_MASK
	.comm	_ARTPEC6_PINMUX_DRV_SHIFT,4,2   ## @ARTPEC6_PINMUX_DRV_SHIFT
	.no_dead_strip	_artpec6_pconf_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function artpec6_pconf_get
_artpec6_pconf_get:                     ; @artpec6_pconf_get
	.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	x21, x1
	bl	_pinctrl_dev_get_drvdata
	mov	x22, x0
	ldr	x0, [x19]
	bl	_pinconf_to_config_param
	mov	x20, x0
	ldr	w8, [x22]
	ldr	w0, [x22, #24]
	ldr	x9, [x22, #16]
	ldr	w2, [x9, w21, uxtw #2]
	cmp	w8, w21
	b.ls	LBB0_5
; %bb.1:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	ldr	x22, [x22, #8]
	mov	x0, x21
	bl	_artpec6_pmx_reg_offset
	add	x0, x0, x22
	bl	_readl
	sub	w8, w20, #129
	cmp	w8, #2
	b.lo	LBB0_7
; %bb.2:
	cmp	w20, #128
	b.eq	LBB0_12
; %bb.3:
	cmp	w20, #131
	b.ne	LBB0_6
; %bb.4:
Lloh2:
	adrp	x8, _ARTPEC6_PINMUX_UDC1_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ARTPEC6_PINMUX_UDC1_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_13
	b	LBB0_9
LBB0_5:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
LBB0_6:
Lloh7:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
Lloh9:
	adrp	x8, _ARTPEC6_PINMUX_UDC1_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ARTPEC6_PINMUX_UDC1_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_9
; %bb.8:
Lloh12:
	adrp	x8, _ARTPEC6_PINMUX_UDC0_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ARTPEC6_PINMUX_UDC0_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w20, #129
	cset	w9, ne
	tst	w8, w0
	cset	w8, ne
	orr	w9, w9, w8
	cmp	w20, #130
	cset	w10, eq
	and	w8, w10, w8
	cmp	w9, #1
	ccmp	w8, #0, #0, eq
	b.eq	LBB0_13
LBB0_9:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
LBB0_12:
Lloh17:
	adrp	x8, _ARTPEC6_PINMUX_DRV_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ARTPEC6_PINMUX_DRV_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh20:
	adrp	x9, _ARTPEC6_PINMUX_DRV_SHIFT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ARTPEC6_PINMUX_DRV_SHIFT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	lsr	w0, w8, w9
	bl	_artpec6_pconf_drive_field_to_mA
	mov	x1, x0
	mov	w0, #128
	bl	_pinconf_to_config_packed
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_11
LBB0_13:
	mov	w0, #0
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pinconf is not supported for pin %s\n"

	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
l_.str.1:                               ; @.str.1
	.asciz	"getting configuration for pin %s\n"

	.comm	_ARTPEC6_PINMUX_UDC1_MASK,4,2   ; @ARTPEC6_PINMUX_UDC1_MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ARTPEC6_PINMUX_UDC0_MASK,4,2   ; @ARTPEC6_PINMUX_UDC0_MASK
	.comm	_ARTPEC6_PINMUX_DRV_MASK,4,2    ; @ARTPEC6_PINMUX_DRV_MASK
	.comm	_ARTPEC6_PINMUX_DRV_SHIFT,4,2   ; @ARTPEC6_PINMUX_DRV_SHIFT
	.no_dead_strip	_artpec6_pconf_get
.subsections_via_symbols
