	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_byte
_get_byte:                              ## @get_byte
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	8(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	16(%rbx), %rcx
	jmp	LBB0_5
LBB0_2:
	movl	24(%rbx), %edi
	movq	(%rbx), %rsi
	movq	_PKG_BUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_read
	testl	%eax, %eax
	jle	LBB0_3
## %bb.4:
	movl	%eax, 8(%rbx)
	movq	%rbx, %rcx
LBB0_5:
	movq	(%rcx), %rdx
	movl	(%rdx), %ecx
	addq	$4, %rdx
	movq	%rdx, 16(%rbx)
	decl	%eax
	movl	%eax, 8(%rbx)
	incl	(%r14)
LBB0_6:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movl	$-1, %ecx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_PKG_BUFSIZE,4,2                ## @PKG_BUFSIZE
	.no_dead_strip	_get_byte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_byte
_get_byte:                              ; @get_byte
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
	cbz	w0, LBB0_2
; %bb.1:
	add	x8, x20, #16
	b	LBB0_4
LBB0_2:
	ldr	w0, [x20, #24]
	ldr	x1, [x20]
Lloh0:
	adrp	x8, _PKG_BUFSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PKG_BUFSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_read
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.3:
	str	w0, [x20, #8]
	mov	x8, x20
LBB0_4:
	ldr	x9, [x8]
	ldr	w8, [x9], #4
	str	x9, [x20, #16]
	sub	w9, w0, #1
	str	w9, [x20, #8]
	ldr	w9, [x19]
	add	w9, w9, #1
	str	w9, [x19]
LBB0_5:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	w8, #-1
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PKG_BUFSIZE,4,2                ; @PKG_BUFSIZE
	.no_dead_strip	_get_byte
.subsections_via_symbols
