	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_audio_remap_build_table     ## -- Begin function hb_audio_remap_build_table
	.p2align	4, 0x90
_hb_audio_remap_build_table:            ## @hb_audio_remap_build_table
	.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
	movq	%rcx, %r14
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	_AV_CH_LAYOUT_STEREO_DOWNMIX@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_AV_CH_LAYOUT_STEREO@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_2:
	movl	%r15d, %edi
	callq	_av_get_channel_layout_nb_channels
	movl	%eax, %ebx
	leal	(,%rbx,4), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	(%r13), %r10
	movl	(%r10), %edx
	testl	%edx, %edx
	je	LBB0_14
## %bb.3:
	testl	%ebx, %ebx
	jle	LBB0_14
## %bb.4:
	movq	(%r12), %r9
	leaq	4(%r9), %r8
	xorl	%esi, %esi
	xorl	%r11d, %r11d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	testl	%r15d, %edx
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r9), %eax
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ecx, %ecx
	movq	%r8, %rdi
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%eax, %edx
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	andl	%r15d, %eax
	cmpl	$1, %eax
	sbbl	$-1, %ecx
	movl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	addq	$4, %rdi
	cmpl	%ebx, %ecx
	jl	LBB0_8
	jmp	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r11d, %rax
	incl	%r11d
	movl	%ecx, (%r14,%rax,4)
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%r10,%rsi,4), %edx
	testl	%edx, %edx
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	incq	%rsi
	cmpl	%ebx, %r11d
	jl	LBB0_5
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CH_LAYOUT_STEREO_DOWNMIX,4,2 ## @AV_CH_LAYOUT_STEREO_DOWNMIX
	.comm	_AV_CH_LAYOUT_STEREO,4,2        ## @AV_CH_LAYOUT_STEREO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_audio_remap_build_table     ; -- Begin function hb_audio_remap_build_table
	.p2align	2
_hb_audio_remap_build_table:            ; @hb_audio_remap_build_table
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _AV_CH_LAYOUT_STEREO_DOWNMIX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_CH_LAYOUT_STEREO_DOWNMIX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AV_CH_LAYOUT_STEREO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_CH_LAYOUT_STEREO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w2
	csel	w20, w9, w2, eq
	mov	x0, x20
	bl	_av_get_channel_layout_nb_channels
	mov	x21, x0
	lsl	w2, w0, #2
	mov	x0, x19
	mov	w1, #0
	bl	_memset
	ldr	x8, [x23]
	ldr	w13, [x8]
	cmp	w13, #0
	ccmp	w21, #1, #8, ne
	b.ge	LBB0_2
LBB0_1:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x9, #0
	mov	w11, #0
	ldr	x10, [x22]
	add	x12, x10, #4
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w14, [x19, w11, sxtw #2]
	add	w11, w11, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #1
	ldr	w13, [x8, x9, lsl #2]
	cmp	w13, #0
	ccmp	w11, w21, #0, ne
	b.ge	LBB0_1
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	tst	w13, w20
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w15, [x10]
	cbz	w15, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w14, #0
	mov	x16, x12
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w13, w15
	b.eq	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	tst	w15, w20
	cinc	w14, w14, ne
	ldr	w15, [x16], #4
	cmp	w15, #0
	ccmp	w14, w21, #0, ne
	b.lt	LBB0_8
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CH_LAYOUT_STEREO_DOWNMIX,4,2 ; @AV_CH_LAYOUT_STEREO_DOWNMIX
	.comm	_AV_CH_LAYOUT_STEREO,4,2        ; @AV_CH_LAYOUT_STEREO
.subsections_via_symbols
