	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_subpacket
_decode_subpacket:                      ## @decode_subpacket
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	(%rsi), %r13d
	movl	4(%rdi), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	24(%rbx), %r12
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_decode_bytes_and_gain
	cmpq	$0, 32(%rbx)
	movl	4(%r15), %edx
	je	LBB0_3
## %bb.1:
	movl	(%r15), %ecx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_joint_decode
	testl	%eax, %eax
	jns	LBB0_6
	jmp	LBB0_2
LBB0_3:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mono_decode
	testl	%eax, %eax
	js	LBB0_2
## %bb.4:
	cmpl	$2, 4(%rbx)
	jne	LBB0_6
## %bb.5:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	cltq
	leaq	(%r14,%rax,4), %rdx
	leaq	20(%rbx), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_decode_bytes_and_gain
	movl	(%r15), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mono_decode
	testl	%eax, %eax
	js	LBB0_2
LBB0_6:
	movl	4(%r15), %esi
	movl	40(%rbx), %ecx
	xorl	%r13d, %r13d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_8
## %bb.7:
	movq	8(%rbx), %rax
	movq	(%r14,%rax,8), %r8
	jmp	LBB0_9
LBB0_2:
	movl	%eax, %r13d
	jmp	LBB0_22
LBB0_8:
	xorl	%r8d, %r8d
LBB0_9:
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_mlt_compensate_output
	cmpl	$2, 4(%rbx)
	jne	LBB0_22
## %bb.10:
	cmpq	$0, 32(%rbx)
	movl	(%r15), %esi
	je	LBB0_14
## %bb.11:
	xorl	%r13d, %r13d
	movl	16(%rbx), %ecx
	testq	%r14, %r14
	je	LBB0_16
## %bb.12:
	movq	8(%rbx), %rax
	movq	8(%r14,%rax,8), %r8
	jmp	LBB0_17
LBB0_14:
	leaq	20(%rbx), %rdx
	xorl	%r13d, %r13d
	movl	16(%rbx), %ecx
	testq	%r14, %r14
	je	LBB0_19
## %bb.15:
	movq	8(%rbx), %rax
	movq	8(%r14,%rax,8), %r8
	jmp	LBB0_20
LBB0_16:
	xorl	%r8d, %r8d
LBB0_17:
	movq	%r15, %rdi
	movq	%r12, %rdx
	jmp	LBB0_21
LBB0_19:
	xorl	%r8d, %r8d
LBB0_20:
	movq	%r15, %rdi
LBB0_21:
	callq	_mlt_compensate_output
LBB0_22:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_decode_subpacket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_subpacket
_decode_subpacket:                      ; @decode_subpacket
	.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	x20, x3
	mov	x23, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w24, [x1]
	ldr	w0, [x0, #4]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x22, x21, #24
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	bl	_decode_bytes_and_gain
	ldr	x8, [x21, #32]
	ldr	w2, [x19, #4]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w3, [x19]
	mov	x0, x19
	mov	x1, x21
	bl	_joint_decode
	tbz	w0, #31, LBB0_5
	b	LBB0_20
LBB0_2:
	mov	x0, x19
	mov	x1, x21
	bl	_mono_decode
	tbnz	w0, #31, LBB0_20
; %bb.3:
	ldr	w8, [x21, #4]
	cmp	w8, #2
	b.ne	LBB0_5
; %bb.4:
	cmp	w24, #0
	cinc	w8, w24, lt
	asr	w8, w8, #1
	add	x2, x23, w8, sxtw #2
	add	x3, x21, #20
	mov	x0, x19
	mov	x1, x21
	bl	_decode_bytes_and_gain
	ldr	w2, [x19]
	mov	x0, x19
	mov	x1, x21
	bl	_mono_decode
	tbnz	w0, #31, LBB0_20
LBB0_5:
	ldr	w1, [x19, #4]
	ldr	w3, [x21, #40]
	cbz	x20, LBB0_7
; %bb.6:
	ldr	x8, [x21, #8]
	ldr	x4, [x20, x8, lsl #3]
	b	LBB0_8
LBB0_7:
	mov	x4, #0
LBB0_8:
	mov	x0, x19
	mov	x2, x22
	bl	_mlt_compensate_output
	ldr	w8, [x21, #4]
	cmp	w8, #2
	b.ne	LBB0_19
; %bb.9:
	ldr	x8, [x21, #32]
	ldr	w1, [x19]
	cbz	x8, LBB0_12
; %bb.10:
	ldr	w3, [x21, #16]
	cbz	x20, LBB0_14
; %bb.11:
	ldr	x8, [x21, #8]
	add	x8, x20, x8, lsl #3
	ldr	x4, [x8, #8]
	b	LBB0_15
LBB0_12:
	add	x2, x21, #20
	ldr	w3, [x21, #16]
	cbz	x20, LBB0_16
; %bb.13:
	ldr	x8, [x21, #8]
	add	x8, x20, x8, lsl #3
	ldr	x4, [x8, #8]
	b	LBB0_17
LBB0_14:
	mov	x4, #0
LBB0_15:
	mov	x0, x19
	mov	x2, x22
	b	LBB0_18
LBB0_16:
	mov	x4, #0
LBB0_17:
	mov	x0, x19
LBB0_18:
	bl	_mlt_compensate_output
LBB0_19:
	mov	w0, #0
LBB0_20:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_decode_subpacket
.subsections_via_symbols
