	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aspeed_pin_config_get          ## -- Begin function aspeed_pin_config_get
	.p2align	4, 0x90
_aspeed_pin_config_get:                 ## @aspeed_pin_config_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	%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	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	(%rdx), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_find_pinconf_config
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movl	(%rbx), %edi
	movl	4(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_12
## %bb.4:
	movq	_MAP_TYPE_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	-44(%rbp), %ebx
	movl	(%r12), %edi
	callq	_BIT
	andl	%eax, %ebx
	movb	(%r12), %cl
	shrl	%cl, %ebx
	movl	%r15d, %edi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_find_pinconf_map
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	_PIN_CONFIG_DRIVE_STRENGTH@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	jne	LBB0_8
## %bb.7:
	movl	(%rax), %esi
	testl	%esi, %esi
	jne	LBB0_11
	jmp	LBB0_5
LBB0_1:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_8:
	movq	_PIN_CONFIG_BIAS_PULL_DOWN@GOTPCREL(%rip), %rcx
	movl	$1, %esi
	cmpl	(%rcx), %r15d
	jne	LBB0_11
## %bb.9:
	xorl	%esi, %esi
	cmpq	$0, (%rax)
	setne	%sil
	testl	%esi, %esi
	je	LBB0_5
LBB0_11:
	movl	%r15d, %edi
	callq	_pinconf_to_config_packed
	movq	%rax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_MAP_TYPE_VAL,4,2               ## @MAP_TYPE_VAL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PIN_CONFIG_DRIVE_STRENGTH,4,2  ## @PIN_CONFIG_DRIVE_STRENGTH
	.comm	_PIN_CONFIG_BIAS_PULL_DOWN,4,2  ## @PIN_CONFIG_BIAS_PULL_DOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aspeed_pin_config_get          ; -- Begin function aspeed_pin_config_get
	.p2align	2
_aspeed_pin_config_get:                 ; @aspeed_pin_config_get
	.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	x19, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x0, [x2]
	bl	_pinconf_to_config_param
	mov	x20, x0
	mov	x0, x22
	bl	_pinctrl_dev_get_drvdata
	mov	x22, x0
	mov	x1, x21
	mov	x2, x20
	bl	_find_pinconf_config
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	w0, [x22]
	ldr	w1, [x21, #4]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_12
; %bb.2:
Lloh0:
	adrp	x8, _MAP_TYPE_VAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAP_TYPE_VAL@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	w23, [sp, #12]
	ldr	w0, [x21]
	bl	_BIT
	and	w8, w0, w23
	ldr	w9, [x21]
	lsr	w2, w8, w9
	mov	x0, x20
	mov	x1, x22
	bl	_find_pinconf_map
	cbz	x0, LBB0_8
; %bb.3:
Lloh3:
	adrp	x8, _PIN_CONFIG_DRIVE_STRENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PIN_CONFIG_DRIVE_STRENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_6
; %bb.4:
	ldr	w1, [x0]
	cbnz	w1, LBB0_11
	b	LBB0_8
LBB0_5:
Lloh6:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh8:
	adrp	x8, _PIN_CONFIG_BIAS_PULL_DOWN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PIN_CONFIG_BIAS_PULL_DOWN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_10
; %bb.7:
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w1, ne
	cbnz	w1, LBB0_11
LBB0_8:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_10:
	mov	w1, #1
LBB0_11:
	mov	x0, x20
	bl	_pinconf_to_config_packed
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
LBB0_12:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_MAP_TYPE_VAL,4,2               ; @MAP_TYPE_VAL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PIN_CONFIG_DRIVE_STRENGTH,4,2  ; @PIN_CONFIG_DRIVE_STRENGTH
	.comm	_PIN_CONFIG_BIAS_PULL_DOWN,4,2  ; @PIN_CONFIG_BIAS_PULL_DOWN
.subsections_via_symbols
