	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idi_48_gpio_get
_idi_48_gpio_get:                       ## @idi_48_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	callq	_gpiochip_get_data
	movq	%rax, %r14
	xorl	%ecx, %ecx
	cmpl	$8, %r15d
	jb	LBB0_6
## %bb.1:
	movl	$8, %ecx
	cmpl	$16, %r15d
	jb	LBB0_6
## %bb.2:
	movl	$16, %ecx
	cmpl	$24, %r15d
	jb	LBB0_6
## %bb.3:
	movl	$24, %ecx
	cmpl	$32, %r15d
	jb	LBB0_6
## %bb.4:
	movl	$32, %ecx
	cmpl	$40, %r15d
	jb	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	movl	$40, %ecx
	cmpl	$47, %r15d
	ja	LBB0_7
LBB0_6:
	subl	%ecx, %r15d
	shrl	$3, %ecx
	leaq	l___const.idi_48_gpio_get.register_offset(%rip), %rax
	movl	(%rax,%rcx,4), %ebx
	movl	%r15d, %edi
	callq	_BIT
	movl	%eax, %r15d
	addq	(%r14), %rbx
	movq	%rbx, %rdi
	callq	_inb
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%r15d, %ecx
	setne	%al
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.idi_48_gpio_get.register_offset
l___const.idi_48_gpio_get.register_offset:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	4                               ## 0x4
	.long	5                               ## 0x5
	.long	6                               ## 0x6

	.no_dead_strip	_idi_48_gpio_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idi_48_gpio_get
_idi_48_gpio_get:                       ; @idi_48_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	x19, x1
	bl	_gpiochip_get_data
	mov	x20, x0
	cmp	w19, #8
	b.hs	LBB0_2
; %bb.1:
	mov	w8, #0
	b	LBB0_12
LBB0_2:
	cmp	w19, #16
	b.hs	LBB0_4
; %bb.3:
	mov	w8, #8
	b	LBB0_12
LBB0_4:
	cmp	w19, #24
	b.hs	LBB0_6
; %bb.5:
	mov	w8, #16
	b	LBB0_12
LBB0_6:
	cmp	w19, #32
	b.hs	LBB0_8
; %bb.7:
	mov	w8, #24
	b	LBB0_12
LBB0_8:
	cmp	w19, #40
	b.hs	LBB0_10
; %bb.9:
	mov	w8, #32
	b	LBB0_12
LBB0_10:
	cmp	w19, #47
	b.hi	LBB0_14
; %bb.11:
	mov	w8, #40
LBB0_12:
	lsr	w9, w8, #3
Lloh0:
	adrp	x10, l___const.idi_48_gpio_get.register_offset@PAGE
Lloh1:
	add	x10, x10, l___const.idi_48_gpio_get.register_offset@PAGEOFF
	ldr	w21, [x10, w9, uxtw #2]
	sub	w0, w19, w8
	bl	_BIT
	mov	x19, x0
	ldr	x8, [x20]
	add	x0, x8, x21
	bl	_inb
	tst	w0, w19
	cset	w0, ne
LBB0_13:
	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
LBB0_14:
	mov	w0, #0
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.idi_48_gpio_get.register_offset
l___const.idi_48_gpio_get.register_offset:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	4                               ; 0x4
	.long	5                               ; 0x5
	.long	6                               ; 0x6

	.no_dead_strip	_idi_48_gpio_get
.subsections_via_symbols
