	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_str
_read_str:                              ## @read_str
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	testq	%rdi, %rdi
	setne	%al
	testq	%rdx, %rdx
	setne	%cl
	andb	%al, %cl
	testq	%r13, %r13
	setne	%al
	andb	%cl, %al
	movzbl	%al, %edi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_r_return_val_if_fail
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_va2pa
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	(%r13), %esi
	cmpl	$2, %esi
	jl	LBB0_4
## %bb.2:
	movq	%rax, %r12
	movq	_MAX_CLASS_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_R_MIN
	movl	%eax, %ebx
	leal	1(%rbx), %esi
	movl	$1, %edi
	callq	_calloc
	movq	%rax, %r15
	movl	(%r14), %edi
	movq	%r12, %rsi
	movq	%rax, %rdx
	movl	%ebx, %ecx
	callq	_r_buf_read_at
	cmpl	%ebx, %eax
	jge	LBB0_5
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_eprintf
	movq	%r15, %rdi
	callq	_R_FREE
LBB0_4:
	xorl	%r15d, %r15d
LBB0_5:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_CLASS_NAME_LEN,4,2         ## @MAX_CLASS_NAME_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error reading\n"

	.no_dead_strip	_read_str
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_str
_read_str:                              ; @read_str
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	cmp	x0, #0
	ccmp	x2, #0, #4, ne
	ccmp	x3, #0, #4, ne
	cset	w0, ne
	mov	x1, #0
	bl	_r_return_val_if_fail
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_va2pa
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w1, [x20]
	cmp	w1, #2
	b.lt	LBB0_4
; %bb.2:
	mov	x21, x0
Lloh0:
	adrp	x8, _MAX_CLASS_NAME_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_CLASS_NAME_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_R_MIN
	mov	x22, x0
	add	w1, w0, #1
	mov	w0, #1
	bl	_calloc
	mov	x20, x0
	ldr	w0, [x19]
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	bl	_r_buf_read_at
	cmp	w0, w22
	b.ge	LBB0_5
; %bb.3:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_eprintf
	mov	x0, x20
	bl	_R_FREE
LBB0_4:
	mov	x20, #0
LBB0_5:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_CLASS_NAME_LEN,4,2         ; @MAX_CLASS_NAME_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error reading\n"

	.no_dead_strip	_read_str
.subsections_via_symbols
