	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_io
_parse_io:                              ## @parse_io
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpq	%rsi, %rdi
	je	LBB0_45
## %bb.1:
	movq	%rdi, %rax
	movl	(%rdi), %ecx
	movl	%ecx, (%rdx)
	testb	$-128, (%rdi)
	jne	LBB0_4
## %bb.2:
	movl	$1, 4(%rdx)
	movq	8(%rdx), %rdx
	movq	$0, 8(%rdx)
	movq	_CISTPL_IO_LINES_MASK@GOTPCREL(%rip), %rsi
	andl	(%rsi), %ecx
	movl	$1, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	movl	%esi, (%rdx)
	addq	$4, %rax
	jmp	LBB0_46
LBB0_4:
	leaq	4(%rax), %rcx
	cmpq	%rsi, %rcx
	je	LBB0_45
## %bb.5:
	movl	4(%rax), %r10d
	andl	$15, %r10d
	leal	1(%r10), %ecx
	movl	%ecx, 4(%rdx)
	movl	4(%rax), %r9d
	movl	%r9d, %r8d
	shrl	$4, %r8d
	andl	$3, %r8d
	cmpl	$3, %r8d
	movl	$4, %r11d
	movl	%r8d, %r14d
	cmovel	%r11d, %r14d
	shrl	$6, %r9d
	andl	$3, %r9d
	cmpl	$3, %r9d
	cmovnel	%r9d, %r11d
	addq	$8, %rax
	movq	8(%rdx), %rdx
	shlq	$4, %r10
	addq	$16, %r10
	xorl	%edi, %edi
	movq	%rax, %rbx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	%rcx, %rbx
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	addq	$16, %rdi
	movq	%rbx, %rax
	cmpq	%rdi, %r10
	je	LBB0_46
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, 8(%rdx,%rdi)
	movl	$1, (%rdx,%rdi)
	testl	%r14d, %r14d
	je	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%rsi, %rbx
	je	LBB0_45
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	4(%rbx), %rcx
	movslq	(%rbx), %rax
	movq	%rax, 8(%rdx,%rdi)
	cmpl	$1, %r14d
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%rsi, %rcx
	je	LBB0_45
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	4(%rbx), %ecx
	shll	$8, %ecx
	movslq	%ecx, %rcx
	addq	%rcx, %rax
	leaq	8(%rbx), %rcx
	movq	%rax, 8(%rdx,%rdi)
	cmpl	$2, %r14d
	jne	LBB0_15
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rcx, %rbx
	testl	%r11d, %r11d
	jne	LBB0_20
	jmp	LBB0_7
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%rsi, %rcx
	je	LBB0_45
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	8(%rbx), %ecx
	shll	$16, %ecx
	movslq	%ecx, %rcx
	addq	%rcx, %rax
	movq	%rax, 8(%rdx,%rdi)
	leaq	12(%rbx), %rcx
	cmpq	%rsi, %rcx
	je	LBB0_45
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	12(%rbx), %ecx
	shll	$24, %ecx
	movslq	%ecx, %rcx
	addq	%rcx, %rax
	leaq	16(%rbx), %rcx
	movq	%rax, 8(%rdx,%rdi)
	cmpl	$3, %r8d
	jne	LBB0_29
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rcx, %rbx
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=1
	testl	%r11d, %r11d
	je	LBB0_7
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%rsi, %rbx
	je	LBB0_45
## %bb.21:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	(%rbx), %eax
	incl	%eax
	leaq	4(%rbx), %rcx
	movl	%eax, (%rdx,%rdi)
	cmpl	$1, %r11d
	je	LBB0_6
## %bb.22:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%rsi, %rcx
	je	LBB0_45
## %bb.23:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	4(%rbx), %ecx
	shll	$8, %ecx
	addl	%ecx, %eax
	leaq	8(%rbx), %rcx
	movl	%eax, (%rdx,%rdi)
	cmpl	$2, %r11d
	je	LBB0_6
## %bb.25:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%rsi, %rcx
	je	LBB0_45
## %bb.26:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	8(%rbx), %ecx
	shll	$16, %ecx
	addl	%ecx, %eax
	movl	%eax, (%rdx,%rdi)
	leaq	12(%rbx), %rcx
	cmpq	%rsi, %rcx
	je	LBB0_45
## %bb.27:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	12(%rbx), %ecx
	shll	$24, %ecx
	addl	%ecx, %eax
	leaq	16(%rbx), %rcx
	movl	%eax, (%rdx,%rdi)
	cmpl	$3, %r9d
	je	LBB0_6
## %bb.33:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%rsi, %rcx
	je	LBB0_45
## %bb.34:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	20(%rbx), %rax
	cmpq	%rsi, %rax
	je	LBB0_45
## %bb.35:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	24(%rbx), %rcx
	movl	$0, %eax
	cmpq	%rsi, %rcx
	je	LBB0_46
## %bb.36:                              ##   in Loop: Header=BB0_8 Depth=1
	addq	$28, %rbx
	jmp	LBB0_7
LBB0_29:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%rsi, %rcx
	je	LBB0_45
## %bb.30:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	20(%rbx), %rax
	cmpq	%rsi, %rax
	je	LBB0_45
## %bb.31:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	24(%rbx), %rcx
	movl	$0, %eax
	cmpq	%rsi, %rcx
	je	LBB0_46
