	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svga3dsurface_get_image_buffer_size
_svga3dsurface_get_image_buffer_size:   ## @svga3dsurface_get_image_buffer_size
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	-40(%rbp), %rdx
	callq	_svga3dsurface_get_size_in_blocks
	movq	%rbx, %rdi
	callq	_svga3dsurface_is_planar_surface
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	-36(%rbp), %esi
	movl	-32(%rbp), %edi
	callq	_clamped_umul32
	movl	-40(%rbp), %esi
	movl	%eax, %edi
	callq	_clamped_umul32
	movl	(%rbx), %esi
	jmp	LBB0_5
LBB0_2:
	testl	%r14d, %r14d
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_svga3dsurface_calculate_pitch
	movl	%eax, %r14d
LBB0_4:
	movl	-36(%rbp), %edi
	movl	%r14d, %esi
	callq	_clamped_umul32
	movl	-40(%rbp), %esi
LBB0_5:
	movl	%eax, %edi
	callq	_clamped_umul32
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_svga3dsurface_get_image_buffer_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svga3dsurface_get_image_buffer_size
_svga3dsurface_get_image_buffer_size:   ; @svga3dsurface_get_image_buffer_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x2, sp
	bl	_svga3dsurface_get_size_in_blocks
	mov	x0, x19
	bl	_svga3dsurface_is_planar_surface
	cbz	x0, LBB0_2
; %bb.1:
	ldp	w1, w0, [sp, #4]
	bl	_clamped_umul32
	ldr	w1, [sp]
	bl	_clamped_umul32
	ldr	w1, [x19]
	b	LBB0_5
LBB0_2:
	cbnz	w20, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	bl	_svga3dsurface_calculate_pitch
	mov	x20, x0
LBB0_4:
	ldr	w0, [sp, #4]
	mov	x1, x20
	bl	_clamped_umul32
	ldr	w1, [sp]
LBB0_5:
	bl	_clamped_umul32
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_svga3dsurface_get_image_buffer_size
.subsections_via_symbols
