	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xma_decode_packet
_xma_decode_packet:                     ## @xma_decode_packet
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movl	$0, -60(%rbp)
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	(%r12), %rsi
	movq	48(%r12), %rax
	movq	(%rax,%rsi,8), %rdx
	movq	16(%rdx), %rax
	cmpl	$0, (%rax)
	jne	LBB0_3
## %bb.1:
	movl	$512, (%rdx)                    ## imm = 0x200
	movq	%r15, %rdi
	movq	%rdx, %rsi
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_41
## %bb.2:
	movq	(%r12), %rsi
	movq	48(%r12), %rax
	movq	(%rax,%rsi,8), %rdx
LBB0_3:
	shlq	$5, %rsi
	addq	40(%r12), %rsi
	leaq	-60(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %r8
	callq	_decode_packet
	cmpl	$0, -60(%rbp)
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_7
## %bb.4:
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movslq	(%rcx,%rax,4), %rbx
	movq	32(%r12), %rcx
	movq	16(%r12), %rdx
	movslq	(%rdx,%rax,4), %rdi
	shlq	$11, %rdi
	addq	(%rcx,%rbx,8), %rdi
	movq	48(%r12), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rsi
	movl	$2048, %edx                     ## imm = 0x800
	callq	_memcpy
	movq	(%r12), %rax
	movq	40(%r12), %rcx
	movq	%rax, %rdx
	shlq	$5, %rdx
	cmpl	$2, (%rcx,%rdx)
	jl	LBB0_6
## %bb.5:
	movq	16(%r12), %rcx
	movq	32(%r12), %rdx
	movslq	(%rcx,%rax,4), %rdi
	shlq	$11, %rdi
	addq	8(%rdx,%rbx,8), %rdi
	movq	48(%r12), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	8(%rax), %rax
	movq	8(%rax), %rsi
	movl	$2048, %edx                     ## imm = 0x800
	callq	_memcpy
	movq	(%r12), %rax
LBB0_6:
	movq	16(%r12), %rcx
	incl	(%rcx,%rax,4)
	jmp	LBB0_9
LBB0_7:
	testl	%eax, %eax
	js	LBB0_42
## %bb.8:
	movq	(%r12), %rax
LBB0_9:
	movq	40(%r12), %rcx
	shlq	$5, %rax
	cmpq	$0, 24(%rcx,%rax)
	jne	LBB0_11
## %bb.10:
	cmpq	$0, 16(%rcx,%rax)
	je	LBB0_40
LBB0_11:
	cmpq	$0, 8(%rcx,%rax)
	movl	24(%r12), %r9d
	je	LBB0_23
## %bb.12:
	xorl	%r11d, %r11d
	cmpl	$2, %r9d
	jl	LBB0_22
## %bb.13:
	movl	8(%rcx), %ebx
	leaq	-1(%r9), %r8
	cmpl	$2, %r9d
	jne	LBB0_15
## %bb.14:
	movl	$1, %edi
LBB0_19:
	testb	$1, %r8b
	je	LBB0_21
## %bb.20:
	movq	%rdi, %rax
	shlq	$5, %rax
	movslq	%ebx, %rdx
	cmpq	%rdx, 8(%rcx,%rax)
	cmovll	%edi, %r11d
LBB0_21:
	movslq	%r11d, %r11
LBB0_22:
	movq	%r11, (%r12)
LBB0_23:
	testl	%r9d, %r9d
	jle	LBB0_29
## %bb.24:
	movl	$8, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rbx), %rsi
	decq	%rsi
	xorl	%edi, %edi
	callq	_FFMAX
	movq	40(%r12), %rcx
	movq	%rax, (%rcx,%rbx)
	incq	%r14
	movslq	24(%r12), %rax
	addq	$32, %rbx
	cmpq	%rax, %r14
	jl	LBB0_25
## %bb.26:
	testl	%eax, %eax
	jle	LBB0_29
## %bb.27:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movl	%r13d, %edi
	callq	_FFMIN
	movl	%eax, %r13d
	incq	%rbx
	movslq	24(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_28
LBB0_29:
	testl	%r13d, %r13d
	jle	LBB0_40
## %bb.30:
	movl	%r13d, %eax
	shll	$9, %eax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, (%rsi)
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_41
## %bb.31:
	cmpl	$0, 24(%r12)
	jle	LBB0_39
## %bb.32:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_38:                                ##   in Loop: Header=BB0_33 Depth=1
	incq	%r14
	movslq	24(%r12), %rax
	addq	$4, %rbx
	cmpq	%rax, %r14
	jge	LBB0_39
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	32(%r12), %rcx
	movslq	(%rax,%rbx), %r15
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rdx), %rax
	movq	(%rax,%r15,8), %rdi
	movq	(%rcx,%r15,8), %rsi
	movl	(%rdx), %edx
	shll	$2, %edx
	callq	_memcpy
	movq	40(%r12), %rax
	cmpl	$2, (%rax,%rbx,8)
	jl	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_33 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	movq	8(%rax,%r15,8), %rdi
	movq	32(%r12), %rax
	movq	8(%rax,%r15,8), %rsi
	movl	(%rcx), %edx
	shll	$2, %edx
	callq	_memcpy
