	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_guess_input_channel_layout     ## -- Begin function guess_input_channel_layout
	.p2align	4, 0x90
_guess_input_channel_layout:            ## @guess_input_channel_layout
	.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	%r12
	pushq	%rbx
	subq	$272, %rsp                      ## imm = 0x110
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	16(%rdi), %rbx
	movl	$1, %r14d
	cmpl	$0, (%rbx)
	jne	LBB0_5
## %bb.1:
	movq	%rdi, %r12
	movl	4(%rbx), %edi
	cmpl	12(%r12), %edi
	jg	LBB0_4
## %bb.2:
	callq	_av_get_default_channel_layout
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	4(%rbx), %edx
	leaq	-304(%rbp), %r15
	movq	%r15, %rdi
	movl	$256, %esi                      ## imm = 0x100
	movl	%eax, %ecx
	callq	_av_get_channel_layout_string
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r12), %ecx
	movq	(%r12), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	movq	%r15, %r9
	callq	_av_log
	jmp	LBB0_5
LBB0_4:
	xorl	%r14d, %r14d
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%r14d, %eax
	addq	$272, %rsp                      ## imm = 0x110
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Guessed Channel Layout for Input Stream #%d.%d : %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_guess_input_channel_layout     ; -- Begin function guess_input_channel_layout
	.p2align	2
_guess_input_channel_layout:            ; @guess_input_channel_layout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x28, x27, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w27, -40
	.cfi_offset w28, -48
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x20, [x0, #16]
	ldr	w8, [x20]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_6
LBB0_2:
	mov	x19, x0
	ldr	w0, [x20, #4]
	ldr	w8, [x19, #12]
	cmp	w0, w8
	b.gt	LBB0_5
; %bb.3:
	bl	_av_get_default_channel_layout
	str	w0, [x20]
	cbz	w0, LBB0_5
; %bb.4:
	mov	x3, x0
	ldr	w2, [x20, #4]
	add	x0, sp, #8
	mov	w1, #256
	bl	_av_get_channel_layout_string
Lloh3:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w3, [x19, #8]
	ldr	x8, [x19]
	ldr	w4, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	add	x5, sp, #8
	mov	x0, #0
	bl	_av_log
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldur	x8, [x29, #-40]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Guessed Channel Layout for Input Stream #%d.%d : %s\n"

.subsections_via_symbols
