	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_get_channel_layout          ## -- Begin function av_get_channel_layout
	.p2align	4, 0x90
_av_get_channel_layout:                 ## @av_get_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_strlen
	testl	%eax, %eax
	jle	LBB0_10
## %bb.1:
	movslq	%eax, %r12
	addq	%r15, %r12
	xorl	%r14d, %r14d
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpq	%r12, %r15
	jae	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rbx), %eax
	cmpb	$43, %al
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpb	$124, %al
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	incq	%rbx
	cmpq	%r12, %rbx
	jb	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %esi
	subl	%r15d, %esi
	movq	%r15, %rdi
	callq	_get_channel_layout_single
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	orl	%eax, %r14d
	incq	%rbx
	movq	%rbx, %r15
	cmpq	%r12, %rbx
	jb	LBB0_2
	jmp	LBB0_11
LBB0_10:
	xorl	%r14d, %r14d
LBB0_11:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_get_channel_layout          ; -- Begin function av_get_channel_layout
	.p2align	2
_av_get_channel_layout:                 ; @av_get_channel_layout
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.1:
	mov	w19, #0
	sxtw	x8, w0
	add	x21, x20, x8
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	mov	x22, x20
	cmp	x20, x21
	b.hs	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x8, x21, x20
	mov	x22, x20
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w9, [x22]
	cmp	w9, #43
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	cmp	w9, #124
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x22, x22, #1
	subs	x8, x8, #1
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x21
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	sub	w1, w22, w20
	mov	x0, x20
	bl	_get_channel_layout_single
	cbz	w0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	orr	w19, w0, w19
	add	x20, x22, #1
	cmp	x20, x21
	b.lo	LBB0_2
	b	LBB0_11
LBB0_10:
	mov	w19, #0
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