LBB0_35:                                ##   in Loop: Header=BB0_33 Depth=1
	movq	16(%r12), %rax
	movl	(%rax,%rbx), %edx
	subl	%r13d, %edx
	movl	%edx, (%rax,%rbx)
	je	LBB0_38
## %bb.36:                              ##   in Loop: Header=BB0_33 Depth=1
	movq	32(%r12), %rax
	movq	(%rax,%r15,8), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	leaq	(%rdi,%rax,4), %rsi
	shll	$11, %edx
	callq	_memmove
	movq	40(%r12), %rax
	cmpl	$2, (%rax,%rbx,8)
	jl	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_33 Depth=1
	movq	16(%r12), %rax
	movq	32(%r12), %rcx
	movq	8(%rcx,%r15,8), %rdi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx), %rcx
	leaq	(%rdi,%rcx,4), %rsi
	movl	(%rax,%rbx), %edx
	shll	$11, %edx
	callq	_memmove
	jmp	LBB0_38
LBB0_39:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_40
LBB0_42:
	movq	16(%r12), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	$0, (%r12)
LBB0_40:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_41:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r8, %r10
	andq	$-2, %r10
	leaq	72(%rcx), %rax
	xorl	%r11d, %r11d
	movl	$1, %edi
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	addq	$2, %rdi
	addq	$64, %rax
	cmpq	%r10, %r14
	je	LBB0_19
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	%r11d, %edx
	movslq	%ebx, %rbx
	movq	-32(%rax), %rsi
	cmpq	%rbx, %rsi
	movl	%edi, %r11d
	cmovgel	%edx, %r11d
	cmovll	%esi, %ebx
	movq	(%rax), %rsi
	movslq	%ebx, %rdx
	leaq	1(%rdi), %r14
	cmpq	%rdx, %rsi
	jge	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%r14d, %r11d
	movl	%esi, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.no_dead_strip	_xma_decode_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xma_decode_packet
