	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function c_readstr
_c_readstr:                             ## @c_readstr
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%esi, %edi
	callq	_GET_MODE_CLASS
	movq	_MODE_INT@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_gcc_assert
	movq	$0, -56(%rbp)
	movl	%r15d, %edi
	callq	_GET_MODE_SIZE
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	$1, %r14d
	xorl	%r12d, %r12d
	movq	_WORDS_BIG_ENDIAN@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_BITS_PER_UNIT@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	movl	(%r13), %eax
	addl	%eax, %eax
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	setbe	%dil
	callq	_gcc_assert
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movzbl	(%rax,%r12), %r14d
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	(%r13)
                                        ## kill: def $eax killed $eax def $rax
	movl	%edx, %ecx
	movl	%r14d, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	orl	%edx, -56(%rbp,%rax,4)
	incq	%r12
	movl	%r15d, %edi
	callq	_GET_MODE_SIZE
	movl	%eax, %eax
	cmpq	%rax, %r12
	movq	_WORDS_BIG_ENDIAN@GOTPCREL(%rip), %r13
	jae	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r13)
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %edi
	callq	_GET_MODE_SIZE
	movl	%r12d, %ebx
	notl	%ebx
	addl	%eax, %ebx
	movq	(%r13), %rax
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	movl	%r12d, %ebx
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_HOST_BITS_PER_WIDE_INT@GOTPCREL(%rip), %r13
	movq	_BYTES_BIG_ENDIAN@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %edi
	callq	_GET_MODE_SIZE
	movq	_UNITS_PER_WORD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jbe	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	addl	%ecx, %ebx
	addl	%edx, %edx
	notl	%edx
	addl	%edx, %ebx
	jmp	LBB0_9
LBB0_13:
	movl	-56(%rbp), %edi
	movl	-52(%rbp), %esi
	jmp	LBB0_14
LBB0_1:
	xorl	%esi, %esi
	xorl	%edi, %edi
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.16:
	movl	%r15d, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_immed_double_const             ## TAILCALL
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_INT,8,3                   ## @MODE_INT
	.comm	_WORDS_BIG_ENDIAN,8,3           ## @WORDS_BIG_ENDIAN
	.comm	_BYTES_BIG_ENDIAN,8,3           ## @BYTES_BIG_ENDIAN
	.comm	_UNITS_PER_WORD,4,2             ## @UNITS_PER_WORD
	.comm	_BITS_PER_UNIT,4,2              ## @BITS_PER_UNIT
	.comm	_HOST_BITS_PER_WIDE_INT,4,2     ## @HOST_BITS_PER_WIDE_INT
	.no_dead_strip	_c_readstr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function c_readstr
_c_readstr:                             ; @c_readstr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_GET_MODE_CLASS
Lloh0:
	adrp	x8, _MODE_INT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MODE_INT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_gcc_assert
	str	xzr, [sp, #8]
	mov	x0, x19
	bl	_GET_MODE_SIZE
	cbz	w0, LBB0_12
; %bb.1:
	mov	x21, #0
	mov	w24, #1
Lloh3:
	adrp	x22, _WORDS_BIG_ENDIAN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _WORDS_BIG_ENDIAN@GOTPAGEOFF]
Lloh5:
	adrp	x23, _BYTES_BIG_ENDIAN@GOTPAGE
Lloh6:
	ldr	x23, [x23, _BYTES_BIG_ENDIAN@GOTPAGEOFF]
Lloh7:
	adrp	x25, _BITS_PER_UNIT@GOTPAGE
Lloh8:
	ldr	x25, [x25, _BITS_PER_UNIT@GOTPAGEOFF]
Lloh9:
	adrp	x26, _HOST_BITS_PER_WIDE_INT@GOTPAGE
Lloh10:
	ldr	x26, [x26, _HOST_BITS_PER_WIDE_INT@GOTPAGEOFF]
	add	x27, sp, #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x26]
	udiv	w9, w28, w8
	msub	w8, w9, w8, w28
	lsl	w8, w24, w8
	lsl	x9, x9, #2
	ldr	w10, [x27, x9]
	orr	w8, w10, w8
	str	w8, [x27, x9]
	add	x21, x21, #1
	mov	x0, x19
	bl	_GET_MODE_SIZE
	cmp	x21, w0, uxtw
	b.hs	LBB0_11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	cbz	x8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_GET_MODE_SIZE
	mvn	w8, w21
	add	w28, w0, w8
	ldr	x8, [x22]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, x21
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x23]
	cmp	x9, x8
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_GET_MODE_SIZE
Lloh11:
	adrp	x8, _UNITS_PER_WORD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _UNITS_PER_WORD@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ls	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	udiv	w9, w28, w8
	msub	w9, w9, w8, w28
	mov	w10, #-1
	eor	w9, w10, w9, lsl #1
	add	w8, w28, w8
	add	w28, w9, w8
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x25]
	mul	w28, w8, w28
	ldr	w8, [x26]
	cmp	w28, w8, lsl #1
	cset	w0, ls
	bl	_gcc_assert
	cbz	w24, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w24, [x20, x21]
	b	LBB0_2
LBB0_11:
	ldp	w0, w1, [sp, #8]
	b	LBB0_13
LBB0_12:
	mov	w1, #0
LBB0_13:
	mov	x2, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_immed_double_const
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_INT,8,3                   ; @MODE_INT
	.comm	_WORDS_BIG_ENDIAN,8,3           ; @WORDS_BIG_ENDIAN
	.comm	_BYTES_BIG_ENDIAN,8,3           ; @BYTES_BIG_ENDIAN
	.comm	_UNITS_PER_WORD,4,2             ; @UNITS_PER_WORD
	.comm	_BITS_PER_UNIT,4,2              ; @BITS_PER_UNIT
	.comm	_HOST_BITS_PER_WIDE_INT,4,2     ; @HOST_BITS_PER_WIDE_INT
	.no_dead_strip	_c_readstr
.subsections_via_symbols
