	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function binary_export
_binary_export:                         ## @binary_export
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rsi), %eax
	leal	44(%rax), %ecx
	movslq	%ecx, %rcx
	imulq	$-1240768329, %rcx, %rcx        ## imm = 0xB60B60B7
	shrq	$32, %rcx
	leal	(%rcx,%rax), %ebx
	addl	$44, %ebx
	movl	%ebx, %ecx
	shrl	$31, %ecx
	sarl	$5, %ebx
	addl	%ecx, %ebx
	imull	$1344, %ebx, %ecx               ## imm = 0x540
	imull	$690, %eax, %eax                ## imm = 0x2B2
	leal	(%rax,%rcx), %edx
	addl	$754, %edx                      ## imm = 0x2F2
	leal	(%rax,%rcx), %r15d
	addl	$761, %r15d                     ## imm = 0x2F9
	testl	%edx, %edx
	cmovnsl	%edx, %r15d
	sarl	$3, %r15d
	movl	%r15d, %edi
	movl	$4, %esi
	callq	_av_malloc_array
	movq	%rax, -192(%rbp)
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	leaq	-176(%rbp), %r13
	movq	%r13, %rdi
	movq	-184(%rbp), %rsi                ## 8-byte Reload
	movl	%r15d, %edx
	callq	_init_put_bits
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_put_bits32
	movq	%r13, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_put_bits32
	movl	4(%r12), %eax
	decl	%eax
	movzwl	%ax, %edx
	movq	%r13, %rdi
	movl	$16, %esi
	callq	_put_bits
	movl	8(%r12), %eax
	decl	%eax
	movzwl	%ax, %edx
	movq	%r13, %rdi
	movl	$16, %esi
	callq	_put_bits
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_put_bits32
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_put_bits32
	movl	40(%r12), %eax
	cltd
	idivl	44(%r12)
	movzwl	%ax, %edx
	movq	%r13, %rdi
	movl	$16, %esi
	callq	_put_bits
	movq	%r13, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_put_bits32
	movq	32(%r12), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_put_bits32
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_put_bits32
	movq	24(%r12), %r15
	testq	%r15, %r15
	je	LBB0_18
## %bb.6:
	leaq	-176(%rbp), %r14
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_14 Depth 2
                                        ##     Child Loop BB0_16 Depth 2
	movq	16(%r15), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_put_bits32
	movq	8(%r15), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_put_bits32
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	movq	16(%r15), %rax
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_put_bits32
	movq	8(%r15), %rax
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_put_bits32
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_put_bits
	incq	%rbx
	cmpq	$30, %rbx
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r15), %rax
	movq	(%rax), %rax
	movl	120(%rax), %edx
	sarl	$5, %edx
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_put_bits
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_put_bits
	incq	%rbx
	cmpq	$30, %rbx
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movl	120(%rax), %edx
	sarl	$5, %edx
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_put_bits
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rax
	movq	16(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_put_bits
	incq	%rbx
	cmpq	$30, %rbx
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r15), %rax
	movq	16(%rax), %rax
	movl	120(%rax), %edx
	sarl	$5, %edx
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_put_bits
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rax
	movq	24(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_put_bits
	incq	%rbx
	cmpq	$30, %rbx
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r15), %rax
	movq	24(%rax), %rax
	movl	120(%rax), %edx
	sarl	$5, %edx
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_put_bits
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rax
	movq	32(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_put_bits
	incq	%rbx
	cmpq	$30, %rbx
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r15), %rax
	movq	32(%rax), %rax
	movl	120(%rax), %edx
	sarl	$5, %edx
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_put_bits
	movq	24(%r15), %r15
	testq	%r15, %r15
	jne	LBB0_7
LBB0_18:
	leaq	-176(%rbp), %rdi
	xorl	%r13d, %r13d
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	16(%r12), %r12
	testq	%r12, %r12
	je	LBB0_24
## %bb.19:
	leaq	-176(%rbp), %r14
	movq	_SIGELEM_SIZE@GOTPCREL(%rip), %r15
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	24(%r12), %r12
	testq	%r12, %r12
	je	LBB0_24
LBB0_20:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_22 Depth 2
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_put_bits32
	movl	4(%r12), %edx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_put_bits
	movq	8(%r12), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_put_bits
	movq	8(%r12), %rax
	movl	4(%rax), %edx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_put_bits
	movq	8(%r12), %rax
	movl	8(%rax), %edx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_put_bits
	movq	8(%r12), %rax
	movl	12(%rax), %edx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_put_bits
	movq	8(%r12), %rax
	movl	16(%rax), %edx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_put_bits
	cmpl	$5, (%r15)
	jl	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_20 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_put_bits
	incq	%rbx
	movslq	(%r15), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$33, %rax
	addl	%ecx, %eax
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_22
	jmp	LBB0_23
