	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_surf_alignment
_intel_surf_alignment:                  ## @intel_surf_alignment
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_to_i915
	movl	$4096, %ecx                     ## imm = 0x1000
	cmpl	$1, %r14d
	je	LBB0_7
## %bb.1:
	movl	(%rbx), %edi
	movl	$1048576, %ecx                  ## imm = 0x100000
	leal	-128(%rdi), %edx
	cmpl	$4, %edx
	jb	LBB0_7
## %bb.2:
	cmpl	$132, %edi
	je	LBB0_5
## %bb.3:
	cmpl	$133, %edi
	jne	LBB0_6
## %bb.4:
	movq	%rax, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_intel_linear_alignment         ## TAILCALL
LBB0_5:
	movq	%rax, %rdi
	callq	_INTEL_GEN
	xorl	%ecx, %ecx
	cmpl	$9, %eax
	setge	%cl
	shll	$18, %ecx
	jmp	LBB0_7
LBB0_6:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_MISSING_CASE
	xorl	%ecx, %ecx
LBB0_7:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_intel_surf_alignment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_surf_alignment
_intel_surf_alignment:                  ; @intel_surf_alignment
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	cmp	w20, #1
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #4096
	b	LBB0_9
LBB0_2:
	ldr	w8, [x19]
	sub	w9, w8, #128
	cmp	w9, #4
	b.hs	LBB0_4
; %bb.3:
	mov	w0, #1048576
	b	LBB0_9
LBB0_4:
	cmp	w8, #132
	b.eq	LBB0_7
; %bb.5:
	cmp	w8, #133
	b.ne	LBB0_8
; %bb.6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_intel_linear_alignment
LBB0_7:
	bl	_INTEL_GEN
	cmp	w0, #8
	cset	w8, gt
	lsl	w0, w8, #18
	b	LBB0_9
LBB0_8:
	mov	x0, x8
	bl	_MISSING_CASE
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_intel_surf_alignment
.subsections_via_symbols
