	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bytes                          ## -- Begin function bytes
	.p2align	4, 0x90
_bytes:                                 ## @bytes
	.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	%edx, %ebx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movl	%edx, %edi
	callq	_malloc
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	movslq	%ebx, %r15
	addq	%r14, %r15
	movq	%r13, %rdi
	callq	_getc
	movq	_EOF@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	movq	%r14, %rbx
	cmpl	(%rcx), %eax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.3:
	xorl	%r12d, %r12d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movb	%al, (%rbx)
	incq	%rbx
	cmpq	%r15, %rbx
	cmoveq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	movl	$1, %eax
	cmovel	%eax, %r12d
	movq	%r13, %rdi
	movq	%r13, %r14
	movq	%r15, %r13
	movq	%rcx, %r15
	callq	_getc
	movq	%r15, %rcx
	movq	%r13, %r15
	movq	%r14, %r13
	cmpl	(%rcx), %eax
	jne	LBB0_4
LBB0_5:
	movq	%r13, %rdi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ierr
	movl	$1, %r15d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_37
LBB0_7:
	movq	_rflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_30
## %bb.8:
	leaq	-1(%rbx), %r14
	movl	$0, %r13d
	cmpq	-48(%rbp), %r14                 ## 8-byte Folded Reload
	jae	LBB0_9
LBB0_14:
	testl	%r12d, %r12d
	je	LBB0_15
## %bb.16:
	decq	%r15
	cmpq	%rbx, %r15
	jae	LBB0_18
## %bb.17:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_28
LBB0_30:
	testl	%r12d, %r12d
	je	LBB0_31
## %bb.32:
	subl	%ebx, %r15d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_34
## %bb.33:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_WR
	jmp	LBB0_34
LBB0_9:
	xorl	%r13d, %r13d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	incl	%r13d
	decq	%r14
	cmpq	-48(%rbp), %r14                 ## 8-byte Folded Reload
	jb	LBB0_14
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$10, (%r14)
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	testl	%r13d, %r13d
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	leaq	1(%r14), %rdi
	movl	%r13d, %esi
	callq	_WR
	xorl	%r13d, %r13d
	jmp	LBB0_13
LBB0_15:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	xorl	%r15d, %r15d
	jmp	LBB0_37
LBB0_18:
	xorl	%r12d, %r12d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_19 Depth=1
	xorl	%r13d, %r13d
LBB0_25:                                ##   in Loop: Header=BB0_19 Depth=1
	incl	%r12d
	decq	%r15
	cmpq	%rbx, %r15
	jb	LBB0_26
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$10, (%r15)
	jne	LBB0_25
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	testl	%r12d, %r12d
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	leaq	1(%r15), %rdi
	movl	%r12d, %esi
	callq	_WR
LBB0_22:                                ##   in Loop: Header=BB0_19 Depth=1
	xorl	%r12d, %r12d
	testl	%r13d, %r13d
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_WR
	jmp	LBB0_24
LBB0_26:
	testl	%r12d, %r12d
	je	LBB0_28
## %bb.27:
	incq	%r15
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_WR
LBB0_28:
	xorl	%r15d, %r15d
	testl	%r13d, %r13d
	je	LBB0_37
## %bb.29:
	movq	%r14, %rdi
	movl	%r13d, %esi
	jmp	LBB0_36
LBB0_31:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_34:
	xorl	%r15d, %r15d
	subl	%r14d, %ebx
	je	LBB0_37
## %bb.35:
	movq	%r14, %rdi
	movl	%ebx, %esi
LBB0_36:
	callq	_WR
LBB0_37:
	movq	%r14, %rdi
	callq	_free
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc"

	.comm	_EOF,4,2                        ## @EOF
	.comm	_rflag,8,3                      ## @rflag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bytes                          ; -- Begin function bytes
	.p2align	2
_bytes:                                 ; @bytes
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x2
	bl	_malloc
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	add	x23, x19, w20, sxtw
	mov	x0, x22
	bl	_getc
Lloh2:
	adrp	x25, _EOF@GOTPAGE
Lloh3:
	ldr	x25, [x25, _EOF@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.3:
	mov	w24, #0
	mov	x20, x19
	b	LBB0_6
LBB0_4:
	mov	w24, #0
	mov	x20, x19
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	strb	w0, [x20], #1
	cmp	x20, x23
	csel	x20, x19, x20, eq
	csinc	w24, w24, wzr, ne
	mov	x0, x22
	bl	_getc
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_5
LBB0_6:
	mov	x0, x22
	bl	_ferror
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_ierr
	mov	w20, #1
	b	LBB0_36
LBB0_8:
Lloh4:
	adrp	x8, _rflag@GOTPAGE
Lloh5:
	ldr	x8, [x8, _rflag@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cbz	x8, LBB0_21
; %bb.9:
	sub	x22, x20, #1
	cmp	x22, x19
	b.hs	LBB0_26
; %bb.10:
	mov	w21, #0
LBB0_11:
	cbz	w24, LBB0_35
; %bb.12:
	sub	x22, x23, #1
	cmp	x22, x20
	b.lo	LBB0_32
; %bb.13:
	mov	w1, #0
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	w1, #0
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	w1, w1, #1
	sub	x22, x22, #1
	cmp	x22, x20
	b.lo	LBB0_30
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	ldrb	w8, [x0], #1
	cmp	w8, #10
	b.ne	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	cbz	w1, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	bl	_WR
LBB0_19:                                ;   in Loop: Header=BB0_16 Depth=1
	cbz	w21, LBB0_14
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_WR
	mov	w21, #0
	b	LBB0_14
LBB0_21:
	cbz	w24, LBB0_24
; %bb.22:
	subs	w1, w23, w20
	b.eq	LBB0_24
; %bb.23:
	mov	x0, x20
	bl	_WR
LBB0_24:
	subs	w1, w20, w19
	b.eq	LBB0_35
; %bb.25:
	mov	x0, x19
	b	LBB0_34
LBB0_26:
	mov	w21, #0
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=1
	add	w21, w21, #1
	sub	x22, x22, #1
	cmp	x22, x19
	b.lo	LBB0_11
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	ldrb	w8, [x0], #1
	cmp	w8, #10
	ccmp	w21, #0, #4, eq
	b.eq	LBB0_27
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	mov	x1, x21
	bl	_WR
	mov	w21, #0
	b	LBB0_27
LBB0_30:
	cbz	w1, LBB0_32
; %bb.31:
	add	x0, x22, #1
	bl	_WR
LBB0_32:
	cbz	w21, LBB0_35
; %bb.33:
	mov	x0, x19
	mov	x1, x21
LBB0_34:
	bl	_WR
LBB0_35:
	mov	w20, #0
LBB0_36:
	mov	x0, x19
	bl	_free
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc"

	.comm	_EOF,4,2                        ; @EOF
	.comm	_rflag,8,3                      ; @rflag
.subsections_via_symbols
