	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_zp2tf
_convert_zp2tf:                         ## @convert_zp2tf
	.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
	testl	%esi, %esi
	jle	LBB0_1
## %bb.2:
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r12
	movl	%esi, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
                                        ##     Child Loop BB0_24 Depth 2
	movq	(%r12), %rbx
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	shlq	$4, %r14
	movq	(%rbx,%r14), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax), %edi
	addl	$2, %edi
	movl	$8, %esi
	callq	_av_calloc
	movq	%rax, %r15
	movq	(%rbx,%r14), %rax
	movl	4(%rax), %eax
	leal	(%rax,%rax), %edi
	addl	$2, %edi
	movl	$8, %esi
	callq	_av_calloc
	movq	%rax, %r13
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%r13, %r13
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rbx,%r14), %rcx
	movq	8(%rbx,%r14), %rax
	movq	(%rax), %rsi
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r13, %rcx
	callq	_expand
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	%rbx, %r14
	addq	$8, %r14
	movq	(%r14), %rax
	movq	8(%rax), %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	4(%rax), %edx
	movq	%r12, %rdi
	movq	%r15, %rcx
	callq	_expand
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r8
	movl	4(%r8), %ecx
	testl	%ecx, %ecx
	js	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rax
	movq	8(%rax), %rsi
	leaq	1(%rcx), %r9
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %r10d
	movl	%r9d, %edx
	andl	$-2, %edx
	leal	(%rcx,%rcx), %eax
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cltq
	movsd	(%r15,%rax,8), %xmm0            ## xmm0 = mem[0],zero
	movsd	%xmm0, (%rsi,%rdi,8)
	leal	-2(%rax), %ebx
	movslq	%ebx, %rbx
	movsd	(%r15,%rbx,8), %xmm0            ## xmm0 = mem[0],zero
	movsd	%xmm0, 8(%rsi,%rdi,8)
	addq	$2, %rdi
	addl	$-4, %eax
	cmpq	%rdi, %rdx
	jne	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	subq	%rdi, %rcx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	%r10d, %ebx
	testb	$1, %r9b
	jne	LBB0_18
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	jmp	LBB0_29
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, %ebx
	jmp	LBB0_29
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_29
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%ecx
	movl	%ecx, %r9d
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edi, %edi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	testb	$1, %r9b
	je	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	%ecx, %ecx
	movslq	%ecx, %rax
	movsd	(%r15,%rax,8), %xmm0            ## xmm0 = mem[0],zero
	movsd	%xmm0, (%rsi,%rdi,8)
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r9d, 4(%r8)
	movl	(%r8), %ecx
	testl	%ecx, %ecx
	js	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rax
	movq	(%rax), %rsi
	leaq	1(%rcx), %r9
	testq	%rcx, %rcx
	je	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %r10d
	movl	%r9d, %eax
	andl	$-2, %eax
	leal	(%rcx,%rcx), %ebx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	%ebx, %rbx
	movsd	(%r13,%rbx,8), %xmm0            ## xmm0 = mem[0],zero
	movsd	%xmm0, (%rsi,%rdi,8)
	leal	-2(%rbx), %edx
	movslq	%edx, %rdx
	movsd	(%r13,%rdx,8), %xmm0            ## xmm0 = mem[0],zero
	movsd	%xmm0, 8(%rsi,%rdi,8)
	addq	$2, %rdi
	addl	$-4, %ebx
	cmpq	%rdi, %rax
	jne	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_3 Depth=1
	subq	%rdi, %rcx
	movl	%r10d, %ebx
	testb	$1, %r9b
	jne	LBB0_27
	jmp	LBB0_28
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%ecx
	movl	%ecx, %r9d
	jmp	LBB0_28
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edi, %edi
	testb	$1, %r9b
	je	LBB0_28
LBB0_27:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	%ecx, %ecx
	movslq	%ecx, %rax
	movsd	(%r13,%rax,8), %xmm0            ## xmm0 = mem[0],zero
	movsd	%xmm0, (%rsi,%rdi,8)
LBB0_28:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r9d, (%r8)
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_av_free
	movq	%r13, %rdi
	callq	_av_free
	testl	%ebx, %ebx
	js	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	incq	%r14
	cmpq	-72(%rbp), %r14                 ## 8-byte Folded Reload
	jne	LBB0_3
	jmp	LBB0_31
LBB0_1:
	xorl	%ebx, %ebx
LBB0_31:
	movl	%ebx, %eax
	addq	$40, %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	_convert_zp2tf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_zp2tf
_convert_zp2tf:                         ; @convert_zp2tf
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cmp	w1, #1
	b.lt	LBB0_18
; %bb.1:
	mov	x19, x0
	mov	x23, #0
	ldr	x24, [x0]
	mov	w25, w1
Lloh0:
	adrp	x26, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ENOMEM@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	ldr	x8, [x24]
	add	x28, x8, x23, lsl #4
	ldr	x8, [x28]
	ldr	w8, [x8]
	lsl	w8, w8, #1
	add	w0, w8, #2
	mov	w1, #8
	bl	_av_calloc
	mov	x20, x0
	ldr	x8, [x28]
	ldr	w8, [x8, #4]
	lsl	w8, w8, #1
	add	w0, w8, #2
	mov	w1, #8
	bl	_av_calloc
	mov	x21, x0
	cmp	x20, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x26]
	bl	_AVERROR
	mov	x22, x0
	b	LBB0_16
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x27, x28
	ldr	x8, [x27, #8]!
	ldr	x1, [x8]
	ldr	x8, [x28]
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x21
	bl	_expand
	tbnz	w0, #31, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x27]
	ldr	x1, [x8, #8]
	ldr	x8, [x28]
	ldr	w2, [x8, #4]
	mov	x0, x19
	mov	x3, x20
	bl	_expand
	mov	x22, x0
	tbnz	w0, #31, LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x28]
	ldr	w11, [x8, #4]
	tbnz	w11, #31, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x27]
	ldr	x10, [x9, #8]
	add	x9, x11, #1
	lsl	w11, w11, #1
	mov	x12, x9
LBB0_8:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	d0, [x20, w11, sxtw #3]
	str	d0, [x10], #8
	sub	w11, w11, #2
	sub	x12, x12, #1
	cbnz	x12, LBB0_8
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x0
	b	LBB0_16
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w9, w11, #1
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	str	w9, [x8, #4]
	ldr	w11, [x8]
	tbnz	w11, #31, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x27]
	ldr	x10, [x9]
	add	x9, x11, #1
	lsl	w11, w11, #1
	mov	x12, x9
LBB0_13:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	d0, [x21, w11, sxtw #3]
	str	d0, [x10], #8
	sub	w11, w11, #2
	sub	x12, x12, #1
	cbnz	x12, LBB0_13
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w9, w11, #1
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	str	w9, [x8]
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_av_free
	mov	x0, x21
	bl	_av_free
	tbnz	w22, #31, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	cmp	x23, x25
	b.ne	LBB0_2
	b	LBB0_19
LBB0_18:
	mov	w22, #0
LBB0_19:
	mov	x0, x22
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_convert_zp2tf
.subsections_via_symbols
