	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function mxpeg_decode_mxm
LCPI0_0:
	.long	255                             ## 0xff
	.long	4294967295                      ## 0xffffffff
	.long	4294967295                      ## 0xffffffff
	.long	4294967295                      ## 0xffffffff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_mxpeg_decode_mxm:                      ## @mxpeg_decode_mxm
	.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
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	16(%rsi), %rdi
	callq	_AV_RL16
	movl	%eax, (%r14)
	leaq	24(%r15), %rdi
	callq	_AV_RL16
	movq	%rax, %rbx
	movl	%ebx, 4(%r14)
	imull	(%r14), %ebx
	addl	$7, %ebx
	movl	%ebx, %r12d
	shrl	$3, %r12d
	addl	$-12, %r13d
	cmpl	%r13d, %r12d
	jbe	LBB0_2
## %bb.1:
	movl	40(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_2:
	cmpl	%r12d, 8(%r14)
	je	LBB0_6
## %bb.3:
	movl	$0, 8(%r14)
	leaq	16(%r14), %rdi
	callq	_av_freep
	movl	%r12d, %edi
	callq	_av_malloc
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	leaq	24(%r14), %rdi
	callq	_av_freep
	movl	%r12d, %edi
	callq	_av_mallocz
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movl	%r12d, 8(%r14)
LBB0_6:
	movq	16(%r14), %rdi
	addq	$48, %r15
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movl	$1, 32(%r14)
	cmpl	$0, 36(%r14)
	jne	LBB0_31
## %bb.7:
	movl	$1, %eax
	cmpl	$8, %ebx
	jb	LBB0_30
## %bb.8:
	movq	16(%r14), %rax
	movq	24(%r14), %rcx
	cmpl	$2, %r12d
	movl	$1, %r9d
	cmovael	%r12d, %r9d
	movl	$255, %ebx
	cmpl	$8, %r9d
	jb	LBB0_9
## %bb.14:
	leaq	(%rax,%r9,4), %rsi
	cmpq	%rsi, %rcx
	jae	LBB0_17
## %bb.15:
	leaq	(%rcx,%r9,4), %rsi
	cmpq	%rsi, %rax
	jae	LBB0_17
LBB0_9:
	xorl	%esi, %esi
LBB0_24:
	movq	%rsi, %r8
	notq	%r8
	testb	$1, %r9b
	jne	LBB0_26
## %bb.25:
                                        ## implicit-def: $edi
	jmp	LBB0_27
LBB0_10:
	movl	40(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_12
LBB0_11:
	movl	40(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_12:
	callq	_av_log
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_26:
	movl	(%rcx,%rsi,4), %edi
	orl	(%rax,%rsi,4), %edi
	movl	%edi, (%rcx,%rsi,4)
	andl	%ebx, %edi
	orq	$1, %rsi
	movl	%edi, %ebx
LBB0_27:
	addq	%r9, %r8
	je	LBB0_29
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rsi,4), %edx
	movl	4(%rcx,%rsi,4), %edi
	orl	(%rax,%rsi,4), %edx
	movl	%edx, (%rcx,%rsi,4)
	andl	%ebx, %edx
	orl	4(%rax,%rsi,4), %edi
	movl	%edi, 4(%rcx,%rsi,4)
	andl	%edx, %edi
	addq	$2, %rsi
	movl	%edi, %ebx
	cmpq	%rsi, %r9
	jne	LBB0_28
	jmp	LBB0_29
LBB0_17:
	movl	%r9d, %esi
	andl	$-8, %esi
	leaq	-8(%rsi), %rdi
	movq	%rdi, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.18:
	movq	%r8, %rbx
	andq	$-2, %rbx
	pcmpeqd	%xmm1, %xmm1
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [255,4294967295,4294967295,4294967295]
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rax,%rdi,4), %xmm2
	movdqu	16(%rax,%rdi,4), %xmm3
	movdqu	(%rcx,%rdi,4), %xmm4
	por	%xmm2, %xmm4
	movdqu	16(%rcx,%rdi,4), %xmm2
	por	%xmm3, %xmm2
	movdqu	32(%rcx,%rdi,4), %xmm3
	movdqu	48(%rcx,%rdi,4), %xmm5
	movdqu	%xmm4, (%rcx,%rdi,4)
	movdqu	%xmm2, 16(%rcx,%rdi,4)
	pand	%xmm0, %xmm4
	pand	%xmm1, %xmm2
	movdqu	32(%rax,%rdi,4), %xmm0
	por	%xmm3, %xmm0
	movdqu	48(%rax,%rdi,4), %xmm1
	por	%xmm5, %xmm1
	movdqu	%xmm0, 32(%rcx,%rdi,4)
	movdqu	%xmm1, 48(%rcx,%rdi,4)
	pand	%xmm4, %xmm0
	pand	%xmm2, %xmm1
	addq	$16, %rdi
	addq	$-2, %rbx
	jne	LBB0_19
	jmp	LBB0_21
LBB0_20:
	pcmpeqd	%xmm1, %xmm1
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [255,4294967295,4294967295,4294967295]
	xorl	%edi, %edi
LBB0_21:
	testb	$1, %r8b
	je	LBB0_23
## %bb.22:
	movdqu	(%rax,%rdi,4), %xmm2
	movdqu	16(%rax,%rdi,4), %xmm3
	movdqu	(%rcx,%rdi,4), %xmm4
	por	%xmm2, %xmm4
	movdqu	16(%rcx,%rdi,4), %xmm2
	por	%xmm3, %xmm2
	movdqu	%xmm4, (%rcx,%rdi,4)
	movdqu	%xmm2, 16(%rcx,%rdi,4)
	pand	%xmm4, %xmm0
	pand	%xmm2, %xmm1
LBB0_23:
	pand	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	pand	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	pand	%xmm1, %xmm0
	movd	%xmm0, %ebx
	movl	%ebx, %edi
	cmpq	%r9, %rsi
	jne	LBB0_24
LBB0_29:
	xorl	%eax, %eax
	cmpl	$255, %edi
	sete	%al
LBB0_30:
	movl	%eax, 36(%r14)
LBB0_31:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MXM bitmask is not complete\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"MXM bitmask memory allocation error\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"Completion bitmask memory allocation error\n"

	.no_dead_strip	_mxpeg_decode_mxm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function mxpeg_decode_mxm
lCPI0_0:
	.long	255                             ; 0xff
	.long	4294967295                      ; 0xffffffff
	.long	4294967295                      ; 0xffffffff
	.long	4294967295                      ; 0xffffffff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mxpeg_decode_mxm:                      ; @mxpeg_decode_mxm
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
	add	x0, x1, #16
	bl	_AV_RL16
	str	w0, [x19]
	add	x0, x20, #24
	bl	_AV_RL16
	str	w0, [x19, #4]
	ldr	w8, [x19]
	orr	w9, wzr, #0x7
	madd	w23, w8, w0, w9
	lsr	w21, w23, #3
	sub	w8, w22, #12
	cmp	w21, w8
	b.ls	LBB0_2
; %bb.1:
	ldr	w0, [x19, #40]
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_17
LBB0_2:
	ldr	w8, [x19, #8]
	cmp	w8, w21
	b.eq	LBB0_6
; %bb.3:
	str	wzr, [x19, #8]
	add	x0, x19, #16
	bl	_av_freep
	mov	x0, x21
	bl	_av_malloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_9
; %bb.4:
	add	x0, x19, #24
	bl	_av_freep
	mov	x0, x21
	bl	_av_mallocz
	str	x0, [x19, #24]
	cbz	x0, LBB0_15
; %bb.5:
	str	w21, [x19, #8]
LBB0_6:
	ldr	x0, [x19, #16]
	add	x1, x20, #48
	mov	x2, x21
	bl	_memcpy
	mov	w8, #1
	str	w8, [x19, #32]
	ldr	w8, [x19, #36]
	cbnz	w8, LBB0_23
; %bb.7:
	cmp	w23, #8
	b.hs	LBB0_10
; %bb.8:
	mov	w8, #1
	b	LBB0_22
LBB0_9:
	ldr	w0, [x19, #40]
Lloh7:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_10:
	ldp	x8, x10, [x19, #16]
	cmp	w21, #1
	csinc	w9, w21, wzr, hi
	cmp	w9, #16
	b.lo	LBB0_18
; %bb.11:
	lsl	x11, x9, #2
	add	x12, x10, x11
	add	x11, x8, x11
	cmp	x10, x11
	ccmp	x8, x12, #2, lo
	b.lo	LBB0_18
; %bb.12:
	and	x11, x9, #0x1ffffff0
	add	x12, x10, #32
Lloh12:
	adrp	x13, lCPI0_0@PAGE
Lloh13:
	ldr	q0, [x13, lCPI0_0@PAGEOFF]
	add	x13, x8, #32
	movi.2d	v1, #0xffffffffffffffff
	mov	x14, x11
	movi.2d	v2, #0xffffffffffffffff
	movi.2d	v3, #0xffffffffffffffff
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x13, #-32]
	ldp	q6, q7, [x13], #64
	ldp	q16, q17, [x12, #-32]
	ldp	q18, q19, [x12]
	orr.16b	v4, v16, v4
	orr.16b	v5, v17, v5
	orr.16b	v6, v18, v6
	orr.16b	v7, v19, v7
	stp	q4, q5, [x12, #-32]
	stp	q6, q7, [x12], #64
	and.16b	v0, v4, v0
	and.16b	v1, v5, v1
	and.16b	v2, v6, v2
	and.16b	v3, v7, v3
	subs	x14, x14, #16
	b.ne	LBB0_13
; %bb.14:
	and.16b	v0, v1, v0
	and.16b	v0, v2, v0
	and.16b	v0, v3, v0
	ext.16b	v1, v0, v0, #8
	and.8b	v0, v0, v1
	fmov	w12, s0
	mov.s	w13, v0[1]
	and	w12, w12, w13
	cmp	x11, x9
	b.ne	LBB0_19
	b	LBB0_21
LBB0_15:
	ldr	w0, [x19, #40]
Lloh14:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str.2@PAGE
Lloh18:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_16:
	bl	_av_log
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_18:
	mov	x11, #0
	mov	w12, #255
LBB0_19:
	lsl	x13, x11, #2
	add	x10, x10, x13
	add	x8, x8, x13
	sub	x9, x11, x9
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8], #4
	ldr	w13, [x10]
	orr	w11, w13, w11
	str	w11, [x10], #4
	and	w12, w11, w12
	adds	x9, x9, #1
	b.lo	LBB0_20
LBB0_21:
	cmp	w12, #255
	cset	w8, eq
LBB0_22:
	str	w8, [x19, #36]
LBB0_23:
	mov	w0, #0
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MXM bitmask is not complete\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"MXM bitmask memory allocation error\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"Completion bitmask memory allocation error\n"

	.no_dead_strip	_mxpeg_decode_mxm
.subsections_via_symbols
