	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvebu_pinmux_gpio_set_direction
_mvebu_pinmux_gpio_set_direction:       ## @mvebu_pinmux_gpio_set_direction
	.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
	movl	%ecx, %r14d
	movl	%edx, %r15d
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	_mvebu_pinctrl_find_group_by_pid
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	8(%rax), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.11:
	movl	(%rax), %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rcx                           ## TAILCALL
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_3:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_mvebu_pinctrl_find_gpio_setting
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movl	(%rax), %ecx
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.5:
	movq	_MVEBU_SETTING_GPI@GOTPCREL(%rip), %rdx
	jmp	LBB0_7
LBB0_6:
	movq	_MVEBU_SETTING_GPO@GOTPCREL(%rip), %rdx
LBB0_7:
	xorl	%eax, %eax
	testl	%ecx, (%rdx)
	jne	LBB0_10
LBB0_8:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
LBB0_9:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_MVEBU_SETTING_GPI,4,2          ## @MVEBU_SETTING_GPI
	.comm	_MVEBU_SETTING_GPO,4,2          ## @MVEBU_SETTING_GPO
	.no_dead_strip	_mvebu_pinmux_gpio_set_direction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvebu_pinmux_gpio_set_direction
_mvebu_pinmux_gpio_set_direction:       ; @mvebu_pinmux_gpio_set_direction
	.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, x3
	mov	x20, x2
	bl	_pinctrl_dev_get_drvdata
	mov	x21, x0
	mov	x1, x20
	bl	_mvebu_pinctrl_find_group_by_pid
	cbz	x0, LBB0_3
; %bb.1:
	mov	x1, x0
	ldr	x8, [x0, #8]
	ldr	x3, [x8]
	cbz	x3, LBB0_4
; %bb.2:
	ldr	w0, [x1]
	mov	x1, x20
	mov	x2, x19
	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
	br	x3
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_4:
	mov	x0, x21
	bl	_mvebu_pinctrl_find_gpio_setting
	cbz	x0, LBB0_10
; %bb.5:
	ldr	w8, [x0]
	cbz	w19, LBB0_7
; %bb.6:
Lloh2:
	adrp	x9, _MVEBU_SETTING_GPI@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MVEBU_SETTING_GPI@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh4:
	adrp	x9, _MVEBU_SETTING_GPO@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MVEBU_SETTING_GPO@GOTPAGEOFF]
LBB0_8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	mov	w0, #0
	b	LBB0_12
LBB0_10:
Lloh6:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_MVEBU_SETTING_GPI,4,2          ; @MVEBU_SETTING_GPI
	.comm	_MVEBU_SETTING_GPO,4,2          ; @MVEBU_SETTING_GPO
	.no_dead_strip	_mvebu_pinmux_gpio_set_direction
.subsections_via_symbols
