	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_gen4_compute_page_offset ## -- Begin function intel_gen4_compute_page_offset
	.p2align	4, 0x90
_intel_gen4_compute_page_offset:        ## @intel_gen4_compute_page_offset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $r8d killed $r8d def $r8
	movq	_I915_TILING_NONE@GOTPCREL(%rip), %r9
	movl	(%rsi), %eax
	cmpl	%edx, (%r9)
	jne	LBB0_1
## %bb.2:
	imull	%r8d, %eax
	movl	(%rdi), %r8d
	imull	%ecx, %r8d
	addl	%eax, %r8d
	movl	$0, (%rsi)
	movl	%r8d, %eax
	andl	$4095, %eax                     ## imm = 0xFFF
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, (%rdi)
	andl	$-4096, %r8d                    ## imm = 0xF000
	jmp	LBB0_3
LBB0_1:
	leal	7(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	movl	%edx, %r9d
	andl	$-8, %edx
	subl	%edx, %eax
	movl	%eax, (%rsi)
	movl	(%rdi), %esi
	movl	$512, %eax                      ## imm = 0x200
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %ecx
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	sarl	$3, %r9d
	movl	%edx, (%rdi)
	imull	%r9d, %r8d
	shll	$12, %eax
	leal	(%rax,%r8,8), %r8d
LBB0_3:
	movl	%r8d, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_TILING_NONE,4,2           ## @I915_TILING_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_gen4_compute_page_offset ; -- Begin function intel_gen4_compute_page_offset
	.p2align	2
_intel_gen4_compute_page_offset:        ; @intel_gen4_compute_page_offset
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _I915_TILING_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I915_TILING_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w2
	b.ne	LBB0_2
; %bb.1:
	mul	w8, w8, w4
	ldr	w9, [x0]
	madd	w8, w9, w3, w8
	str	wzr, [x1]
	and	w9, w8, #0xfff
	udiv	w9, w9, w3
	str	w9, [x0]
	and	w8, w8, #0xfffff000
	mov	w0, w8
	ret
LBB0_2:
	add	w9, w8, #7
	cmp	w8, #0
	csel	w9, w9, w8, lt
	lsr	w10, w9, #3
	and	w9, w9, #0xfffffff8
	sub	w8, w8, w9
	str	w8, [x1]
	ldr	w8, [x0]
	mov	w9, #512
	udiv	w9, w9, w3
	udiv	w11, w8, w9
	msub	w8, w11, w9, w8
	str	w8, [x0]
	mul	w8, w4, w10
	lsl	w9, w11, #12
	add	w8, w9, w8, lsl #3
	mov	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_TILING_NONE,4,2           ; @I915_TILING_NONE
.subsections_via_symbols
