	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_adjust_aligned_offset
_intel_adjust_aligned_offset:           ## @intel_adjust_aligned_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movl	%ecx, %ebx
	movq	%rdx, %r13
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %r14
	movl	16(%rdx), %edi
	callq	_to_i915
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movslq	%ebx, %r12
	movl	(%rax,%r12,4), %ebx
	xorl	%edi, %edi
	subq	24(%rbp), %r14
	setl	%dil
	callq	_WARN_ON
	movl	(%r13), %edi
	movl	%r12d, %esi
	callq	_is_surface_linear
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %eax
	imull	%r15d, %eax
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi), %ecx
	imull	%ebx, %ecx
	addl	%eax, %ecx
	addq	%rcx, %r14
	movl	%r15d, %ecx
	movq	%r14, %rax
	shrq	$32, %rax
	movq	%rbx, %rdi
	movq	%rdx, %rbx
	je	LBB0_6
## %bb.7:
	movq	%r14, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_8
LBB0_1:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_intel_tile_size
	movl	%eax, %r14d
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_intel_tile_dims
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_drm_rotation_90_or_270
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	-48(%rbp), %ebx
	movl	-44(%rbp), %edi
	movl	%ebx, %esi
	callq	_swap
	movl	-44(%rbp), %r8d
	jmp	LBB0_4
LBB0_6:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_8:
	movl	%eax, (%rbx)
	imull	%eax, %r15d
	subq	%r15, %r14
	movq	%r14, %rax
	shrq	$32, %rax
	je	LBB0_9
## %bb.10:
	movq	%r14, %rax
	cqto
	idivq	%rdi
	jmp	LBB0_11
LBB0_9:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $eax killed $eax def $rax
LBB0_11:
	movq	24(%rbp), %rbx
	movl	%eax, (%rsi)
	jmp	LBB0_12
LBB0_3:
	movl	-44(%rbp), %r8d
	imull	%r8d, %ebx
LBB0_4:
	movq	16(%rbp), %r10
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ebx
	movl	-48(%rbp), %ecx
	movq	%r12, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%r8d, %edx
	movl	%r14d, %r8d
	movl	%eax, %r9d
	movq	24(%rbp), %rbx
	pushq	%rbx
	pushq	%r10
	callq	_intel_adjust_tile_offset
	addq	$16, %rsp
LBB0_12:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_intel_adjust_aligned_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_adjust_aligned_offset
_intel_adjust_aligned_offset:           ; @intel_adjust_aligned_offset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x7
	mov	x23, x6
	mov	x21, x5
	str	w4, [sp, #4]                    ; 4-byte Folded Spill
	mov	x26, x3
	mov	x27, x2
	mov	x22, x1
	mov	x20, x0
	ldr	w0, [x2, #16]
	bl	_to_i915
	mov	x24, x0
	ldr	x8, [x27, #8]
	ldr	x8, [x8]
	ldr	w28, [x8, w26, sxtw #2]
	subs	x25, x23, x19
	cset	w0, lt
	bl	_WARN_ON
	ldr	w0, [x27]
	mov	x1, x26
	bl	_is_surface_linear
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x22]
	mul	w8, w8, w21
	ldr	w9, [x20]
	madd	w8, w9, w28, w8
	mov	w9, w21
	add	x8, x25, x8
	sdiv	x9, x8, x9
	str	w9, [x22]
	mul	w9, w9, w21
	sub	x8, x8, x9
	sdiv	x8, x8, x28
	str	w8, [x20]
	b	LBB0_6
LBB0_2:
	mov	x0, x24
	bl	_intel_tile_size
	mov	x24, x0
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x27
	mov	x1, x26
	bl	_intel_tile_dims
	ldr	w0, [sp, #4]                    ; 4-byte Folded Reload
	bl	_drm_rotation_90_or_270
	cbz	x0, LBB0_4
; %bb.3:
	ldp	w25, w0, [sp, #8]
	mov	x1, x25
	bl	_swap
	ldr	w2, [sp, #12]
	b	LBB0_5
LBB0_4:
	ldr	w2, [sp, #12]
	mul	w25, w2, w28
LBB0_5:
	ldr	w3, [sp, #8]
	udiv	w5, w21, w25
	mov	x0, x20
	mov	x1, x22
	mov	x4, x24
	mov	x6, x23
	mov	x7, x19
	bl	_intel_adjust_tile_offset
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_intel_adjust_aligned_offset
.subsections_via_symbols
