	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avdevice_capabilities_create   ## -- Begin function avdevice_capabilities_create
	.p2align	4, 0x90
_avdevice_capabilities_create:          ## @avdevice_capabilities_create
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	testq	%rsi, %rsi
	setne	%al
	testq	%rdi, %rdi
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_av_assert0
	movl	$1, %edi
	cmpq	$0, 8(%rbx)
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	setne	%dil
LBB0_2:
	callq	_av_assert0
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	cmpq	$0, (%rax)
	je	LBB0_6
LBB0_4:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	cmpq	$0, (%rax)
	je	LBB0_6
LBB0_8:
	movl	$8, %edi
	callq	_av_mallocz
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rbx, (%rax)
	movl	16(%rbx), %edi
	movq	%r15, %rsi
	callq	_av_opt_set_dict
	testl	%eax, %eax
	js	LBB0_15
## %bb.11:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_12
## %bb.14:
	movq	(%rbx), %rax
LBB0_12:
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_15
## %bb.13:
	movq	(%r14), %rdi
	callq	_av_opt_set_defaults
	xorl	%r15d, %r15d
	jmp	LBB0_16
LBB0_6:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_15:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_av_freep
LBB0_16:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avdevice_capabilities_create   ; -- Begin function avdevice_capabilities_create
	.p2align	2
_avdevice_capabilities_create:          ; @avdevice_capabilities_create
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	cmp	x0, #0
	ccmp	x1, #0, #4, ne
	cset	w0, ne
	bl	_av_assert0
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, ne
LBB0_3:
	bl	_av_assert0
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x8]
	cbz	x8, LBB0_13
LBB0_5:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x8, [x8]
	cbz	x8, LBB0_13
LBB0_7:
	mov	w0, #8
	bl	_av_mallocz
	str	x0, [x19]
	cbz	x0, LBB0_14
; %bb.8:
	str	x20, [x0]
	ldr	w0, [x20, #16]
	mov	x1, x21
	bl	_av_opt_set_dict
	tbnz	w0, #31, LBB0_16
; %bb.9:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_11
; %bb.10:
	ldr	x8, [x20]
LBB0_11:
	ldr	x8, [x8]
	ldr	x1, [x19]
	mov	x0, x20
	blr	x8
	tbnz	w0, #31, LBB0_16
; %bb.12:
	ldr	x0, [x19]
	bl	_av_opt_set_defaults
	mov	w21, #0
	b	LBB0_17
LBB0_13:
Lloh0:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_16:
	mov	x21, x0
	mov	x0, x19
	bl	_av_freep
LBB0_17:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
