	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_bsf_alloc                   ## -- Begin function av_bsf_alloc
	.p2align	4, 0x90
_av_bsf_alloc:                          ## @av_bsf_alloc
	.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	%rsi, %r14
	movq	%rdi, %r15
	movl	$48, %edi
	callq	_av_mallocz
	movq	%rax, -32(%rbp)
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %rbx
	movq	_bsf_class@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	movq	%r15, 32(%rbx)
	xorl	%eax, %eax
	callq	_avcodec_parameters_alloc
	movq	%rax, 24(%rbx)
	xorl	%eax, %eax
	callq	_avcodec_parameters_alloc
	movq	%rax, 16(%rbx)
	cmpq	$0, 24(%rbx)
	je	LBB0_11
## %bb.2:
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movl	$4, %edi
	callq	_av_mallocz
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	xorl	%eax, %eax
	callq	_av_packet_alloc
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_11
## %bb.5:
	movq	%rbx, %rdi
	callq	_av_opt_set_defaults
	movl	(%r15), %edi
	testl	%edi, %edi
	je	LBB0_9
## %bb.6:
	callq	_av_mallocz
	movq	%rax, (%rbx)
	movq	-32(%rbp), %rbx
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	8(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:
	movq	%rcx, (%rax)
	movq	-32(%rbp), %rbx
	movq	(%rbx), %rdi
	callq	_av_opt_set_defaults
LBB0_9:
	movq	%rbx, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	leaq	-32(%rbp), %rdi
	callq	_av_bsf_free
	movl	%ebx, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_bsf_class,4,2                  ## @bsf_class
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_bsf_alloc                   ; -- Begin function av_bsf_alloc
	.p2align	2
_av_bsf_alloc:                          ; @av_bsf_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x21, x0
	mov	w0, #48
	bl	_av_mallocz
	str	x0, [sp, #8]
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _bsf_class@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bsf_class@GOTPAGEOFF]
	stp	x21, x8, [x0, #32]
	bl	_avcodec_parameters_alloc
	str	x0, [x20, #24]
	bl	_avcodec_parameters_alloc
	str	x0, [x20, #16]
	ldr	x8, [x20, #24]
	cmp	x8, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_9
; %bb.2:
	mov	w0, #4
	bl	_av_mallocz
	str	x0, [x20, #8]
	cbz	x0, LBB0_9
; %bb.3:
	bl	_av_packet_alloc
	ldr	x8, [x20, #8]
	str	w0, [x8]
	cbz	w0, LBB0_9
; %bb.4:
	mov	x0, x20
	bl	_av_opt_set_defaults
	ldr	w0, [x21]
	cbz	w0, LBB0_8
; %bb.5:
	bl	_av_mallocz
	str	x0, [x20]
	ldr	x20, [sp, #8]
	ldr	x8, [x20]
	cbz	x8, LBB0_9
; %bb.6:
	ldr	x9, [x21, #8]
	cbz	x9, LBB0_8
; %bb.7:
	str	x9, [x8]
	ldr	x20, [sp, #8]
	ldr	x0, [x20]
	bl	_av_opt_set_defaults
LBB0_8:
	str	x20, [x19]
	mov	w0, #0
	b	LBB0_10
LBB0_9:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x19, x0
	add	x0, sp, #8
	bl	_av_bsf_free
	mov	x0, x19
LBB0_10:
	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
	add	sp, sp, #64
	ret
LBB0_11:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	b	_AVERROR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_bsf_class,4,2                  ; @bsf_class
.subsections_via_symbols
