	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_geode_gpio_isset               ## -- Begin function geode_gpio_isset
	.p2align	4, 0x90
_geode_gpio_isset:                      ## @geode_gpio_isset
	.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
	movl	%edi, %r15d
	movq	_GEODE_DEV_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_geode_get_dev_base
	movl	%eax, %r12d
	xorl	%eax, %eax
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.1:
	movl	%r15d, %ebx
	andl	$65535, %ebx                    ## imm = 0xFFFF
	je	LBB0_3
## %bb.2:
	leal	(%r12,%r14), %edi
	callq	_inl
	movl	%eax, %ecx
	notl	%ecx
	movl	$1, %eax
	testl	%ecx, %ebx
	je	LBB0_6
LBB0_3:
	cmpl	$65536, %r15d                   ## imm = 0x10000
	jb	LBB0_5
## %bb.4:
	sarl	$16, %r15d
	leal	(%r12,%r14), %edi
	addl	$128, %edi
	callq	_inl
	movl	%eax, %ecx
	notl	%ecx
	movl	$1, %eax
	testl	%ecx, %r15d
	je	LBB0_6
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GEODE_DEV_GPIO,4,2             ## @GEODE_DEV_GPIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_geode_gpio_isset               ; -- Begin function geode_gpio_isset
	.p2align	2
_geode_gpio_isset:                      ; @geode_gpio_isset
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GEODE_DEV_GPIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEODE_DEV_GPIO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_geode_get_dev_base
	cbz	w0, LBB0_7
; %bb.1:
	mov	x21, x0
	ands	w22, w19, #0xffff
	b.eq	LBB0_3
; %bb.2:
	add	w0, w21, w20
	bl	_inl
	bics	wzr, w22, w0
	b.eq	LBB0_5
LBB0_3:
	cmp	w19, #16, lsl #12               ; =65536
	b.lo	LBB0_6
; %bb.4:
	add	w8, w21, w20
	add	w0, w8, #128
	bl	_inl
	mvn	w8, w0
	tst	w8, w19, asr #16
	b.ne	LBB0_6
LBB0_5:
	mov	w0, #1
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	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	_GEODE_DEV_GPIO,4,2             ; @GEODE_DEV_GPIO
.subsections_via_symbols
