	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svga3dsurface_get_pixel_offset
_svga3dsurface_get_pixel_offset:        ## @svga3dsurface_get_pixel_offset
	.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	%r9d, %r12d
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	callq	_svga3dsurface_get_desc
	movq	%rax, %rbx
	movl	4(%rax), %r15d
	movl	8(%rax), %r13d
	movl	%r12d, %eax
	cltd
	idivl	12(%rbx)
	movl	%eax, %r12d
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	___KERNEL_DIV_ROUND_UP
	movl	%eax, %r14d
	imull	(%rbx), %r14d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	callq	___KERNEL_DIV_ROUND_UP
	movl	%eax, %ecx
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cltd
	idivl	%r13d
	movl	%eax, %esi
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cltd
	idivl	%r15d
	imull	(%rbx), %eax
	imull	%r12d, %ecx
	addl	%ecx, %esi
	imull	%r14d, %esi
	addl	%esi, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_svga3dsurface_get_pixel_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svga3dsurface_get_pixel_offset
_svga3dsurface_get_pixel_offset:        ; @svga3dsurface_get_pixel_offset
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	bl	_svga3dsurface_get_desc
	mov	x24, x0
	ldp	w25, w26, [x0, #4]
	ldr	w27, [x0, #12]
	mov	x0, x23
	mov	x1, x25
	bl	___KERNEL_DIV_ROUND_UP
	ldr	w8, [x24]
	mul	w23, w8, w0
	mov	x0, x22
	mov	x1, x26
	bl	___KERNEL_DIV_ROUND_UP
	sdiv	w8, w19, w27
	sdiv	w9, w20, w26
	ldr	w10, [x24]
	madd	w8, w8, w0, w9
	mul	w8, w23, w8
	sdiv	w9, w21, w25
	madd	w0, w10, w9, w8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_svga3dsurface_get_pixel_offset
.subsections_via_symbols
