	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_string
_get_string:                            ## @get_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	leal	1(%rbx), %eax
	movslq	%eax, %r14
	jmp	LBB0_6
LBB0_2:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%r15, %rax
	orq	%r14, %rax
	shrq	$32, %rax
	je	LBB0_3
## %bb.4:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%r14
	jmp	LBB0_5
LBB0_3:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%r14d
                                        ## kill: def $edx killed $edx def $rdx
LBB0_5:
	subq	%rdx, %r14
	movq	_MAXSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r14
	cmovaeq	%rax, %r14
LBB0_6:
	movq	%r14, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%rax, %rcx
	movq	_PIOD_READ_D@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	%r12, %rax
	movq	%rax, -88(%rbp)
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%r12), %r15
	movq	%r15, -104(%rbp)
	movq	%r14, -96(%rbp)
	movq	_PT_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	leaq	-104(%rbp), %rdx
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%ecx, %ecx
	callq	_ptrace
	testq	%rax, %rax
	js	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_memchr
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_MAXSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	%rbx, %rax
	jbe	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	addq	%r14, %r12
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
	cmpq	%r14, %rax
	cmovbq	%rax, %r14
	movq	%rbx, %r15
	addq	%r14, %rbx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_realloc
	testq	%rax, %rax
	jne	LBB0_9
## %bb.16:
	movb	$0, -1(%r15,%r13)
	jmp	LBB0_18
LBB0_7:
	xorl	%r13d, %r13d
	jmp	LBB0_18
LBB0_10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	xorl	%r13d, %r13d
	jmp	LBB0_18
LBB0_12:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_17:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movb	$0, -1(%rbx,%r13)
LBB0_18:
	movq	%r13, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_MAXSIZE,8,3                    ## @MAXSIZE
	.comm	_PIOD_READ_D,4,2                ## @PIOD_READ_D
	.comm	_PT_IO,4,2                      ## @PT_IO
	.no_dead_strip	_get_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_string
_get_string:                            ; @get_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x11, _MAXSIZE@GOTPAGE
Lloh3:
	ldr	x11, [x11, _MAXSIZE@GOTPAGEOFF]
	cbz	w2, LBB0_2
; %bb.1:
	add	w8, w19, #1
	sxtw	x22, w8
	b	LBB0_3
LBB0_2:
	ldr	x8, [x8]
	udiv	x9, x20, x8
	neg	x10, x20
	madd	x9, x9, x8, x10
	ldr	x10, [x11]
	add	x8, x8, x9
	cmp	x8, x10
	csel	x22, x8, x10, lo
LBB0_3:
	mov	x0, x22
	bl	_malloc
	cbz	x0, LBB0_12
; %bb.4:
	mov	x27, #0
Lloh4:
	adrp	x28, _PIOD_READ_D@GOTPAGE
Lloh5:
	ldr	x28, [x28, _PIOD_READ_D@GOTPAGEOFF]
Lloh6:
	adrp	x25, _PT_IO@GOTPAGE
Lloh7:
	ldr	x25, [x25, _PT_IO@GOTPAGEOFF]
	mov	x24, x22
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x26, x24
	mov	x23, x0
	ldr	w8, [x28]
	str	w8, [sp, #24]
	add	x8, x27, x20
	stp	x22, x8, [sp, #8]
	add	x24, x0, x27
	str	x24, [sp]
	ldr	w0, [x25]
	mov	x2, sp
	mov	x1, x21
	mov	w3, #0
	bl	_ptrace
	tbnz	x0, #63, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	mov	w1, #0
	mov	x2, x22
	bl	_memchr
	cbnz	x0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh8:
	adrp	x8, _MAXSIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAXSIZE@GOTPAGEOFF]
	cbnz	w19, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x8]
	subs	x8, x8, x26
	b.ls	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x22, x27
Lloh10:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x22, x8, x9, lo
	add	x24, x22, x26
	mov	x0, x23
	mov	x1, x24
	bl	_realloc
	cbnz	x0, LBB0_5
LBB0_10:
	add	x8, x26, x23
	sturb	wzr, [x8, #-1]
	b	LBB0_13
LBB0_11:
	mov	x0, x23
	bl	_free
LBB0_12:
	mov	x23, #0
LBB0_13:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_MAXSIZE,8,3                    ; @MAXSIZE
	.comm	_PIOD_READ_D,4,2                ; @PIOD_READ_D
	.comm	_PT_IO,4,2                      ; @PT_IO
	.no_dead_strip	_get_string
.subsections_via_symbols
