	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function planarize_audio
_planarize_audio:                       ## @planarize_audio
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$0, 40(%rdi)
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movl	(%rdi), %edx
	cmpl	4(%rdi), %edx
	jle	LBB0_4
## %bb.2:
	movq	24(%rbx), %rdi
	imull	48(%rbx), %edx
	imull	8(%rbx), %edx
	movl	%edx, %esi
	callq	_av_realloc
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movl	(%rbx), %edx
	movl	%edx, 4(%rbx)
LBB0_4:
	cmpq	$0, 32(%rbx)
	movq	24(%rbx), %rdi
	je	LBB0_5
## %bb.7:
	movq	16(%rbx), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_planarize_float                ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movq	16(%rbx), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_planarize_s16                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_planarize_audio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function planarize_audio
_planarize_audio:                       ; @planarize_audio
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0, #40]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x19, x0
	ldp	w2, w8, [x0]
	cmp	w2, w8
	b.le	LBB0_4
; %bb.2:
	ldr	x0, [x19, #24]
	ldr	w8, [x19, #48]
	mul	w8, w8, w2
	ldr	w9, [x19, #8]
	mul	w1, w8, w9
	bl	_av_realloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w2, [x19]
	str	w2, [x19, #4]
LBB0_4:
	ldp	x0, x8, [x19, #24]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x1, [x19, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_planarize_float
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x1, [x19, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_planarize_s16
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_planarize_audio
.subsections_via_symbols
