	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_opt_get_key_value           ## -- Begin function av_opt_get_key_value
	.p2align	4, 0x90
_av_opt_get_key_value:                  ## @av_opt_get_key_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, %r15
	movl	%ecx, %r13d
	movq	%rdx, %r12
	movq	%rdi, %rbx
	movq	$0, -56(%rbp)
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rdx
	callq	_get_key
	testl	%eax, %eax
	jns	LBB0_4
## %bb.1:
	movq	_AV_OPT_FLAG_IMPLICIT_KEY@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_2
LBB0_4:
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	callq	_av_get_token
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	-48(%rbp), %rcx
	movq	%rcx, (%rbx)
	movq	-56(%rbp), %rcx
	movq	%rcx, (%r15)
	movq	%rax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	movq	-56(%rbp), %rdi
	callq	_av_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_OPT_FLAG_IMPLICIT_KEY,4,2   ## @AV_OPT_FLAG_IMPLICIT_KEY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_opt_get_key_value           ; -- Begin function av_opt_get_key_value
	.p2align	2
_av_opt_get_key_value:                  ; @av_opt_get_key_value
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x5
	mov	x20, x4
	mov	x23, x3
	mov	x22, x2
	mov	x21, x0
	ldr	x8, [x0]
	stp	x8, xzr, [sp]
	mov	x0, sp
	add	x2, sp, #8
	bl	_get_key
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AV_OPT_FLAG_IMPLICIT_KEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_OPT_FLAG_IMPLICIT_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_5
LBB0_2:
	mov	x0, sp
	mov	x1, x22
	bl	_av_get_token
	cbz	x0, LBB0_4
; %bb.3:
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [sp]
	str	x9, [x21]
	ldr	x9, [sp, #8]
	str	x9, [x20]
	str	x8, [x19]
	b	LBB0_7
LBB0_4:
	ldr	x0, [sp, #8]
	bl	_av_free
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_OPT_FLAG_IMPLICIT_KEY,4,2   ; @AV_OPT_FLAG_IMPLICIT_KEY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