LBB0_24:
	leaq	-176(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_avpriv_align_put_bits
	movq	%rbx, %rdi
	callq	_flush_put_bits
	movq	%rbx, %rdi
	callq	_put_bits_count
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$3, %edx
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	movl	$1, %esi
	movq	-200(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_fwrite
	movq	%rbx, %rdi
	callq	_fclose
	jmp	LBB0_25
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_27
## %bb.2:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	leaq	-176(%rbp), %r15
	movl	%eax, %edi
	movq	%r15, %rsi
	movl	$128, %edx
	callq	_av_strerror
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	movl	%ebx, %r13d
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_av_log
LBB0_25:
	leaq	-192(%rbp), %rdi
	callq	_av_freep
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_27
## %bb.26:
	movl	%r13d, %eax
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wb"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"cannot open file %s: %s\n"

	.comm	_SIGELEM_SIZE,4,2               ## @SIGELEM_SIZE
	.no_dead_strip	_binary_export
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function binary_export
_binary_export:                         ; @binary_export
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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	x23, x2
	mov	x21, x1
	mov	x24, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	w8, [x1]
	add	w9, w8, #44
	mov	w10, #24759
	movk	w10, #46603, lsl #16
	smull	x10, w9, w10
	lsr	x10, x10, #32
	add	w9, w10, w9
	asr	w10, w9, #5
	add	w22, w10, w9, lsr #31
	mov	w9, #1344
	mul	w9, w22, w9
	mov	w10, #690
	madd	w8, w8, w10, w9
	add	w9, w8, #754
	add	w8, w8, #761
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w25, w8, #3
	mov	x0, x25
	mov	w1, #4
	bl	_av_malloc_array
	str	x0, [sp]
	cbz	x0, LBB0_21
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_fopen
	cbz	x0, LBB0_23
; %bb.2:
	mov	x20, x0
	add	x0, sp, #8
	mov	x1, x19
	mov	x2, x25
	bl	_init_put_bits
	add	x0, sp, #8
	mov	w1, #1
	bl	_put_bits32
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	add	x0, sp, #8
	mov	w1, #0
	bl	_put_bits32
	ldr	w8, [x21, #4]
	sub	w8, w8, #1
	and	w2, w8, #0xffff
	add	x0, sp, #8
	mov	w1, #16
	bl	_put_bits
	ldr	w8, [x21, #8]
	sub	w8, w8, #1
	and	w2, w8, #0xffff
	add	x0, sp, #8
	mov	w1, #16
	bl	_put_bits
	add	x0, sp, #8
	mov	w1, #0
	bl	_put_bits32
	ldr	w1, [x21]
	add	x0, sp, #8
	bl	_put_bits32
	ldp	w8, w9, [x21, #40]
	sdiv	w8, w8, w9
	and	w2, w8, #0xffff
	add	x0, sp, #8
	mov	w1, #16
	bl	_put_bits
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	add	x0, sp, #8
	mov	w1, #0
	bl	_put_bits32
	ldr	x8, [x21, #32]
	ldr	x8, [x8]
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_put_bits32
	add	x0, sp, #8
	mov	x1, x22
	bl	_put_bits32
	ldr	x22, [x21, #24]
	cbz	x22, LBB0_14
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_12 Depth 2
	ldr	x8, [x22, #16]
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_put_bits32
	ldr	x8, [x22, #8]
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_put_bits32
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	ldr	x8, [x22, #16]
	ldr	w1, [x8, #4]
	add	x0, sp, #8
	bl	_put_bits32
	ldr	x8, [x22, #8]
	ldr	w1, [x8, #4]
	add	x0, sp, #8
	bl	_put_bits32
	mov	x23, #0
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	w2, [x8, x23]
	add	x0, sp, #8
	mov	w1, #8
	bl	_put_bits
	add	x23, x23, #4
	cmp	x23, #120
	b.ne	LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	w8, [x8, #120]
	asr	w2, w8, #5
	add	x0, sp, #8
	mov	w1, #3
	bl	_put_bits
	mov	x23, #0
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	ldr	w2, [x8, x23]
	add	x0, sp, #8
	mov	w1, #8
	bl	_put_bits
	add	x23, x23, #4
	cmp	x23, #120
	b.ne	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	ldr	w8, [x8, #120]
	asr	w2, w8, #5
	add	x0, sp, #8
	mov	w1, #3
	bl	_put_bits
	mov	x23, #0
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22]
	ldr	x8, [x8, #16]
	ldr	w2, [x8, x23]
	add	x0, sp, #8
	mov	w1, #8
	bl	_put_bits
	add	x23, x23, #4
	cmp	x23, #120
	b.ne	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	ldr	x8, [x8, #16]
	ldr	w8, [x8, #120]
	asr	w2, w8, #5
	add	x0, sp, #8
	mov	w1, #3
	bl	_put_bits
	mov	x23, #0
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22]
	ldr	x8, [x8, #24]
	ldr	w2, [x8, x23]
	add	x0, sp, #8
	mov	w1, #8
	bl	_put_bits
	add	x23, x23, #4
	cmp	x23, #120
	b.ne	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	ldr	x8, [x8, #24]
	ldr	w8, [x8, #120]
	asr	w2, w8, #5
	add	x0, sp, #8
	mov	w1, #3
	bl	_put_bits
	mov	x23, #0
LBB0_12:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22]
	ldr	x8, [x8, #32]
	ldr	w2, [x8, x23]
	add	x0, sp, #8
	mov	w1, #8
	bl	_put_bits
	add	x23, x23, #4
	cmp	x23, #120
	b.ne	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	ldr	x8, [x8, #32]
	ldr	w8, [x8, #120]
	asr	w2, w8, #5
	add	x0, sp, #8
	mov	w1, #3
	bl	_put_bits
	ldr	x22, [x22, #24]
	cbnz	x22, LBB0_3
LBB0_14:
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #0
	bl	_put_bits
	ldr	x21, [x21, #16]
	cbz	x21, LBB0_20
; %bb.15:
Lloh5:
	adrp	x22, _SIGELEM_SIZE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _SIGELEM_SIZE@GOTPAGEOFF]
	mov	w23, #26215
	movk	w23, #26214, lsl #16
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	x21, [x21, #24]
	cbz	x21, LBB0_20
LBB0_17:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	ldr	w1, [x21]
	add	x0, sp, #8
	bl	_put_bits32
	ldr	w2, [x21, #4]
	add	x0, sp, #8
	mov	w1, #8
	bl	_put_bits
	ldr	x8, [x21, #8]
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	w1, #8
	bl	_put_bits
	ldr	x8, [x21, #8]
	ldr	w2, [x8, #4]
	add	x0, sp, #8
	mov	w1, #8
	bl	_put_bits
	ldr	x8, [x21, #8]
	ldr	w2, [x8, #8]
	add	x0, sp, #8
	mov	w1, #8
	bl	_put_bits
	ldr	x8, [x21, #8]
	ldr	w2, [x8, #12]
	add	x0, sp, #8
	mov	w1, #8
	bl	_put_bits
	ldr	x8, [x21, #8]
	ldr	w2, [x8, #16]
	add	x0, sp, #8
	mov	w1, #8
	bl	_put_bits
	ldr	w8, [x22]
	cmp	w8, #5
	b.lt	LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x24, #0
LBB0_19:                                ;   Parent Loop BB0_17 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21, #16]
	ldr	w2, [x8, x24, lsl #2]
	add	x0, sp, #8
	mov	w1, #8
	bl	_put_bits
	add	x24, x24, #1
	ldrsw	x8, [x22]
	mul	x8, x8, x23
	lsr	x9, x8, #63
	asr	x8, x8, #33
	add	w8, w8, w9
	cmp	x24, w8, sxtw
	b.lt	LBB0_19
	b	LBB0_16
LBB0_20:
	add	x0, sp, #8
	bl	_avpriv_align_put_bits
	add	x0, sp, #8
	bl	_flush_put_bits
	add	x0, sp, #8
	bl	_put_bits_count
	add	w8, w0, #7
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w2, w8, #3
	mov	x0, x19
	mov	w1, #1
	mov	x3, x20
	bl	_fwrite
	mov	x0, x20
	bl	_fclose
	mov	x0, sp
	bl	_av_freep
	mov	w19, #0
	b	LBB0_24
LBB0_21:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldur	x8, [x29, #-72]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.22:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #224
	b	_AVERROR
LBB0_23:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x19, x0
	add	x1, sp, #8
	mov	w2, #128
	bl	_av_strerror
Lloh16:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x4, sp, #8
	mov	x0, x24
	mov	x3, x23
	bl	_av_log
	mov	x0, sp
	bl	_av_freep
LBB0_24:
	ldur	x8, [x29, #-72]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.25:
	mov	x0, x19
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wb"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"cannot open file %s: %s\n"

	.comm	_SIGELEM_SIZE,4,2               ; @SIGELEM_SIZE
	.no_dead_strip	_binary_export
.subsections_via_symbols
