	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swr_alloc_set_opts             ## -- Begin function swr_alloc_set_opts
	.p2align	4, 0x90
_swr_alloc_set_opts:                    ## @swr_alloc_set_opts
	.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	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r15d
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	%rdi, -56(%rbp)
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_swr_alloc
	movq	%rax, %rbx
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_12
LBB0_2:
	movq	32(%rbp), %rax
	movl	24(%rbp), %ecx
	movl	%ecx, (%rbx)
	movq	%rax, 16(%rbx)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_av_opt_set_int
	testq	%rax, %rax
	js	LBB0_11
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	callq	_av_opt_set_int
	testq	%rax, %rax
	js	LBB0_11
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_av_opt_set_int
	testq	%rax, %rax
	js	LBB0_11
## %bb.5:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_av_opt_set_int
	testq	%rax, %rax
	js	LBB0_11
## %bb.6:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	callq	_av_opt_set_int
	testq	%rax, %rax
	js	LBB0_11
## %bb.7:
	movl	16(%rbp), %edx
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_av_opt_set_int
	testq	%rax, %rax
	js	LBB0_11
## %bb.8:
	movl	8(%rbx), %edi
	callq	_av_get_channel_layout_nb_channels
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_av_opt_set_int
	testq	%rax, %rax
	js	LBB0_11
## %bb.9:
	movl	4(%rbx), %edi
	callq	_av_get_channel_layout_nb_channels
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_av_opt_set_int
	testq	%rax, %rax
	js	LBB0_11
## %bb.10:
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_av_opt_set_int
	jmp	LBB0_13
LBB0_11:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.9(%rip), %rdx
	movq	%rbx, %rdi
	callq	_av_log
	leaq	-56(%rbp), %rdi
	callq	_swr_free
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ocl"

L_.str.1:                               ## @.str.1
	.asciz	"osf"

L_.str.2:                               ## @.str.2
	.asciz	"osr"

L_.str.3:                               ## @.str.3
	.asciz	"icl"

L_.str.4:                               ## @.str.4
	.asciz	"isf"

L_.str.5:                               ## @.str.5
	.asciz	"isr"

L_.str.6:                               ## @.str.6
	.asciz	"ich"

L_.str.7:                               ## @.str.7
	.asciz	"och"

L_.str.8:                               ## @.str.8
	.asciz	"uch"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.9:                               ## @.str.9
	.asciz	"Failed to set option\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swr_alloc_set_opts             ; -- Begin function swr_alloc_set_opts
	.p2align	2
_swr_alloc_set_opts:                    ; @swr_alloc_set_opts
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x26, x7
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x19, x0
	str	x0, [sp, #8]
	cbnz	x0, LBB0_2
; %bb.1:
	bl	_swr_alloc
	mov	x19, x0
	str	x0, [sp, #8]
	cbz	x0, LBB0_12
LBB0_2:
	ldr	x8, [x29, #16]
	str	w26, [x19]
	str	x8, [x19, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x25
	mov	w3, #0
	bl	_av_opt_set_int
	tbnz	x0, #63, LBB0_11
; %bb.3:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x24
	mov	w3, #0
	bl	_av_opt_set_int
	tbnz	x0, #63, LBB0_11
; %bb.4:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	mov	w3, #0
	bl	_av_opt_set_int
	tbnz	x0, #63, LBB0_11
; %bb.5:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	mov	w3, #0
	bl	_av_opt_set_int
	tbnz	x0, #63, LBB0_11
; %bb.6:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	w3, #0
	bl	_av_opt_set_int
	tbnz	x0, #63, LBB0_11
; %bb.7:
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	bl	_av_opt_set_int
	tbnz	x0, #63, LBB0_11
; %bb.8:
	ldr	w0, [x19, #8]
	bl	_av_get_channel_layout_nb_channels
	mov	x2, x0
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	w3, #0
	bl	_av_opt_set_int
	tbnz	x0, #63, LBB0_11
; %bb.9:
	ldr	w0, [x19, #4]
	bl	_av_get_channel_layout_nb_channels
	mov	x2, x0
Lloh14:
	adrp	x1, l_.str.7@PAGE
Lloh15:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	w3, #0
	bl	_av_opt_set_int
	tbnz	x0, #63, LBB0_11
; %bb.10:
Lloh16:
	adrp	x1, l_.str.8@PAGE
Lloh17:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_av_opt_set_int
	b	LBB0_12
LBB0_11:
Lloh18:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str.9@PAGE
Lloh22:
	add	x2, x2, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_av_log
	add	x0, sp, #8
	bl	_swr_free
	mov	x19, #0
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ocl"

l_.str.1:                               ; @.str.1
	.asciz	"osf"

l_.str.2:                               ; @.str.2
	.asciz	"osr"

l_.str.3:                               ; @.str.3
	.asciz	"icl"

l_.str.4:                               ; @.str.4
	.asciz	"isf"

l_.str.5:                               ; @.str.5
	.asciz	"isr"

l_.str.6:                               ; @.str.6
	.asciz	"ich"

l_.str.7:                               ; @.str.7
	.asciz	"och"

l_.str.8:                               ; @.str.8
	.asciz	"uch"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.9:                               ; @.str.9
	.asciz	"Failed to set option\n"

.subsections_via_symbols
