	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_read_string
_do_read_string:                        ## @do_read_string
	.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
	movq	%rsi, %rbx
	movl	%edi, %r14d
	leaq	-25(%rbp), %rsi
	movl	$1, %edx
	callq	_read
	testq	%rax, %rax
	jle	LBB0_6
## %bb.1:
	cmpq	$0, (%rbx)
	movb	-25(%rbp), %al
	je	LBB0_3
## %bb.2:
	movsbl	%al, %edi
	callq	_bswap_32
LBB0_3:
	movsbl	%al, %r15d
	movl	%r15d, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rax, %rbx
	movl	%r14d, %edi
	movq	%rax, %rsi
	movl	%r15d, %edx
	callq	_read
	movsbq	%r15b, %rcx
	cmpq	%rcx, %rax
	je	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_free
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_do_read_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_read_string
_do_read_string:                        ; @do_read_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	add	x1, sp, #15
	mov	w2, #1
	bl	_read
	cmp	x0, #1
	b.lt	LBB0_6
; %bb.1:
	ldr	x8, [x20]
	ldrb	w20, [sp, #15]
	cbz	x8, LBB0_3
; %bb.2:
	sxtb	w0, w20
	bl	_bswap_32
	mov	x20, x0
LBB0_3:
	sxtb	w22, w20
	mov	x0, x22
	bl	_malloc
	mov	x21, x0
	cbz	x0, LBB0_7
; %bb.4:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_read
	cmp	x0, w20, sxtb
	b.eq	LBB0_7
; %bb.5:
	mov	x0, x21
	bl	_free
LBB0_6:
	mov	x21, #0
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_do_read_string
.subsections_via_symbols
