	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chunk_end
_chunk_end:                             ## @chunk_end
	.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
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	24(%rdi), %r13
	movq	8(%r13), %rbx
	movq	_MAX_FILENAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	$0, -56(%rbp)
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*(%rax)
	movq	8(%rbx), %rdi
LBB0_4:
	leaq	-72(%rbp), %rsi
	callq	_avio_close_dyn_buf
	movl	%eax, %r15d
	movq	$0, 8(%rbx)
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_get_chunk_filename
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	(%r13), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rsi
	leaq	-56(%rbp), %rdi
	xorl	%ecx, %ecx
	callq	_av_dict_set
LBB0_8:
	movq	_AVIO_FLAG_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-64(%rbp), %rsi
	leaq	-56(%rbp), %r8
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	*(%r12)
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_10
## %bb.9:
	movq	-64(%rbp), %rdi
	movq	-72(%rbp), %rsi
	movl	%r15d, %edx
	callq	_avio_write
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	callq	_ff_format_io_close
	jmp	LBB0_10
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_5:
	movl	%eax, %ebx
LBB0_10:
	leaq	-56(%rbp), %rdi
	callq	_av_dict_free
	movq	-72(%rbp), %rdi
	callq	_av_free
	movl	%ebx, %eax
	sarl	$31, %eax
	andl	%ebx, %eax
LBB0_11:
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_FILENAME_SIZE,4,2          ## @MAX_FILENAME_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"method"

	.comm	_AVIO_FLAG_WRITE,4,2            ## @AVIO_FLAG_WRITE
	.no_dead_strip	_chunk_end
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chunk_end
_chunk_end:                             ; @chunk_end
	.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
	sub	sp, sp, #32
	mov	x19, x0
	mov	x23, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x24, [x0, #24]
	ldr	x22, [x24, #8]
Lloh3:
	adrp	x8, _MAX_FILENAME_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_FILENAME_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	stur	xzr, [x29, #-80]
	ldr	x0, [x22, #8]
	cbz	x0, LBB0_10
; %bb.1:
	cbz	w1, LBB0_3
; %bb.2:
	ldr	x8, [x22, #16]
	ldr	x8, [x8]
	mov	x0, x22
	mov	x1, #0
	blr	x8
	ldr	x0, [x22, #8]
LBB0_3:
	sub	x1, x29, #64
	bl	_avio_close_dyn_buf
	mov	x21, x0
	str	xzr, [x22, #8]
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_get_chunk_filename
	tbnz	w0, #31, LBB0_8
; %bb.4:
	ldr	x2, [x24]
	cbz	x2, LBB0_6
; %bb.5:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	sub	x0, x29, #80
	mov	w3, #0
	bl	_av_dict_set
LBB0_6:
	ldr	x8, [x19]
Lloh10:
	adrp	x9, _AVIO_FLAG_WRITE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AVIO_FLAG_WRITE@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x9]
	sub	x1, x29, #72
	sub	x4, x29, #80
	mov	x0, x19
	mov	x2, x20
	blr	x8
	mov	x22, x0
	tbnz	w0, #31, LBB0_9
; %bb.7:
	ldp	x0, x1, [x29, #-72]
	mov	x2, x21
	bl	_avio_write
	sub	x1, x29, #72
	mov	x0, x19
	bl	_ff_format_io_close
	b	LBB0_9
LBB0_8:
	mov	x22, x0
LBB0_9:
	sub	x0, x29, #80
	bl	_av_dict_free
	ldur	x0, [x29, #-64]
	bl	_av_free
	cmp	w22, #0
	csel	w0, w22, wzr, lt
LBB0_10:
	mov	sp, x23
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	sub	sp, x29, #48
	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
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_FILENAME_SIZE,4,2          ; @MAX_FILENAME_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"method"

	.comm	_AVIO_FLAG_WRITE,4,2            ; @AVIO_FLAG_WRITE
	.no_dead_strip	_chunk_end
.subsections_via_symbols
