	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_gt_init_swizzling        ## -- Begin function intel_gt_init_swizzling
	.p2align	4, 0x90
_intel_gt_init_swizzling:               ## @intel_gt_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %r14
	movq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_INTEL_GEN
	cmpl	$5, %eax
	jl	LBB0_11
## %bb.1:
	movq	(%rbx), %rax
	movq	_I915_BIT_6_SWIZZLE_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.2:
	movq	_DISP_ARB_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DISP_TILE_SURFACE_SWIZZLING@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_intel_uncore_rmw
	movq	%rbx, %rdi
	movl	$5, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	je	LBB0_3
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	_TILECTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TILECTL_SWZCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_intel_uncore_rmw
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_IS_GEN
	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	%rbx, %rdi
	movl	$7, %esi
	callq	_IS_GEN
	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
	jmp	LBB0_5
LBB0_8:
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_GAMTARBMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ARB_MODE_SWIZZLE_BDW@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edi
	callq	__MASKED_BIT_ENABLE
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_intel_uncore_write             ## TAILCALL
LBB0_10:
	movq	%rbx, %rdi
	callq	_INTEL_GEN
	movl	%eax, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_MISSING_CASE                   ## 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
	.comm	_GAMTARBMODE,4,2                ## @GAMTARBMODE
	.comm	_ARB_MODE_SWIZZLE_BDW,4,2       ## @ARB_MODE_SWIZZLE_BDW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_gt_init_swizzling        ; -- Begin function intel_gt_init_swizzling
	.p2align	2
_intel_gt_init_swizzling:               ; @intel_gt_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
	ldp	x19, x20, [x0]
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #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	w1, [x8]
Lloh6:
	adrp	x8, _DISP_TILE_SURFACE_SWIZZLING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DISP_TILE_SURFACE_SWIZZLING@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_intel_uncore_rmw
	mov	x0, x20
	mov	w1, #5
	bl	_IS_GEN
	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	w1, [x8]
Lloh12:
	adrp	x8, _TILECTL_SWZCTL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TILECTL_SWZCTL@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_intel_uncore_rmw
	mov	x0, x20
	mov	w1, #6
	bl	_IS_GEN
	cbz	x0, LBB0_6
; %bb.5:
Lloh15:
	adrp	x8, _ARB_MODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ARB_MODE@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
Lloh18:
	adrp	x8, _ARB_MODE_SWIZZLE_SNB@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ARB_MODE_SWIZZLE_SNB@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	mov	x0, x20
	mov	w1, #7
	bl	_IS_GEN
	cbz	x0, LBB0_8
; %bb.7:
Lloh20:
	adrp	x8, _ARB_MODE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ARB_MODE@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
Lloh23:
	adrp	x8, _ARB_MODE_SWIZZLE_IVB@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ARB_MODE_SWIZZLE_IVB@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	mov	x0, x20
	mov	w1, #8
	bl	_IS_GEN
	cbz	x0, LBB0_11
; %bb.9:
Lloh25:
	adrp	x8, _GAMTARBMODE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GAMTARBMODE@GOTPAGEOFF]
Lloh27:
	ldr	w20, [x8]
Lloh28:
	adrp	x8, _ARB_MODE_SWIZZLE_BDW@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ARB_MODE_SWIZZLE_BDW@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	bl	__MASKED_BIT_ENABLE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_intel_uncore_write
LBB0_11:
	mov	x0, x20
	bl	_INTEL_GEN
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_MISSING_CASE
	.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
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.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
	.comm	_GAMTARBMODE,4,2                ; @GAMTARBMODE
	.comm	_ARB_MODE_SWIZZLE_BDW,4,2       ; @ARB_MODE_SWIZZLE_BDW
.subsections_via_symbols
