	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zynq_gpio_get_direction
_zynq_gpio_get_direction:               ## @zynq_gpio_get_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	callq	_gpiochip_get_data
	movq	%rax, %rbx
	leaq	-24(%rbp), %rsi
	leaq	-20(%rbp), %rdx
	movl	%r14d, %edi
	movq	%rax, %rcx
	callq	_zynq_gpio_get_bank_pin
	movq	(%rbx), %rbx
	movl	-24(%rbp), %edi
	callq	_ZYNQ_GPIO_DIRM_OFFSET
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readl_relaxed
	movl	%eax, %ebx
	movl	-20(%rbp), %edi
	callq	_BIT
	xorl	%ecx, %ecx
	testl	%ebx, %eax
	sete	%cl
	movl	%ecx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_zynq_gpio_get_direction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zynq_gpio_get_direction
_zynq_gpio_get_direction:               ; @zynq_gpio_get_direction
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	bl	_gpiochip_get_data
	mov	x20, x0
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	mov	x3, x20
	bl	_zynq_gpio_get_bank_pin
	ldr	x19, [x20]
	ldr	w0, [sp, #12]
	bl	_ZYNQ_GPIO_DIRM_OFFSET
	add	x0, x0, x19
	bl	_readl_relaxed
	mov	x19, x0
	ldr	w0, [sp, #8]
	bl	_BIT
	tst	w0, w19
	cset	w0, eq
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_zynq_gpio_get_direction
.subsections_via_symbols
