	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_init_swizzling        ## -- Begin function i915_gem_init_swizzling
	.p2align	4, 0x90
_i915_gem_init_swizzling:               ## @i915_gem_init_swizzling
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	callq	_INTEL_INFO
	cmpl	$5, (%rax)
	jl	LBB0_9
## %bb.1:
	movq	(%rbx), %rax
	movq	_I915_BIT_6_SWIZZLE_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.2:
	movq	_DISP_ARB_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_I915_READ
	movq	_DISP_TILE_SURFACE_SWIZZLING@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	%r15, %rdi
	callq	_IS_GEN5
	testq	%rax, %rax
	je	LBB0_3
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_TILECTL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_I915_READ
	movq	_TILECTL_SWZCTL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	%r15, %rdi
	callq	_IS_GEN6
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_ARB_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ARB_MODE_SWIZZLE_SNB@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	movq	%r15, %rdi
	callq	_IS_GEN7
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_ARB_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ARB_MODE_SWIZZLE_IVB@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edi
	callq	__MASKED_BIT_ENABLE
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BUG                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_BIT_6_SWIZZLE_NONE,8,3    ## @I915_BIT_6_SWIZZLE_NONE
	.comm	_DISP_ARB_CTL,4,2               ## @DISP_ARB_CTL
	.comm	_DISP_TILE_SURFACE_SWIZZLING,4,2 ## @DISP_TILE_SURFACE_SWIZZLING
	.comm	_TILECTL,4,2                    ## @TILECTL
	.comm	_TILECTL_SWZCTL,4,2             ## @TILECTL_SWZCTL
	.comm	_ARB_MODE,4,2                   ## @ARB_MODE
	.comm	_ARB_MODE_SWIZZLE_SNB,4,2       ## @ARB_MODE_SWIZZLE_SNB
	.comm	_ARB_MODE_SWIZZLE_IVB,4,2       ## @ARB_MODE_SWIZZLE_IVB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_init_swizzling        ; -- Begin function i915_gem_init_swizzling
	.p2align	2
_i915_gem_init_swizzling:               ; @i915_gem_init_swizzling
	.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	x19, x0
	ldr	x20, [x0]
	bl	_INTEL_INFO
	ldr	w8, [x0]
	cmp	w8, #5
	b.lt	LBB0_3
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _I915_BIT_6_SWIZZLE_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I915_BIT_6_SWIZZLE_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _DISP_ARB_CTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DISP_ARB_CTL@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_I915_READ
Lloh6:
	adrp	x8, _DISP_TILE_SURFACE_SWIZZLING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DISP_TILE_SURFACE_SWIZZLING@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x20
	bl	_I915_WRITE
	mov	x0, x19
	bl	_IS_GEN5
	cbz	x0, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh9:
	adrp	x8, _TILECTL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TILECTL@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_I915_READ
Lloh12:
	adrp	x8, _TILECTL_SWZCTL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TILECTL_SWZCTL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x20
	bl	_I915_WRITE
	mov	x0, x19
	bl	_IS_GEN6
	cbz	x0, LBB0_6
; %bb.5:
Lloh15:
	adrp	x8, _ARB_MODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ARB_MODE@GOTPAGEOFF]
Lloh17:
	ldr	w19, [x8]
Lloh18:
	adrp	x8, _ARB_MODE_SWIZZLE_SNB@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ARB_MODE_SWIZZLE_SNB@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_IS_GEN7
	cbz	x0, LBB0_9
; %bb.7:
Lloh20:
	adrp	x8, _ARB_MODE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ARB_MODE@GOTPAGEOFF]
Lloh22:
	ldr	w19, [x8]
Lloh23:
	adrp	x8, _ARB_MODE_SWIZZLE_IVB@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ARB_MODE_SWIZZLE_IVB@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	bl	__MASKED_BIT_ENABLE
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_I915_WRITE
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_BUG
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_BIT_6_SWIZZLE_NONE,8,3    ; @I915_BIT_6_SWIZZLE_NONE
	.comm	_DISP_ARB_CTL,4,2               ; @DISP_ARB_CTL
	.comm	_DISP_TILE_SURFACE_SWIZZLING,4,2 ; @DISP_TILE_SURFACE_SWIZZLING
	.comm	_TILECTL,4,2                    ; @TILECTL
	.comm	_TILECTL_SWZCTL,4,2             ; @TILECTL_SWZCTL
	.comm	_ARB_MODE,4,2                   ; @ARB_MODE
	.comm	_ARB_MODE_SWIZZLE_SNB,4,2       ; @ARB_MODE_SWIZZLE_SNB
	.comm	_ARB_MODE_SWIZZLE_IVB,4,2       ; @ARB_MODE_SWIZZLE_IVB
.subsections_via_symbols
