	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_pattern_from_string
_init_pattern_from_string:              ## @init_pattern_from_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movq	(%r12), %rdi
	callq	_strlen
	movl	%eax, %r14d
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movl	8(%r12), %ecx
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.1:
	cmpl	%ecx, %r14d
	jle	LBB0_2
## %bb.10:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_3:
	movl	%r14d, 8(%r12)
	cvtsi2sd	%r14d, %xmm0
	movq	_M_PHI@GOTPCREL(%rip), %rax
	mulsd	(%rax), %xmm0
	movsd	%xmm0, 16(%r12)
	movl	%r14d, %ecx
	jmp	LBB0_4
LBB0_2:
	movsd	16(%r12), %xmm0                 ## xmm0 = mem[0],zero
LBB0_4:
	shll	$2, %ecx
	movl	%ecx, %edi
	callq	_av_mallocz_array
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	(%r12), %r13
	movl	8(%r12), %eax
	subl	%r14d, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rbx
	leaq	L_.str.2(%rip), %r14
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	(%r13), %eax
	cmpb	$10, %al
	movl	$78, %ecx
	cmovel	%ecx, %eax
	movsbl	%al, %r8d
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movsbl	(%r13), %edi
	testl	%edi, %edi
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpb	$10, %dil
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%r13
	callq	_av_isgraph
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movq	24(%r12), %rax
	movl	%ecx, (%rax,%rbx,4)
	incq	%rbx
	jmp	LBB0_7
LBB0_12:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w:%d\n"

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

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

	.no_dead_strip	_init_pattern_from_string
.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_string
_init_pattern_from_string:              ; @init_pattern_from_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	ldr	x22, [x0]
	ldr	x0, [x22]
	bl	_strlen
	mov	x20, x0
Lloh0:
	adrp	x23, _AV_LOG_DEBUG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AV_LOG_DEBUG@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_av_log
	ldr	w3, [x22, #8]
	cbz	w3, LBB0_3
; %bb.1:
	cmp	w20, w3
	b.le	LBB0_4
; %bb.2:
Lloh4:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	str	x20, [sp]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_3:
	str	w20, [x22, #8]
	scvtf	d0, w20
Lloh11:
	adrp	x8, _M_PHI@GOTPAGE
Lloh12:
	ldr	x8, [x8, _M_PHI@GOTPAGEOFF]
Lloh13:
	ldr	d1, [x8]
	fmul	d0, d1, d0
	str	d0, [x22, #16]
	mov	x3, x20
	b	LBB0_5
LBB0_4:
	ldr	d0, [x22, #16]
LBB0_5:
	lsl	w0, w3, #2
	bl	_av_mallocz_array
	str	x0, [x22, #24]
	cbz	x0, LBB0_10
; %bb.6:
	ldr	x24, [x22]
	ldr	w8, [x22, #8]
	sub	w8, w8, w20
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w20, w8, #1
	sbfiz	x25, x20, #2, #32
	mov	w26, #78
Lloh14:
	adrp	x21, l_.str.2@PAGE
Lloh15:
	add	x21, x21, l_.str.2@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	ldrb	w8, [x24]
	cmp	w8, #10
	csel	w8, w26, w8, eq
	sxtb	x8, w8
	str	x8, [sp]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	bl	_av_log
	ldrb	w8, [x24]
	cmp	w8, #0
	ccmp	w8, #10, #4, ne
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sxtb	w0, w8
	add	x24, x24, #1
	bl	_av_isgraph
	cmp	w0, #0
	cset	w8, ne
	ldr	x9, [x22, #24]
	str	w8, [x9, x25]
	add	x25, x25, #4
	add	w20, w20, #1
	b	LBB0_7
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_AVERROR
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w:%d\n"

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

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

	.no_dead_strip	_init_pattern_from_string
.subsections_via_symbols
