	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function f7188x_gpio_get_direction
_f7188x_gpio_get_direction:             ## @f7188x_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	callq	_gpiochip_get_data
	movq	%rax, %r12
	movq	8(%rax), %rax
	movq	(%rax), %rbx
	movl	(%rbx), %edi
	callq	_superio_enter
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	movq	_SIO_LD_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_superio_select
	movl	(%rbx), %r15d
	movl	(%r12), %edi
	callq	_gpio_dir
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_superio_inb
	movl	%eax, %r15d
	movl	(%rbx), %edi
	callq	_superio_exit
	xorl	%eax, %eax
	btl	%r14d, %r15d
	setae	%al
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIO_LD_GPIO,4,2                ## @SIO_LD_GPIO
	.no_dead_strip	_f7188x_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 f7188x_gpio_get_direction
_f7188x_gpio_get_direction:             ; @f7188x_gpio_get_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, x1
	bl	_gpiochip_get_data
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x22, [x8]
	ldr	w0, [x22]
	bl	_superio_enter
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x22]
Lloh0:
	adrp	x8, _SIO_LD_GPIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIO_LD_GPIO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_superio_select
	ldr	w21, [x22]
	ldr	w0, [x20]
	bl	_gpio_dir
	mov	x1, x0
	mov	x0, x21
	bl	_superio_inb
	mov	x20, x0
	ldr	w0, [x22]
	bl	_superio_exit
	mvn	w8, w20
	lsr	w8, w8, w19
	and	w0, w8, #0x1
LBB0_2:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SIO_LD_GPIO,4,2                ; @SIO_LD_GPIO
	.no_dead_strip	_f7188x_gpio_get_direction
.subsections_via_symbols
