	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_byte
_read_byte:                             ## @read_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, -28(%rbp)
	movq	_buf_eof@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movq	_buf_err@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	orl	(%r14), %eax
	jne	LBB0_7
## %bb.1:
	leaq	-28(%rbp), %rsi
	movl	$1, %edx
	callq	_r_buf_read
	cmpl	$1, %eax
	je	LBB0_6
## %bb.2:
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.4:
	movl	$1, (%r14)
	jmp	LBB0_7
LBB0_6:
	movl	-28(%rbp), %ebx
	jmp	LBB0_7
LBB0_5:
	movl	$1, (%r15)
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_buf_eof,4,2                    ## @buf_eof
	.comm	_buf_err,4,2                    ## @buf_err
	.no_dead_strip	_read_byte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_byte
_read_byte:                             ; @read_byte
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x8, x0
	mov	w0, #0
Lloh0:
	adrp	x20, _buf_eof@GOTPAGE
Lloh1:
	ldr	x20, [x20, _buf_eof@GOTPAGEOFF]
	str	wzr, [sp, #12]
	ldr	w9, [x20]
Lloh2:
	adrp	x19, _buf_err@GOTPAGE
Lloh3:
	ldr	x19, [x19, _buf_err@GOTPAGEOFF]
	ldr	w10, [x19]
	orr	w9, w9, w10
	cbnz	w9, LBB0_8
; %bb.1:
	add	x1, sp, #12
	mov	x0, x8
	mov	w2, #1
	bl	_r_buf_read
	cmp	w0, #1
	b.eq	LBB0_5
; %bb.2:
	cbz	w0, LBB0_6
; %bb.3:
	cmn	w0, #1
	b.ne	LBB0_7
; %bb.4:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_8
LBB0_5:
	ldr	w0, [sp, #12]
	b	LBB0_8
LBB0_6:
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_buf_eof,4,2                    ; @buf_eof
	.comm	_buf_err,4,2                    ; @buf_err
	.no_dead_strip	_read_byte
.subsections_via_symbols