_xma_decode_packet:                     ; @xma_decode_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x3
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
	ldr	x25, [x0]
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	x9, [x25, #48]
	ldr	x8, [x25]
	ldr	x2, [x9, x8, lsl #3]
	ldr	x9, [x2, #16]
	ldr	w9, [x9]
	cbnz	w9, LBB0_3
; %bb.1:
	mov	w8, #512
	str	w8, [x2]
	mov	x0, x23
	mov	x1, x2
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_34
; %bb.2:
	ldr	x8, [x25]
	ldr	x9, [x25, #48]
	ldr	x2, [x9, x8, lsl #3]
LBB0_3:
	ldr	x9, [x25, #40]
	add	x1, x9, x8, lsl #5
	add	x3, sp, #12
	mov	x0, x23
	mov	x4, x24
	bl	_decode_packet
	mov	x22, x0
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_7
; %bb.4:
	ldp	x9, x8, [x25]
	lsl	x10, x9, #2
	ldrsw	x24, [x8, x10]
	ldr	x8, [x25, #32]
	ldr	x8, [x8, x24, lsl #3]
	ldr	x11, [x25, #16]
	ldrsw	x10, [x11, x10]
	add	x0, x8, x10, lsl #11
	ldr	x8, [x25, #48]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x8, [x8, #8]
	ldr	x1, [x8]
	mov	w2, #2048
	bl	_memcpy
	ldr	x8, [x25, #40]
	ldr	x9, [x25]
	lsl	x10, x9, #5
	ldr	w8, [x8, x10]
	cmp	w8, #2
	b.lt	LBB0_6
; %bb.5:
	ldr	x8, [x25, #32]
	add	x8, x8, x24, lsl #3
	ldr	x8, [x8, #8]
	ldr	x10, [x25, #16]
	ldrsw	x10, [x10, x9, lsl #2]
	add	x0, x8, x10, lsl #11
	ldr	x8, [x25, #48]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x8, [x8, #8]
	ldr	x1, [x8, #8]
	mov	w2, #2048
	bl	_memcpy
	ldr	x9, [x25]
LBB0_6:
	ldr	x8, [x25, #16]
	lsl	x10, x9, #2
	ldr	w11, [x8, x10]
	add	w11, w11, #1
	str	w11, [x8, x10]
	b	LBB0_9
LBB0_7:
	tbnz	w22, #31, LBB0_36
; %bb.8:
	ldr	x9, [x25]
LBB0_9:
	ldr	x8, [x25, #40]
	add	x9, x8, x9, lsl #5
	ldr	x10, [x9, #24]
	cbnz	x10, LBB0_11
; %bb.10:
	ldr	x10, [x9, #16]
	cbz	x10, LBB0_37
LBB0_11:
	ldr	x10, [x9, #8]
	ldr	w9, [x25, #24]
	cbz	x10, LBB0_18
; %bb.12:
	cmp	w9, #2
	b.lt	LBB0_16
; %bb.13:
	mov	w10, #0
	ldr	w11, [x8, #8]
	add	x12, x8, #40
	mov	w13, #1
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x12], #32
	cmp	x14, w11, sxtw
	csel	w10, w13, w10, lt
	csel	w11, w14, w11, lt
	add	x13, x13, #1
	cmp	x9, x13
	b.ne	LBB0_14
; %bb.15:
	sxtw	x10, w10
	b	LBB0_17
LBB0_16:
	mov	x10, #0
LBB0_17:
	str	x10, [x25]
LBB0_18:
	cmp	w9, #1
	b.lt	LBB0_24
; %bb.19:
	mov	x24, #0
	mov	w26, #8
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, x26]
	sub	x1, x8, #1
	mov	w0, #0
	bl	_FFMAX
	ldr	x8, [x25, #40]
	str	x0, [x8, x26]
	add	x24, x24, #1
	ldrsw	x9, [x25, #24]
	add	x26, x26, #32
	cmp	x24, x9
	b.lt	LBB0_20
; %bb.21:
	cmp	w9, #1
	b.lt	LBB0_24
; %bb.22:
	mov	x24, #0
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25, #16]
	ldr	w1, [x8, x24, lsl #2]
	mov	x0, x21
	bl	_FFMIN
	mov	x21, x0
	add	x24, x24, #1
	ldrsw	x8, [x25, #24]
	cmp	x24, x8
	b.lt	LBB0_23
LBB0_24:
	cmp	w21, #1
	b.lt	LBB0_37
; %bb.25:
	lsl	w8, w21, #9
	str	w8, [x20]
	mov	x0, x23
	mov	x1, x20
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_34
; %bb.26:
	ldr	w8, [x25, #24]
	cmp	w8, #1
	b.lt	LBB0_35
; %bb.27:
	mov	x23, #0
	mov	x24, #0
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x25, #24]
	add	x23, x23, #32
	cmp	x24, x8
	b.ge	LBB0_35
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25, #8]
	ldrsw	x26, [x8, x24, lsl #2]
	ldr	x8, [x20, #8]
	lsl	x9, x26, #3
	ldr	x0, [x8, x9]
	ldr	x8, [x25, #32]
	ldr	x1, [x8, x9]
	ldr	w8, [x20]
	lsl	w2, w8, #2
	bl	_memcpy
	ldr	x8, [x25, #40]
	ldr	w8, [x8, x23]
	cmp	w8, #2
	b.lt	LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	ldr	x8, [x20, #8]
	add	w9, w26, #1
	sbfiz	x9, x9, #3, #32
	ldr	x0, [x8, x9]
	ldr	x8, [x25, #32]
	ldr	x1, [x8, x9]
	ldr	w8, [x20]
	lsl	w2, w8, #2
	bl	_memcpy
LBB0_31:                                ;   in Loop: Header=BB0_29 Depth=1
	ldr	x9, [x25, #16]
	lsl	x10, x24, #2
	ldr	w8, [x9, x10]
	subs	w8, w8, w21
	str	w8, [x9, x10]
	b.eq	LBB0_28
; %bb.32:                               ;   in Loop: Header=BB0_29 Depth=1
	ldr	x9, [x25, #32]
	ldr	x0, [x9, x26, lsl #3]
	ldrsw	x9, [x20]
	add	x1, x0, x9, lsl #2
	lsl	w2, w8, #11
	bl	_memmove
	ldr	x8, [x25, #40]
	ldr	w8, [x8, x23]
	cmp	w8, #2
	b.lt	LBB0_28
; %bb.33:                               ;   in Loop: Header=BB0_29 Depth=1
	ldr	x8, [x25, #32]
	add	x8, x8, x26, lsl #3
	ldr	x0, [x8, #8]
	ldrsw	x8, [x20]
	add	x1, x0, x8, lsl #2
	ldr	x8, [x25, #16]
	ldr	w8, [x8, x24, lsl #2]
	lsl	w2, w8, #11
	bl	_memmove
	b	LBB0_28
LBB0_34:
	mov	x22, x0
	b	LBB0_37
LBB0_35:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_37
LBB0_36:
	ldr	x0, [x25, #16]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	str	xzr, [x25]
LBB0_37:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.no_dead_strip	_xma_decode_packet
.subsections_via_symbols
