	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_pattern_from_file
_init_pattern_from_file:                ## @init_pattern_from_file
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r8
	movq	(%rdi), %r13
	movq	40(%r13), %rdi
	leaq	8(%r13), %r14
	xorl	%r12d, %r12d
	movq	%r13, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	callq	_av_file_map
	testl	%eax, %eax
	js	LBB0_22
## %bb.1:
	leaq	40(%r13), %rdi
	callq	_av_freep
	movl	(%r14), %eax
	movl	$0, %r15d
	testl	%eax, %eax
	jle	LBB0_7
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%edi
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rcx
	cmpb	$10, (%rcx,%rbx)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%r12d
	movl	%r15d, %esi
	callq	_FFMAX
	movl	%eax, %r15d
	movl	(%r14), %eax
	xorl	%edi, %edi
	jmp	LBB0_6
LBB0_7:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_av_log
	movl	12(%r13), %ecx
	testl	%ecx, %ecx
	je	LBB0_12
## %bb.8:
	movl	16(%r13), %r8d
	cmpl	%ecx, %r15d
	jg	LBB0_10
## %bb.9:
	cmpl	%r8d, %r12d
	jle	LBB0_13
LBB0_10:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, (%rsp)
	leaq	L_.str.1(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %r9d
	xorl	%eax, %eax
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_12:
	movl	%r15d, 12(%r13)
	movl	%r12d, 16(%r13)
	movl	%r15d, %ecx
	movl	%r12d, %r8d
LBB0_13:
	imull	%r8d, %ecx
	movl	%ecx, %edi
	movl	$4, %esi
	callq	_av_calloc
	movq	32(%r13), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movl	12(%r13), %edi
	imull	16(%r13), %edi
	movl	$4, %esi
	callq	_av_calloc
	movq	32(%r13), %rcx
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	testl	%r12d, %r12d
	jle	LBB0_21
## %bb.17:
	movl	16(%r13), %eax
	subl	%r12d, %eax
	movl	%eax, %ebx
	shrl	$31, %ebx
	addl	%eax, %ebx
	sarl	%ebx
	movq	(%r13), %r15
	xorl	%eax, %eax
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%r15, %r14
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%r14
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	incl	%ebx
	movq	%r14, %r15
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	cmpl	%r12d, %eax
	je	LBB0_21
LBB0_18:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_24 Depth 2
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	12(%r13), %eax
	subl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, %r12d
	shrl	$31, %r12d
	addl	%eax, %r12d
	sarl	%r12d
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	(%r15), %eax
	cmpb	$10, %al
	movl	$78, %ecx
	cmovel	%ecx, %eax
	movsbl	%al, %r9d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rdx
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_av_log
	movb	(%r15), %al
	cmpb	$10, %al
	je	LBB0_19
## %bb.23:                              ##   in Loop: Header=BB0_18 Depth=1
	movslq	%r12d, %r12
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_24 Depth=2
	leaq	1(%r15), %r14
	movq	32(%r13), %rax
	movq	(%rax), %rax
	movslq	12(%r13), %rdx
	movslq	%ebx, %rsi
	imulq	%rdx, %rsi
	addq	%r12, %rsi
	movl	%ecx, (%rax,%rsi,4)
	incq	%r12
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	1(%r15), %eax
	cmpb	$10, %al
	movl	$78, %ecx
	cmovel	%ecx, %eax
	movsbl	%al, %r9d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rdx
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_av_log
	movzbl	1(%r15), %eax
	movq	%r14, %r15
	cmpb	$10, %al
	je	LBB0_20
LBB0_24:                                ##   Parent Loop BB0_18 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	%al, %edi
	callq	_av_isgraph
	movl	$0, %ecx
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=2
	movq	_ALIVE_CELL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_26
LBB0_15:
	movq	32(%r13), %rdi
	callq	_av_freep
	movq	32(%r13), %rdi
	addq	$8, %rdi
	callq	_av_freep
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_21:
	movq	$0, 24(%r13)
	xorl	%eax, %eax
LBB0_22:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"h:%d max_w:%d\n"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"The specified size is %dx%d which cannot contain the provided file size of %dx%d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"%d:%d %c\n"

	.comm	_ALIVE_CELL,4,2                 ## @ALIVE_CELL
	.no_dead_strip	_init_pattern_from_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_pattern_from_file
_init_pattern_from_file:                ; @init_pattern_from_file
	.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, x0
	ldr	x20, [x0]
	mov	x21, x20
	ldr	x0, [x21, #40]!
	add	x23, x20, #8
	mov	x1, x20
	mov	x2, x23
	mov	w3, #0
	mov	x4, x19
	bl	_av_file_map
	tbnz	w0, #31, LBB0_24
; %bb.1:
	mov	x0, x21
	bl	_av_freep
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x21, #0
	mov	w22, #0
	mov	w0, #0
	mov	w25, #0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w0, w0, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	ldrb	w9, [x9, x21]
	cmp	w9, #10
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w25, w25, #1
	mov	x1, x22
	bl	_FFMAX
	mov	x22, x0
	mov	w0, #0
	ldr	w8, [x23]
	b	LBB0_4
LBB0_7:
	mov	w25, #0
	mov	w22, #0
LBB0_8:
Lloh0:
	adrp	x26, _AV_LOG_DEBUG@GOTPAGE
Lloh1:
	ldr	x26, [x26, _AV_LOG_DEBUG@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x25
	mov	x4, x22
	bl	_av_log
	ldr	w3, [x20, #12]
	cbz	w3, LBB0_12
; %bb.9:
	ldr	w4, [x20, #16]
	cmp	w22, w3
	b.gt	LBB0_11
; %bb.10:
	cmp	w25, w4
	b.le	LBB0_13
LBB0_11:
Lloh4:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	stp	x22, x25, [sp]
	mov	x0, x19
	bl	_av_log
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_22
LBB0_12:
	stp	w22, w25, [x20, #12]
	mov	x3, x22
	mov	x4, x25
LBB0_13:
	mul	w0, w3, w4
	mov	w1, #4
	bl	_av_calloc
	ldr	x8, [x20, #32]
	str	x0, [x8]
	cbz	x0, LBB0_21
; %bb.14:
	ldp	w9, w8, [x20, #12]
	mul	w0, w9, w8
	mov	w1, #4
	bl	_av_calloc
	ldr	x8, [x20, #32]
	str	x0, [x8, #8]
	cbz	x0, LBB0_21
; %bb.15:
	str	x22, [sp, #24]                  ; 8-byte Folded Spill
	cmp	w25, #1
	b.lt	LBB0_23
; %bb.16:
	mov	w27, #0
	ldr	w8, [x20, #16]
	sub	w8, w8, w25
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w23, w8, #1
	ldr	x28, [x20]
	mov	w22, #78
Lloh11:
	adrp	x24, l_.str.2@PAGE
Lloh12:
	add	x24, x24, l_.str.2@PAGEOFF
Lloh13:
	adrp	x21, _ALIVE_CELL@GOTPAGE
Lloh14:
	ldr	x21, [x21, _ALIVE_CELL@GOTPAGEOFF]
	str	x25, [sp, #16]                  ; 8-byte Folded Spill
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x28, x28, #1
	add	w27, w27, #1
	add	w23, w23, #1
	ldr	x25, [sp, #16]                  ; 8-byte Folded Reload
	cmp	w27, w25
	b.eq	LBB0_23
LBB0_18:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_20 Depth 2
	ldr	w8, [x20, #12]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	sub	w8, w8, w9
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w25, w8, #1
	ldr	w1, [x26]
	ldrb	w8, [x28]
	cmp	w8, #10
	csel	w8, w22, w8, eq
	sxtb	x8, w8
	str	x8, [sp]
	mov	x0, x19
	mov	x2, x24
	mov	x3, x23
	mov	x4, x25
	bl	_av_log
	ldrb	w8, [x28]
	cmp	w8, #10
	b.eq	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	sxtw	x25, w25
LBB0_20:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sxtb	w0, w8
	bl	_av_isgraph
	ldr	w8, [x21]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	ldr	x9, [x20, #32]
	ldr	x9, [x9]
	ldrsw	x10, [x20, #12]
	sxtw	x11, w23
	madd	x10, x11, x10, x25
	str	w8, [x9, x10, lsl #2]
	ldrb	w8, [x28, #1]!
	add	x25, x25, #1
	ldr	w1, [x26]
	cmp	w8, #10
	csel	w8, w22, w8, eq
	sxtb	x8, w8
	str	x8, [sp]
	mov	x0, x19
	mov	x2, x24
	mov	x3, x23
	mov	x4, x25
	bl	_av_log
	ldrb	w8, [x28]
	cmp	w8, #10
	b.ne	LBB0_20
	b	LBB0_17
LBB0_21:
	ldr	x0, [x20, #32]
	bl	_av_freep
	ldr	x8, [x20, #32]
	add	x0, x8, #8
	bl	_av_freep
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_22:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_23:
	mov	w0, #0
	str	xzr, [x20, #24]
LBB0_24:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"h:%d max_w:%d\n"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"The specified size is %dx%d which cannot contain the provided file size of %dx%d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"%d:%d %c\n"

	.comm	_ALIVE_CELL,4,2                 ; @ALIVE_CELL
	.no_dead_strip	_init_pattern_from_file
.subsections_via_symbols
