	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dv_calculate_mb_xy
_dv_calculate_mb_xy:                    ## @dv_calculate_mb_xy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %rax
	movslq	%edx, %rdx
	movzbl	(%rax,%rdx,4), %esi
	movl	%esi, (%rcx)
	movl	(%rax,%rdx,4), %ecx
	movl	%ecx, %eax
	sarl	$8, %eax
	movl	%eax, (%r8)
	movq	8(%rdi), %rdx
	cmpl	$720, (%rdx)                    ## imm = 0x2D0
	jne	LBB0_3
## %bb.1:
	movq	(%rdi), %rdx
	testb	$12, 4(%rdx)
	je	LBB0_2
LBB0_3:
	popq	%rbp
	retq
LBB0_2:
	leal	72(%rax), %edx
	addl	$-18, %eax
	cmpl	$4608, %ecx                     ## imm = 0x1200
	cmovll	%edx, %eax
	movl	%eax, (%r8)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dv_calculate_mb_xy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dv_calculate_mb_xy
_dv_calculate_mb_xy:                    ; @dv_calculate_mb_xy
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w2 killed $w2 def $x2
	ldr	x8, [x1]
	sbfiz	x9, x2, #2, #32
	ldrb	w10, [x8, x9]
	str	w10, [x3]
	ldr	w9, [x8, x9]
	asr	w8, w9, #8
	str	w8, [x4]
	ldr	x10, [x0, #8]
	ldr	w10, [x10]
	cmp	w10, #720
	b.ne	LBB0_2
; %bb.1:
	ldr	x10, [x0]
	ldrb	w10, [x10, #4]
	tst	w10, #0xc
	b.eq	LBB0_3
LBB0_2:
	ret
LBB0_3:
	mov	w10, #4607
	mov	w11, #72
	mov	w12, #-18
	cmp	w9, w10
	csel	w9, w12, w11, gt
	add	w8, w9, w8
	str	w8, [x4]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dv_calculate_mb_xy
.subsections_via_symbols
