	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idio_24_gpio_get
_idio_24_gpio_get:                      ## @idio_24_gpio_get
	.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, %ebx
	callq	_gpiochip_get_data
	movq	%rax, %r15
	movl	%ebx, %edi
	andl	$7, %edi
	callq	_BIT
	movq	%rax, %r14
	movl	$1, %edi
	callq	_BIT
	cmpl	$7, %ebx
	ja	LBB0_2
## %bb.1:
	movq	(%r15), %rdi
	addq	$32, %rdi
	jmp	LBB0_14
LBB0_2:
	cmpl	$15, %ebx
	ja	LBB0_4
## %bb.3:
	movq	(%r15), %rdi
	addq	$28, %rdi
	jmp	LBB0_14
LBB0_4:
	cmpl	$23, %ebx
	ja	LBB0_6
## %bb.5:
	movq	(%r15), %rdi
	addq	$24, %rdi
	jmp	LBB0_14
LBB0_6:
	cmpl	$31, %ebx
	ja	LBB0_8
## %bb.7:
	movq	(%r15), %rdi
	addq	$20, %rdi
	jmp	LBB0_14
LBB0_8:
	cmpl	$39, %ebx
	ja	LBB0_10
## %bb.9:
	movq	(%r15), %rdi
	addq	$16, %rdi
	jmp	LBB0_14
LBB0_10:
	movq	(%r15), %rdi
	cmpl	$47, %ebx
	ja	LBB0_12
## %bb.11:
	addq	$12, %rdi
	jmp	LBB0_14
LBB0_12:
	movq	%rax, %r12
	addq	$8, %rdi
	callq	_ioread8
	movq	(%r15), %rdi
	testq	%r12, %rax
	je	LBB0_14
## %bb.13:
	addq	$4, %rdi
LBB0_14:
	callq	_ioread8
	xorl	%ecx, %ecx
	testq	%r14, %rax
	setne	%cl
	movl	%ecx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_idio_24_gpio_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idio_24_gpio_get
_idio_24_gpio_get:                      ; @idio_24_gpio_get
	.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	x21, x1
	bl	_gpiochip_get_data
	mov	x20, x0
	and	w0, w21, #0x7
	bl	_BIT
	mov	x19, x0
	mov	w0, #1
	bl	_BIT
	cmp	w21, #7
	b.hi	LBB0_2
; %bb.1:
	ldr	x8, [x20]
	add	x0, x8, #32
	b	LBB0_14
LBB0_2:
	cmp	w21, #15
	b.hi	LBB0_4
; %bb.3:
	ldr	x8, [x20]
	add	x0, x8, #28
	b	LBB0_14
LBB0_4:
	cmp	w21, #23
	b.hi	LBB0_6
; %bb.5:
	ldr	x8, [x20]
	add	x0, x8, #24
	b	LBB0_14
LBB0_6:
	cmp	w21, #31
	b.hi	LBB0_8
; %bb.7:
	ldr	x8, [x20]
	add	x0, x8, #20
	b	LBB0_14
LBB0_8:
	cmp	w21, #39
	b.hi	LBB0_10
; %bb.9:
	ldr	x8, [x20]
	add	x0, x8, #16
	b	LBB0_14
LBB0_10:
	ldr	x8, [x20]
	cmp	w21, #47
	b.hi	LBB0_12
; %bb.11:
	add	x0, x8, #12
	b	LBB0_14
LBB0_12:
	mov	x22, x0
	add	x0, x8, #8
	bl	_ioread8
	mov	x8, x0
	ldr	x0, [x20]
	tst	x8, x22
	b.eq	LBB0_14
; %bb.13:
	add	x0, x0, #4
LBB0_14:
	bl	_ioread8
	tst	x0, x19
	cset	w0, ne
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_idio_24_gpio_get
.subsections_via_symbols
