	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_lines
_alloc_lines:                           ## @alloc_lines
	.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
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r13
	movl	$1, (%rdi)
	movl	%edx, 4(%rdi)
	leal	(%rsi,%rsi), %eax
	addl	$32, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movslq	%esi, %r15
	addq	$16, %r15
	movq	8(%rdi), %rax
	movl	(%rax), %r14d
	xorl	%edi, %edi
	cmpl	48(%rax), %r14d
	sete	%dil
	callq	_av_assert0
	testl	%r14d, %r14d
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	movq	%r14, %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	incq	%r12
	cmpq	%rbx, %r14
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_av_malloc
	movq	8(%r13), %rcx
	movq	8(%rcx), %rdx
	movq	%rax, (%rdx,%rbx,8)
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	%r15, %rax
	movq	56(%rcx), %rsi
	movq	%rax, (%rsi,%rbx,8)
	cmpq	$0, 16(%r13)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rdx,%rbx,8), %rax
	movq	%rax, (%rdx,%r12,8)
	movq	(%rsi,%rbx,8), %rax
	movq	%rax, (%rsi,%r12,8)
	jmp	LBB0_6
LBB0_1:
	movq	8(%r13), %rcx
LBB0_7:
	movl	16(%rcx), %r12d
	xorl	%edi, %edi
	cmpl	32(%rcx), %r12d
	sete	%dil
	callq	_av_assert0
	testl	%r12d, %r12d
	jle	LBB0_13
## %bb.8:
	shlq	$3, %r12
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	$8, %rbx
	cmpq	%rbx, %r12
	je	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_av_malloc
	movq	8(%r13), %rdx
	movq	24(%rdx), %rcx
	movq	%rax, (%rcx,%rbx)
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	addq	%r15, %rax
	movq	40(%rdx), %rdx
	movq	%rax, (%rdx,%rbx)
	cmpq	$0, 16(%r13)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%rcx,%rbx), %rax
	addq	%r12, %rcx
	movq	%rax, (%rbx,%rcx)
	movq	(%rdx,%rbx), %rax
	addq	%r12, %rdx
	movq	%rax, (%rbx,%rdx)
	jmp	LBB0_12
LBB0_14:
	movq	%r13, %rdi
	callq	_free_lines
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_13:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_alloc_lines
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_lines
_alloc_lines:                           ; @alloc_lines
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	mov	w8, #1
	stp	w8, w2, [x0]
	lsl	w8, w1, #1
	add	w20, w8, #32
	sxtw	x8, w1
	add	x21, x8, #16
	ldr	x8, [x0, #8]
	ldr	w23, [x8]
	ldr	w8, [x8, #48]
	cmp	w23, w8
	cset	w0, eq
	bl	_av_assert0
	cmp	w23, #0
	b.le	LBB0_6
; %bb.1:
	mov	x22, #0
	lsl	x23, x23, #3
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #8
	cmp	x23, x22
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_av_malloc
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #8]
	str	x0, [x9, x22]
	cbz	x0, LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x11, x21, x0
	ldr	x10, [x8, #56]
	str	x11, [x10, x22]
	ldr	x11, [x19, #16]
	cbz	x11, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x9, x22]
	add	x9, x9, x23
	str	x11, [x9, x22]
	ldr	x9, [x10, x22]
	add	x10, x10, x23
	str	x9, [x10, x22]
	b	LBB0_2
LBB0_6:
	ldr	x8, [x19, #8]
LBB0_7:
	ldr	w23, [x8, #16]
	ldr	w8, [x8, #32]
	cmp	w23, w8
	cset	w0, eq
	bl	_av_assert0
	cmp	w23, #1
	b.lt	LBB0_14
; %bb.8:
	mov	x22, #0
	lsl	x23, x23, #3
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x22, x22, #8
	cmp	x23, x22
	b.eq	LBB0_14
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_av_malloc
	ldr	x9, [x19, #8]
	ldr	x8, [x9, #24]
	str	x0, [x8, x22]
	cbz	x0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x10, x21, x0
	ldr	x9, [x9, #40]
	str	x10, [x9, x22]
	ldr	x10, [x19, #16]
	cbz	x10, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x10, [x8, x22]
	add	x8, x8, x23
	str	x10, [x8, x22]
	ldr	x8, [x9, x22]
	add	x9, x9, x23
	str	x8, [x9, x22]
	b	LBB0_9
LBB0_13:
	mov	x0, x19
	bl	_free_lines
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_14:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_alloc_lines
.subsections_via_symbols
