	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shmob_drm_plane_compute_base
_shmob_drm_plane_compute_base:          ## @shmob_drm_plane_compute_base
	.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	%ecx, %r15d
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movl	$8, %ebx
	cmpq	$0, 8(%rax)
	jne	LBB0_2
## %bb.1:
	movl	(%rax), %ebx
LBB0_2:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_drm_fb_cma_get_gem_obj
	movq	(%r13), %rcx
	movq	8(%r13), %rdx
	movslq	(%rcx), %rcx
	movslq	%r15d, %rsi
	imulq	%rcx, %rsi
	imull	%r14d, %ebx
	shrl	$3, %ebx
	addq	(%rax), %rbx
	addq	(%rdx), %rbx
	addq	%rsi, %rbx
	movq	(%r12), %rax
	movq	%rbx, (%rax)
	movq	8(%r12), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_4
## %bb.3:
	movl	(%rax), %ebx
	addl	$-8, %ebx
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_drm_fb_cma_get_gem_obj
	movq	8(%r13), %rcx
	movq	8(%rcx), %rcx
	addq	(%rax), %rcx
	movq	(%r13), %rsi
	xorl	%edi, %edi
	cmpl	$4, %ebx
	sete	%dil
	incl	%edi
	movl	%r15d, %eax
	cltd
	idivl	%edi
	movslq	4(%rsi), %rdx
	cltq
	imulq	%rdx, %rax
	xorl	%edx, %edx
	cmpl	$16, %ebx
	sete	%dl
	incl	%edx
	imull	%r14d, %edx
	movslq	%edx, %rdx
	addq	%rcx, %rdx
	addq	%rax, %rdx
	movq	(%r12), %rax
	movq	%rdx, 8(%rax)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_shmob_drm_plane_compute_base
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shmob_drm_plane_compute_base
_shmob_drm_plane_compute_base:          ; @shmob_drm_plane_compute_base
	.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	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_2
; %bb.1:
	mov	w23, #8
	b	LBB0_3
LBB0_2:
	ldr	w23, [x8]
LBB0_3:
	mov	x0, x22
	mov	w1, #0
	bl	_drm_fb_cma_get_gem_obj
	ldr	x8, [x0]
	ldp	x10, x9, [x22]
	ldr	x9, [x9]
	ldrsw	x10, [x10]
	sxtw	x11, w21
	mul	w12, w23, w20
	lsr	w12, w12, #3
	add	x8, x8, x12
	add	x8, x8, x9
	madd	x9, x10, x11, x8
	ldp	x10, x8, [x19]
	str	x9, [x10]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_5
; %bb.4:
	ldr	w8, [x8]
	sub	w23, w8, #8
	mov	w24, #1
	mov	x0, x22
	mov	w1, #1
	bl	_drm_fb_cma_get_gem_obj
	ldr	x8, [x0]
	ldp	x10, x9, [x22]
	ldr	x9, [x9, #8]
	add	x8, x9, x8
	cmp	w23, #4
	cinc	w9, w24, eq
	sdiv	w9, w21, w9
	ldrsw	x10, [x10, #4]
	sxtw	x9, w9
	cmp	w23, #16
	cinc	w11, w24, eq
	mul	w11, w11, w20
	add	x8, x8, w11, sxtw
	madd	x8, x10, x9, x8
	ldr	x9, [x19]
	str	x8, [x9, #8]
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_shmob_drm_plane_compute_base
.subsections_via_symbols
