	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_audio_remap_init            ## -- Begin function hb_audio_remap_init
	.p2align	4, 0x90
_hb_audio_remap_init:                   ## @hb_audio_remap_init
	.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	%rdx, %r15
	movq	%rsi, %r14
	movl	%edi, %r12d
	movl	$1, %edi
	movl	$32, %esi
	callq	_calloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	leal	-128(%r12), %eax
	cmpl	$10, %eax
	jae	LBB0_4
## %bb.6:
	cltq
	leaq	l_switch.table.hb_audio_remap_init(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	%rax, 24(%rbx)
	testq	%r14, %r14
	je	LBB0_8
## %bb.7:
	testq	%r15, %r15
	je	LBB0_8
## %bb.9:
	movq	%r15, 16(%rbx)
	movq	%r14, 8(%rbx)
	movq	$0, (%rbx)
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	movl	%r12d, %edi
	callq	_av_get_sample_fmt_name
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_hb_error
	jmp	LBB0_5
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
LBB0_2:
	xorl	%eax, %eax
	callq	_hb_error
LBB0_5:
	movq	%rbx, %rdi
	callq	_hb_audio_remap_free
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hb_audio_remap_init: failed to allocate remap"

	.comm	_remap_planar,4,2               ## @remap_planar
	.comm	_remap_u8_interleaved,4,2       ## @remap_u8_interleaved
	.comm	_remap_s16_interleaved,4,2      ## @remap_s16_interleaved
	.comm	_remap_s32_interleaved,4,2      ## @remap_s32_interleaved
	.comm	_remap_flt_interleaved,4,2      ## @remap_flt_interleaved
	.comm	_remap_dbl_interleaved,4,2      ## @remap_dbl_interleaved
L_.str.1:                               ## @.str.1
	.asciz	"hb_audio_remap_init: unsupported sample format '%s'"

L_.str.2:                               ## @.str.2
	.asciz	"hb_audio_remap_init: invalid channel map(s)"

	.section	__DATA,__const
	.p2align	3                               ## @switch.table.hb_audio_remap_init
l_switch.table.hb_audio_remap_init:
	.quad	_remap_planar
	.quad	_remap_u8_interleaved
	.quad	_remap_planar
	.quad	_remap_s32_interleaved
	.quad	_remap_planar
	.quad	_remap_s16_interleaved
	.quad	_remap_planar
	.quad	_remap_flt_interleaved
	.quad	_remap_planar
	.quad	_remap_dbl_interleaved

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_audio_remap_init            ; -- Begin function hb_audio_remap_init
	.p2align	2
_hb_audio_remap_init:                   ; @hb_audio_remap_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	mov	w0, #1
	mov	w1, #32
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.1:
	sub	w8, w22, #128
	cmp	w8, #10
	b.hs	LBB0_6
; %bb.2:
Lloh0:
	adrp	x9, l_switch.table.hb_audio_remap_init@PAGE
Lloh1:
	add	x9, x9, l_switch.table.hb_audio_remap_init@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	str	x8, [x19, #24]
	cbz	x20, LBB0_7
; %bb.3:
	cbz	x21, LBB0_7
; %bb.4:
	stp	x20, x21, [x19, #8]
	str	xzr, [x19]
	b	LBB0_9
LBB0_5:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_8
LBB0_6:
	mov	x0, x22
	bl	_av_get_sample_fmt_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_8:
	bl	_hb_error
	mov	x0, x19
	bl	_hb_audio_remap_free
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hb_audio_remap_init: failed to allocate remap"

	.comm	_remap_planar,4,2               ; @remap_planar
	.comm	_remap_u8_interleaved,4,2       ; @remap_u8_interleaved
	.comm	_remap_s16_interleaved,4,2      ; @remap_s16_interleaved
	.comm	_remap_s32_interleaved,4,2      ; @remap_s32_interleaved
	.comm	_remap_flt_interleaved,4,2      ; @remap_flt_interleaved
	.comm	_remap_dbl_interleaved,4,2      ; @remap_dbl_interleaved
l_.str.1:                               ; @.str.1
	.asciz	"hb_audio_remap_init: unsupported sample format '%s'"

l_.str.2:                               ; @.str.2
	.asciz	"hb_audio_remap_init: invalid channel map(s)"

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.hb_audio_remap_init
l_switch.table.hb_audio_remap_init:
	.quad	_remap_planar
	.quad	_remap_u8_interleaved
	.quad	_remap_planar
	.quad	_remap_s32_interleaved
	.quad	_remap_planar
	.quad	_remap_s16_interleaved
	.quad	_remap_planar
	.quad	_remap_flt_interleaved
	.quad	_remap_planar
	.quad	_remap_dbl_interleaved

.subsections_via_symbols
