	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxpeg_check_dimensions
_mxpeg_check_dimensions:                ## @mxpeg_check_dimensions
	.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
	movq	%rdx, %rax
	movl	(%rsi), %ecx
	addl	$15, %ecx
	sarl	$4, %ecx
	leaq	L_.str(%rip), %rdx
	cmpl	(%rdi), %ecx
	jne	LBB0_9
## %bb.1:
	movl	4(%rsi), %ecx
	addl	$15, %ecx
	sarl	$4, %ecx
	cmpl	4(%rdi), %ecx
	jne	LBB0_9
## %bb.2:
	movq	8(%rax), %r11
	cmpq	$0, (%r11)
	je	LBB0_10
## %bb.3:
	movq	_MAX_COMPONENTS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	testl	%edi, %edi
	jle	LBB0_10
## %bb.4:
	movq	16(%rsi), %r10
	movq	8(%r10), %r8
	leaq	L_.str.1(%rip), %rdx
	cmpl	$0, (%r8)
	je	LBB0_9
## %bb.5:
	movq	(%rax), %r9
	movq	(%r10), %r10
	decq	%rdi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r9,%rax,8), %rcx
	cmpq	(%r10,%rax,8), %rcx
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%rax, %rdi
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$0, 8(%r11,%rax,8)
	sete	%cl
	cmpl	$0, 4(%r8,%rax,4)
	sete	%bl
	xorb	%cl, %bl
	incq	%rax
	testb	%bl, %bl
	je	LBB0_8
LBB0_9:
	movl	8(%rsi), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	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	"Picture dimensions stored in SOF and MXM mismatch\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAX_COMPONENTS,4,2             ## @MAX_COMPONENTS
L_.str.1:                               ## @.str.1
	.asciz	"Dimensions of current and reference picture mismatch\n"

	.no_dead_strip	_mxpeg_check_dimensions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxpeg_check_dimensions
_mxpeg_check_dimensions:                ; @mxpeg_check_dimensions
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x1]
	add	w8, w8, #15
	ldr	w9, [x0]
	cmp	w9, w8, asr #4
	b.ne	LBB0_9
; %bb.1:
	ldr	w8, [x1, #4]
	add	w8, w8, #15
	ldr	w9, [x0, #4]
	cmp	w9, w8, asr #4
	b.ne	LBB0_9
; %bb.2:
	ldr	x11, [x2, #8]
	ldr	x8, [x11]
	cbz	x8, LBB0_11
; %bb.3:
Lloh0:
	adrp	x8, _MAX_COMPONENTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_COMPONENTS@GOTPAGEOFF]
Lloh2:
	ldr	w12, [x8]
	cmp	w12, #1
	b.lt	LBB0_11
; %bb.4:
	ldr	x9, [x1, #16]
	ldr	x10, [x9, #8]
	ldr	w8, [x10]
	cbz	w8, LBB0_12
; %bb.5:
	ldr	x8, [x2]
	ldr	x9, [x9]
	add	x10, x10, #4
	add	x11, x11, #8
	sub	x12, x12, #1
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x8]
	ldr	x14, [x9]
	cmp	x13, x14
	b.ne	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	x12, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x13, [x11], #8
	cmp	x13, #0
	cset	w13, eq
	ldr	w14, [x10], #4
	cmp	w14, #0
	cset	w14, eq
	eor	w13, w13, w14
	sub	x12, x12, #1
	add	x8, x8, #8
	add	x9, x9, #8
	tbz	w13, #0, LBB0_6
	b	LBB0_10
LBB0_9:
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
LBB0_10:
	ldr	w0, [x1, #8]
Lloh7:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_av_log
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_11:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Picture dimensions stored in SOF and MXM mismatch\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAX_COMPONENTS,4,2             ; @MAX_COMPONENTS
l_.str.1:                               ; @.str.1
	.asciz	"Dimensions of current and reference picture mismatch\n"

	.no_dead_strip	_mxpeg_check_dimensions
.subsections_via_symbols
