	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aspeed_gpio_request_enable     ## -- Begin function aspeed_gpio_request_enable
	.p2align	4, 0x90
_aspeed_gpio_request_enable:            ## @aspeed_gpio_request_enable
	.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
	movl	%edx, %r14d
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r12
	movq	8(%rax), %rax
	movl	%r14d, %ecx
	movq	(%rax,%rcx,8), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.3:
	movq	8(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.4:
	movq	(%rbx), %r13
	testq	%r13, %r13
	je	LBB0_9
## %bb.5:
	addq	$8, %rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_aspeed_gpio_in_exprs
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_aspeed_disable_sig
	testl	%eax, %eax
	jne	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rbx), %r13
	addq	$8, %rbx
	testq	%r13, %r13
	jne	LBB0_7
LBB0_9:
	movq	%r15, %rdi
	callq	_get_defined_signals
	movq	%rax, %rbx
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %edx
	movq	%rax, %rcx
	callq	_pr_warn
	movq	%rbx, %rdi
	callq	_kfree
LBB0_10:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.14:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_aspeed_sig_expr_enable         ## TAILCALL
LBB0_12:
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENXIO,4,2                      ## @ENXIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No GPIO signal type found on pin %s (%d). Found: %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aspeed_gpio_request_enable     ; -- Begin function aspeed_gpio_request_enable
	.p2align	2
_aspeed_gpio_request_enable:            ; @aspeed_gpio_request_enable
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_pinctrl_dev_get_drvdata
	ldr	x8, [x0, #8]
	ldr	x21, [x8, w19, uxtw #3]
	cbz	x21, LBB0_9
; %bb.1:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_8
; %bb.2:
	ldr	x22, [x8]
	cbz	x22, LBB0_7
; %bb.3:
	mov	x20, x0
	add	x23, x8, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_aspeed_gpio_in_exprs
	cbnz	x0, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_aspeed_disable_sig
	cbnz	w0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x22, [x23], #8
	cbnz	x22, LBB0_4
LBB0_7:
	mov	x0, x21
	bl	_get_defined_signals
	mov	x20, x0
	ldr	w1, [x21]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	bl	_pr_warn
	mov	x0, x20
	bl	_kfree
LBB0_8:
Lloh2:
	adrp	x8, _ENXIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldr	x1, [x22]
	cbz	x1, LBB0_14
; %bb.13:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_aspeed_sig_expr_enable
LBB0_14:
	mov	w0, #0
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENXIO,4,2                      ; @ENXIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No GPIO signal type found on pin %s (%d). Found: %s\n"

.subsections_via_symbols
