	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_channel_layout_single
_get_channel_layout_single:             ## @get_channel_layout_single
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_channel_layout_map@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movq	(%r12), %rdi
	callq	_FF_ARRAY_ELEMS
	cltq
	addq	$16, %rbx
	cmpq	%rax, %r13
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	8(%rax,%rbx), %rdi
	callq	_strlen
	cmpl	%r15d, %eax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	movq	8(%rax,%rbx), %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	(%r12), %rax
	movl	(%rax,%rbx), %r12d
	jmp	LBB0_18
LBB0_6:
	movq	_channel_names@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_13
## %bb.7:
	movl	$8, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r13
	movq	(%r12), %rdi
	callq	_FF_ARRAY_ELEMS
	cltq
	addq	$16, %rbx
	cmpq	%rax, %r13
	jge	LBB0_13
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	callq	_strlen
	cmpl	%r15d, %eax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx), %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movl	$1, %r12d
	movl	%r13d, %ecx
	shll	%cl, %r12d
	jmp	LBB0_18
LBB0_13:
	movq	_errno@GOTPCREL(%rip), %rbx
	movq	$0, (%rbx)
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movl	$10, %edx
	callq	_strtol
	cmpq	$0, (%rbx)
	jne	LBB0_16
## %bb.14:
	movq	-48(%rbp), %rcx
	movq	%rcx, %rdx
	subq	%r14, %rdx
	incq	%rdx
	movslq	%r15d, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_16
## %bb.15:
	cmpb	$99, (%rcx)
	jne	LBB0_16
## %bb.19:
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_av_get_default_channel_layout  ## TAILCALL
LBB0_16:
	movq	$0, (%rbx)
	leaq	-48(%rbp), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_strtoll
	cmpq	$0, (%rbx)
	jne	LBB0_18
## %bb.17:
	movq	-48(%rbp), %rcx
	subq	%r14, %rcx
	movslq	%r15d, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_18
## %bb.20:
	movl	%eax, %edi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FFMAX                          ## TAILCALL
LBB0_18:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_channel_layout_map,8,3         ## @channel_layout_map
	.comm	_channel_names,8,3              ## @channel_names
	.comm	_errno,8,3                      ## @errno
	.no_dead_strip	_get_channel_layout_single
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_channel_layout_single
_get_channel_layout_single:             ; @get_channel_layout_single
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _channel_layout_map@GOTPAGE
Lloh1:
	ldr	x21, [x21, _channel_layout_map@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x22, #0
	mov	x23, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldr	x0, [x21]
	bl	_FF_ARRAY_ELEMS
	add	x22, x22, #16
	cmp	x23, w0, sxtw
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x8, x8, x22
	ldr	x0, [x8, #8]
	bl	_strlen
	cmp	w0, w19
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	add	x8, x8, x22
	ldr	x0, [x8, #8]
	mov	x1, x20
	mov	x2, x19
	bl	_memcmp
	cbnz	w0, LBB0_2
; %bb.5:
	ldr	x8, [x21]
	ldr	w0, [x8, x22]
	b	LBB0_21
LBB0_6:
Lloh2:
	adrp	x21, _channel_names@GOTPAGE
Lloh3:
	ldr	x21, [x21, _channel_names@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.7:
	mov	x22, #0
	mov	w23, #8
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x22, x22, #1
	ldr	x0, [x21]
	bl	_FF_ARRAY_ELEMS
	add	x23, x23, #16
	cmp	x22, w0, sxtw
	b.ge	LBB0_13
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x0, [x8, x23]
	cbz	x0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	bl	_strlen
	cmp	w0, w19
	b.ne	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x21]
	ldr	x0, [x8, x23]
	mov	x1, x20
	mov	x2, x19
	bl	_memcmp
	cbnz	w0, LBB0_8
; %bb.12:
	mov	w8, #1
	lsl	w0, w8, w22
	b	LBB0_21
LBB0_13:
Lloh4:
	adrp	x21, _errno@GOTPAGE
Lloh5:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	str	xzr, [x21]
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #10
	bl	_strtol
	ldr	x8, [x21]
	cbnz	x8, LBB0_17
; %bb.14:
	ldr	x8, [sp, #8]
	sub	x9, x8, x20
	add	x9, x9, #1
	cmp	x9, w19, sxtw
	b.ne	LBB0_17
; %bb.15:
	ldrb	w8, [x8]
	cmp	w8, #99
	b.ne	LBB0_17
; %bb.16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_av_get_default_channel_layout
LBB0_17:
	str	xzr, [x21]
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #0
	bl	_strtoll
	mov	x1, x0
	mov	w0, #0
	ldr	x8, [x21]
	cbnz	x8, LBB0_21
; %bb.18:
	ldr	x8, [sp, #8]
	sub	x8, x8, x20
	cmp	x8, w19, sxtw
	b.ne	LBB0_20
; %bb.19:
	mov	x0, x1
	mov	w1, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_FFMAX
LBB0_20:
	mov	w0, #0
LBB0_21:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_channel_layout_map,8,3         ; @channel_layout_map
	.comm	_channel_names,8,3              ; @channel_names
	.comm	_errno,8,3                      ; @errno
	.no_dead_strip	_get_channel_layout_single
.subsections_via_symbols
