	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function savebyte
_savebyte:                              ## @savebyte
	.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
	movl	%edi, %ebx
	movq	_queuelen@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	_queuesize@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	cmpq	%rsi, %rcx
	jge	LBB0_2
## %bb.1:
	movq	_queue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_4
LBB0_2:
	subq	$-128, %rsi
	movq	%rsi, (%rax)
	movq	_queue@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_realloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movq	(%r14), %rcx
LBB0_4:
	leaq	1(%rcx), %rdx
	movq	%rdx, (%r14)
	movb	%bl, (%rax,%rcx)
	movsbl	%bl, %eax
	cmpl	$9, %eax
	je	LBB0_9
## %bb.5:
	cmpl	$10, %eax
	je	LBB0_6
## %bb.7:
	cmpl	$32, %eax
	jne	LBB0_11
## %bb.8:
	movq	_column@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	jmp	LBB0_10
LBB0_9:
	movq	_column@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	7(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	andl	$-8, %eax
	addl	$8, %eax
	jmp	LBB0_10
LBB0_6:
	xorl	%eax, %eax
LBB0_10:
	movq	_column@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	_savebyte.cold.1
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function savebyte.cold.1
_savebyte.cold.1:                       ## @savebyte.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str(%rip), %rdi
	callq	_perror
	pushq	$1
	popq	%rdi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_queuelen,8,3                   ## @queuelen
	.comm	_queuesize,8,3                  ## @queuesize
	.comm	_queue,8,3                      ## @queue
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc"

	.comm	_column,4,2                     ## @column
	.no_dead_strip	_savebyte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function savebyte
_savebyte:                              ; @savebyte
	.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	x19, x0
Lloh0:
	adrp	x20, _queuelen@GOTPAGE
Lloh1:
	ldr	x20, [x20, _queuelen@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _queuesize@GOTPAGE
Lloh3:
	ldr	x9, [x9, _queuesize@GOTPAGEOFF]
	ldr	x10, [x9]
	cmp	x8, x10
	b.ge	LBB0_2
; %bb.1:
Lloh4:
	adrp	x9, _queue@GOTPAGE
Lloh5:
	ldr	x9, [x9, _queue@GOTPAGEOFF]
Lloh6:
	ldr	x0, [x9]
	b	LBB0_4
LBB0_2:
	add	x1, x10, #128
	str	x1, [x9]
Lloh7:
	adrp	x21, _queue@GOTPAGE
Lloh8:
	ldr	x21, [x21, _queue@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_realloc
	str	x0, [x21]
	cbz	x0, LBB0_12
; %bb.3:
	ldr	x8, [x20]
LBB0_4:
	add	x9, x8, #1
	str	x9, [x20]
	strb	w19, [x0, x8]
Lloh9:
	adrp	x8, _column@GOTPAGE
Lloh10:
	ldr	x8, [x8, _column@GOTPAGEOFF]
	cmp	w19, #9
	b.eq	LBB0_9
; %bb.5:
	cmp	w19, #10
	b.eq	LBB0_8
; %bb.6:
	cmp	w19, #32
	b.ne	LBB0_11
; %bb.7:
	ldr	w9, [x8]
	add	w9, w9, #1
	b	LBB0_10
LBB0_8:
	mov	w9, #0
	b	LBB0_10
LBB0_9:
	ldr	w9, [x8]
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	and	w9, w9, #0xfffffff8
	add	w9, w9, #8
LBB0_10:
	str	w9, [x8]
LBB0_11:
	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
LBB0_12:
	bl	_savebyte.cold.1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function savebyte.cold.1
_savebyte.cold.1:                       ; @savebyte.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_queuelen,8,3                   ; @queuelen
	.comm	_queuesize,8,3                  ; @queuesize
	.comm	_queue,8,3                      ; @queue
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc"

	.comm	_column,4,2                     ; @column
	.no_dead_strip	_savebyte
.subsections_via_symbols
