	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asf_read_value
_asf_read_value:                        ## @asf_read_value
	.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	$296, %rsp                      ## imm = 0x128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -336(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movq	%rsi, -328(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leal	1(%r14,%r14), %r15d
	movq	%rdi, -320(%rbp)                ## 8-byte Spill
	movq	(%rdi), %r13
	movl	%r15d, %edi
	callq	_av_malloc
	movq	%rax, -312(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	_ASF_UNICODE@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_7
## %bb.4:
	movq	%r13, %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	callq	_get_asf_string
	testl	%eax, %eax
	jns	LBB0_11
## %bb.5:
	movl	%eax, %r13d
	jmp	LBB0_6
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_16
## %bb.2:
	addq	$296, %rsp                      ## imm = 0x128
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_7:
	cmpl	$257, %r14d                     ## imm = 0x101
	jb	LBB0_9
## %bb.8:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_6
LBB0_9:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_avio_read
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_6
## %bb.10:
	addl	%r14d, %r14d
	leal	-1(%r14), %eax
	cmpl	%r14d, %r13d
	cltq
	movl	%r13d, %ecx
	cmovgeq	%rax, %rcx
	movb	$0, (%rbx,%rcx)
	movq	-312(%rbp), %rcx
	leaq	L_.str.1(%rip), %rdx
	leaq	-304(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_snprintf
LBB0_11:
	movq	-336(%rbp), %rdi                ## 8-byte Reload
	movq	-328(%rbp), %rsi                ## 8-byte Reload
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_av_dict_set
	testq	%rax, %rax
	jns	LBB0_13
## %bb.12:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-320(%rbp), %rdi                ## 8-byte Reload
	callq	_av_log
LBB0_13:
	leaq	-312(%rbp), %rdi
	callq	_av_freep
	xorl	%r13d, %r13d
	jmp	LBB0_14
LBB0_6:
	leaq	-312(%rbp), %rdi
	callq	_av_freep
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%r13d, %eax
	addq	$296, %rsp                      ## imm = 0x128
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ASF_UNICODE,4,2                ## @ASF_UNICODE
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"av_dict_set failed.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.no_dead_strip	_asf_read_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asf_read_value
_asf_read_value:                        ; @asf_read_value
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #368
	.cfi_def_cfa_offset 368
	stp	x28, x27, [sp, #272]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #288]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #304]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #320]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #336]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #352]            ; 16-byte Folded Spill
	add	x29, sp, #352
	.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	x20, x4
	mov	x26, x3
	mov	x24, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	mov	w25, #1
	bfi	w25, w2, #1, #31
	ldr	x23, [x0]
	mov	x0, x25
	bl	_av_malloc
	str	x0, [sp]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
Lloh3:
	adrp	x8, _ASF_UNICODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ASF_UNICODE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w26
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x23
	mov	x1, x24
	mov	x2, x22
	mov	x3, x25
	bl	_get_asf_string
	tbnz	w0, #31, LBB0_13
; %bb.3:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	b	LBB0_10
LBB0_4:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldur	x8, [x29, #-88]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.5:
	ldp	x29, x30, [sp, #352]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #336]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #320]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #304]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #288]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #368
	b	_AVERROR
LBB0_6:
	cmp	w24, #257
	b.lo	LBB0_8
; %bb.7:
Lloh12:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
	b	LBB0_14
LBB0_8:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	bl	_avio_read
	mov	x23, x0
	tbnz	w0, #31, LBB0_14
; %bb.9:
	lsl	w8, w24, #1
	sub	w9, w8, #1
	sxtw	x9, w9
	mov	w10, w23
	cmp	w23, w8
	csel	x8, x10, x9, lt
	strb	wzr, [x22, x8]
	ldr	x3, [sp]
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w1, #256
	bl	_snprintf
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x21
LBB0_10:
	mov	w3, #0
	bl	_av_dict_set
	tbz	x0, #63, LBB0_12
; %bb.11:
Lloh17:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_12:
	mov	x0, sp
	bl	_av_freep
	mov	w23, #0
	b	LBB0_15
LBB0_13:
	mov	x23, x0
LBB0_14:
	mov	x0, sp
	bl	_av_freep
LBB0_15:
	ldur	x8, [x29, #-88]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x23
	ldp	x29, x30, [sp, #352]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #336]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #320]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #304]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #288]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #368
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ASF_UNICODE,4,2                ; @ASF_UNICODE
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"av_dict_set failed.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.no_dead_strip	_asf_read_value
.subsections_via_symbols