## %bb.32:                              ##   in Loop: Header=BB0_8 Depth=1
	addq	$28, %rbx
	testl	%r11d, %r11d
	jne	LBB0_20
	jmp	LBB0_7
LBB0_45:
	xorl	%eax, %eax
LBB0_46:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CISTPL_IO_LINES_MASK,4,2       ## @CISTPL_IO_LINES_MASK
	.no_dead_strip	_parse_io
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_io
_parse_io:                              ; @parse_io
	.cfi_startproc
; %bb.0:
	cmp	x0, x1
	b.eq	LBB0_32
; %bb.1:
	ldr	w8, [x0]
	str	w8, [x2]
	ldrb	w9, [x0]
	tbnz	w9, #7, LBB0_3
; %bb.2:
	mov	w9, #1
	str	w9, [x2, #4]
	ldr	x10, [x2, #8]
Lloh0:
	adrp	x11, _CISTPL_IO_LINES_MASK@GOTPAGE
Lloh1:
	ldr	x11, [x11, _CISTPL_IO_LINES_MASK@GOTPAGEOFF]
	str	xzr, [x10, #8]
Lloh2:
	ldr	w11, [x11]
	and	w8, w11, w8
	lsl	w8, w9, w8
	str	w8, [x10]
	add	x0, x0, #4
	ret
LBB0_3:
	add	x8, x0, #4
	cmp	x8, x1
	b.eq	LBB0_32
; %bb.4:
	ldr	w8, [x0, #4]
	and	x8, x8, #0xf
	add	x8, x8, #1
	str	w8, [x2, #4]
	ldr	w11, [x0, #4]
	ubfx	w9, w11, #4, #2
	mov	w12, #4
	cmp	w9, #3
	csel	w10, w12, w9, eq
	ubfx	w11, w11, #6, #2
	cmp	w11, #3
	csel	w12, w12, w11, eq
	add	x15, x0, #8
	ldr	x13, [x2, #8]
	add	x13, x13, #8
	mov	w14, #1
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x15, x16
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x13, x13, #16
	mov	x0, x15
	subs	x8, x8, #1
	b.eq	LBB0_33
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [x13]
	stur	w14, [x13, #-8]
	cbz	w10, LBB0_19
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	x15, x1
	b.eq	LBB0_32
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x16, x15
	ldrsw	x17, [x16], #4
	str	x17, [x13]
	cmp	w10, #1
	b.eq	LBB0_20
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	x16, x1
	b.eq	LBB0_32
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w16, [x15, #4]
	lsl	w16, w16, #8
	add	x17, x17, w16, sxtw
	str	x17, [x13]
	add	x16, x15, #8
	cmp	w10, #2
	b.eq	LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	x16, x1
	b.eq	LBB0_32
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w16, [x15, #8]
	lsl	w16, w16, #16
	add	x16, x17, w16, sxtw
	str	x16, [x13]
	add	x17, x15, #12
	cmp	x17, x1
	b.eq	LBB0_32
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w17, [x15, #12]
	lsl	w17, w17, #24
	add	x16, x16, w17, sxtw
	str	x16, [x13]
	add	x16, x15, #16
	cmp	w9, #3
	b.eq	LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, #0
	cmp	x16, x1
	b.eq	LBB0_33
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x16, x15, #20
	cmp	x16, x1
	b.eq	LBB0_33
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x16, x15, #24
	cmp	x16, x1
	b.eq	LBB0_33
; %bb.18:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x16, x15, #28
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x16, x15
LBB0_20:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w12, LBB0_5
; %bb.21:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	x16, x1
	b.eq	LBB0_32
; %bb.22:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x15, x16
	ldr	w17, [x15], #4
	add	w17, w17, #1
	stur	w17, [x13, #-8]
	cmp	w12, #1
	b.eq	LBB0_6
; %bb.23:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	x15, x1
	b.eq	LBB0_32
; %bb.24:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w15, [x16, #4]
	add	w17, w17, w15, lsl #8
	stur	w17, [x13, #-8]
	add	x15, x16, #8
	cmp	w12, #2
	b.eq	LBB0_6
; %bb.25:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	x15, x1
	b.eq	LBB0_32
; %bb.26:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w15, [x16, #8]
	add	w15, w17, w15, lsl #16
	stur	w15, [x13, #-8]
	add	x17, x16, #12
	cmp	x17, x1
	b.eq	LBB0_32
; %bb.27:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w17, [x16, #12]
	add	w15, w15, w17, lsl #24
	stur	w15, [x13, #-8]
	add	x15, x16, #16
	cmp	w11, #3
	b.eq	LBB0_6
; %bb.28:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, #0
	cmp	x15, x1
	b.eq	LBB0_33
; %bb.29:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x15, x16, #20
	cmp	x15, x1
	b.eq	LBB0_33
; %bb.30:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x15, x16, #24
	cmp	x15, x1
	b.eq	LBB0_33
; %bb.31:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x15, x16, #28
	b	LBB0_6
LBB0_32:
	mov	x0, #0
	ret
LBB0_33:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CISTPL_IO_LINES_MASK,4,2       ; @CISTPL_IO_LINES_MASK
	.no_dead_strip	_parse_io
.subsections_via_symbols
