	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_opt_set_bin                 ## -- Begin function av_opt_set_bin
	.p2align	4, 0x90
_av_opt_set_bin:                        ## @av_opt_set_bin
	.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
	movl	%ecx, %r15d
	movq	%rdx, %r14
	leaq	-56(%rbp), %r9
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_av_opt_find2
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	-56(%rbp), %r13
	testq	%r13, %r13
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_AV_OPT_TYPE_BINARY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_AV_OPT_FLAG_READONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_7
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r12d
	jmp	LBB0_13
LBB0_2:
	movq	_AVERROR_OPTION_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_13:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%r12d, %r12d
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.9:
	movl	%r15d, %edi
	callq	_av_malloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	movq	-56(%rbp), %r13
	jmp	LBB0_11
LBB0_8:
	xorl	%eax, %eax
LBB0_11:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movslq	12(%rbx), %rbx
	movq	(%r13,%rbx,4), %rdi
	callq	_av_free
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, (%r13,%rbx,4)
	movl	%r15d, 8(%r13,%rbx,4)
	testl	%r15d, %r15d
	je	LBB0_13
## %bb.12:
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	jmp	LBB0_13
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_OPTION_NOT_FOUND,4,2   ## @AVERROR_OPTION_NOT_FOUND
	.comm	_AV_OPT_TYPE_BINARY,8,3         ## @AV_OPT_TYPE_BINARY
	.comm	_AV_OPT_FLAG_READONLY,4,2       ## @AV_OPT_FLAG_READONLY
	.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_set_bin                 ; -- Begin function av_opt_set_bin
	.p2align	2
_av_opt_set_bin:                        ; @av_opt_set_bin
	.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, x3
	mov	x20, x2
	add	x5, sp, #8
	mov	x2, #0
	mov	w3, #0
	bl	_av_opt_find2
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_6
; %bb.2:
	mov	x21, x0
	ldr	x9, [x0]
Lloh0:
	adrp	x10, _AV_OPT_TYPE_BINARY@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AV_OPT_TYPE_BINARY@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
	ldr	w9, [x21, #8]
Lloh3:
	adrp	x10, _AV_OPT_FLAG_READONLY@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AV_OPT_FLAG_READONLY@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_8
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _AVERROR_OPTION_NOT_FOUND@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVERROR_OPTION_NOT_FOUND@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_7:
	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_8:
	cbz	w19, LBB0_11
; %bb.9:
	mov	x0, x19
	bl	_av_malloc
	cbz	x0, LBB0_15
; %bb.10:
	mov	x22, x0
	ldr	x8, [sp, #8]
	b	LBB0_12
LBB0_11:
	mov	x22, #0
LBB0_12:
	ldrsw	x9, [x21, #12]
	add	x21, x8, x9, lsl #2
	ldr	x0, [x21]
	bl	_av_free
	str	x22, [x21]
	str	w19, [x21, #8]
	cbz	w19, LBB0_14
; %bb.13:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
LBB0_14:
	mov	w0, #0
	b	LBB0_7
LBB0_15:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_OPTION_NOT_FOUND,4,2   ; @AVERROR_OPTION_NOT_FOUND
	.comm	_AV_OPT_TYPE_BINARY,8,3         ; @AV_OPT_TYPE_BINARY
	.comm	_AV_OPT_FLAG_READONLY,4,2       ; @AV_OPT_FLAG_READONLY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
