	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_framesize_raw_nv12_ubwc
_get_framesize_raw_nv12_ubwc:           ## @get_framesize_raw_nv12_ubwc
	.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
	movl	%esi, %r12d
	movl	%edi, %r15d
	movq	_SZ_16K@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$32, %esi
	callq	_DIV_ROUND_UP
	movl	%eax, %edi
	movl	$64, %esi
	callq	_ALIGN
	movl	%eax, %ebx
	movl	%r12d, %edi
	movl	$8, %esi
	callq	_DIV_ROUND_UP
	movl	%eax, %edi
	movl	$16, %esi
	callq	_ALIGN
	imull	%eax, %ebx
	movq	_SZ_4K@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_ALIGN
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	movl	$128, %esi
	callq	_ALIGN
	movl	%eax, %ebx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edi
	movl	$32, %esi
	callq	_ALIGN
	imull	%ebx, %eax
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_ALIGN
	movl	%eax, %r13d
	movl	%r15d, %ebx
	movl	%r15d, %edi
	shrl	$31, %edi
	addl	%r15d, %edi
	sarl	%edi
	movl	$16, %esi
	callq	_DIV_ROUND_UP
	movl	%eax, %edi
	movl	$64, %esi
	callq	_ALIGN
	movl	%eax, %r15d
	movl	%r12d, %r14d
	shrl	$31, %r14d
	addl	%r12d, %r14d
	sarl	%r14d
	movl	%r14d, %edi
	movl	$8, %esi
	callq	_DIV_ROUND_UP
	movl	%eax, %edi
	movl	$16, %esi
	callq	_ALIGN
	imull	%eax, %r15d
	movq	_SZ_4K@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%r15d, %edi
	callq	_ALIGN
	movl	%eax, %r15d
	movl	%ebx, %edi
	movl	$128, %esi
	callq	_ALIGN
	movl	%eax, %ebx
	movl	%r14d, %edi
	movl	$32, %esi
	callq	_ALIGN
	imull	%eax, %ebx
	movl	(%r12), %esi
	movl	%ebx, %edi
	callq	_ALIGN
	addl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	addl	%r15d, %r13d
	addl	%eax, %r13d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	shll	$4, %eax
	leal	(%rax,%rax,2), %esi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_max
	addl	%eax, %r13d
	movl	(%r12), %esi
	movl	%r13d, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ALIGN                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SZ_16K,4,2                     ## @SZ_16K
	.comm	_SZ_4K,4,2                      ## @SZ_4K
	.no_dead_strip	_get_framesize_raw_nv12_ubwc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_framesize_raw_nv12_ubwc
_get_framesize_raw_nv12_ubwc:           ; @get_framesize_raw_nv12_ubwc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _SZ_16K@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SZ_16K@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	mov	w1, #32
	bl	_DIV_ROUND_UP
	mov	w1, #64
	bl	_ALIGN
	mov	x21, x0
	mov	x0, x22
	mov	w1, #8
	bl	_DIV_ROUND_UP
	mov	w1, #16
	bl	_ALIGN
	mul	w0, w0, w21
Lloh3:
	adrp	x26, _SZ_4K@GOTPAGE
Lloh4:
	ldr	x26, [x26, _SZ_4K@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_ALIGN
	mov	x21, x0
	mov	x0, x20
	mov	w1, #128
	bl	_ALIGN
	mov	x23, x0
	mov	x0, x22
	mov	w1, #32
	bl	_ALIGN
	mul	w0, w0, w23
	ldr	w1, [x26]
	bl	_ALIGN
	mov	x24, x0
	cmp	w20, #0
	cinc	w8, w20, lt
	asr	w0, w8, #1
	mov	w1, #16
	bl	_DIV_ROUND_UP
	mov	w1, #64
	bl	_ALIGN
	mov	x25, x0
	cmp	w22, #0
	cinc	w8, w22, lt
	asr	w22, w8, #1
	mov	x0, x22
	mov	w1, #8
	bl	_DIV_ROUND_UP
	mov	w1, #16
	bl	_ALIGN
	mul	w0, w0, w25
	ldr	w1, [x26]
	bl	_ALIGN
	mov	x25, x0
	mov	x0, x20
	mov	w1, #128
	bl	_ALIGN
	mov	x20, x0
	mov	x0, x22
	mov	w1, #32
	bl	_ALIGN
	mul	w0, w0, w20
	ldr	w1, [x26]
	bl	_ALIGN
	add	w8, w24, w21
	add	w8, w8, w25
	add	w20, w8, w0
	add	w8, w23, w23, lsl #1
	lsl	w1, w8, #4
	mov	x0, x19
	bl	_max
	add	w0, w20, w0
	ldr	w1, [x26]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ALIGN
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SZ_16K,4,2                     ; @SZ_16K
	.comm	_SZ_4K,4,2                      ; @SZ_4K
	.no_dead_strip	_get_framesize_raw_nv12_ubwc
.subsections_via_symbols
