	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen9_sseu_info_init
_gen9_sseu_info_init:                   ## @gen9_sseu_info_init
	.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
	movq	%rdi, %r14
	callq	_mkwrite_device_info
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_RUNTIME_INFO
	movq	%rax, %r13
	movq	_GEN8_FUSE2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	_GEN8_F2_S_ENA_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	movq	_GEN8_F2_S_ENA_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, (%r13)
	movq	%r14, %rdi
	callq	_IS_GEN9_LP
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	leal	1(%rcx,%rcx), %eax
	movl	%eax, 4(%r13)
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_IS_GEN9_LP
	cmpq	$1, %rax
	movl	$0, %ecx
	adcl	$3, %ecx
	movl	%ecx, 8(%r13)
	movl	$8, 12(%r13)
	movl	$-1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movq	_GEN9_F2_SS_DIS_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	movq	_GEN9_F2_SS_DIS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %ebx
	cmpl	$0, 4(%r13)
	jle	LBB0_10
## %bb.1:
	orl	%eax, %ebx
	notl	%ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movslq	4(%r13), %rax
	cmpq	%rax, %r14
	jge	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	(%r13), %r15d
	movl	%r14d, %edi
	callq	_BIT
	testl	%r15d, %eax
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r13), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax,%r14,4)
	movl	%r14d, %edi
	callq	_GEN9_EU_DISABLE
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpl	$0, 8(%r13)
	jle	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	incl	%r12d
	addl	$8, %r15d
	cmpl	8(%r13), %r12d
	jge	LBB0_9
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r13), %rax
	movl	(%rax,%r14,4), %ebx
	movl	%r12d, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%r15d, %ecx
	sarl	%cl, %eax
	movzbl	%al, %r14d
	movl	%r14d, %ecx
	notl	%ecx
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r12d, %edx
	callq	_sseu_set_eus
	movl	12(%r13), %ebx
	movl	%r14d, %edi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	callq	_hweight8
	subl	%eax, %ebx
	cmpl	$7, %ebx
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	%r12d, %edi
	callq	_BIT
	movq	24(%r13), %rcx
	orl	%eax, (%rcx,%r14,4)
	jmp	LBB0_8
LBB0_10:
	movq	%r13, %rdi
	callq	_compute_eu_total
	movl	%eax, 52(%r13)
	movq	%r13, %rdi
	callq	_intel_sseu_subslice_total
	testl	%eax, %eax
	movl	$0, %eax
	je	LBB0_12
## %bb.11:
	movl	52(%r13), %r14d
	movq	%r13, %rdi
	callq	_intel_sseu_subslice_total
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_DIV_ROUND_UP
LBB0_12:
	movl	%eax, 32(%r13)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_IS_GEN9_LP
	xorl	%r14d, %r14d
	movl	$0, %ecx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	movl	(%r13), %edi
	callq	_hweight8
	xorl	%ecx, %ecx
	cmpl	$2, %eax
	setge	%cl
LBB0_14:
	movl	%ecx, 36(%r13)
	movq	%rbx, %rdi
	callq	_IS_GEN9_LP
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%r13, %rdi
	callq	_intel_sseu_subslice_total
	xorl	%r14d, %r14d
	cmpl	$2, %eax
	setge	%r14b
LBB0_16:
	movl	%r14d, 40(%r13)
	xorl	%eax, %eax
	cmpl	$3, 32(%r13)
	setge	%al
	movl	%eax, 44(%r13)
	movq	%rbx, %rdi
	callq	_IS_GEN9_LP
	testq	%rax, %rax
	je	LBB0_22
## %bb.17:
	movq	16(%r13), %rax
	movl	(%rax), %edi
	callq	_hweight8
	xorl	%ecx, %ecx
	cmpl	$3, %eax
	sete	%cl
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movl	$0, 48(%r13)
	jne	LBB0_22
## %bb.18:
	movq	16(%r13), %rax
	movl	(%rax), %ebx
	movl	$2, %edi
	callq	_BIT
	movl	$3, %r14d
	testl	%ebx, %eax
	je	LBB0_21
## %bb.19:
	movq	16(%r13), %rax
	movl	(%rax), %ebx
	xorl	%edi, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_21
## %bb.20:
	movq	16(%r13), %rax
	movl	(%rax), %ebx
	movl	$1, %edi
	callq	_BIT
	xorl	%ecx, %ecx
	testl	%ebx, %eax
	setne	%cl
	leal	(%rcx,%rcx,2), %r14d
	addl	$6, %r14d
LBB0_21:
	movl	%r14d, 48(%r13)
LBB0_22:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN8_FUSE2,4,2                 ## @GEN8_FUSE2
	.comm	_GEN8_F2_S_ENA_MASK,4,2         ## @GEN8_F2_S_ENA_MASK
	.comm	_GEN8_F2_S_ENA_SHIFT,4,2        ## @GEN8_F2_S_ENA_SHIFT
	.comm	_GEN9_F2_SS_DIS_MASK,4,2        ## @GEN9_F2_SS_DIS_MASK
	.comm	_GEN9_F2_SS_DIS_SHIFT,4,2       ## @GEN9_F2_SS_DIS_SHIFT
	.no_dead_strip	_gen9_sseu_info_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen9_sseu_info_init
_gen9_sseu_info_init:                   ; @gen9_sseu_info_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x0
	bl	_mkwrite_device_info
	mov	x20, x0
	mov	x0, x21
	bl	_RUNTIME_INFO
	mov	x19, x0
Lloh0:
	adrp	x8, _GEN8_FUSE2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEN8_FUSE2@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_I915_READ
	mov	x23, x0
Lloh3:
	adrp	x8, _GEN8_F2_S_ENA_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GEN8_F2_S_ENA_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh6:
	adrp	x9, _GEN8_F2_S_ENA_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GEN8_F2_S_ENA_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	asr	w8, w8, w9
	str	w8, [x19]
	mov	x0, x21
	bl	_IS_GEN9_LP
	cmp	x0, #0
	mov	w22, #3
	csinc	w8, w22, wzr, eq
	str	w8, [x19, #4]
	mov	x0, x21
	bl	_IS_GEN9_LP
	cmp	x0, #0
	cinc	w8, w22, eq
	mov	w9, #8
	stp	w8, w9, [x19, #8]
	ldr	w9, [x19, #4]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x22, #0
	mov	w9, #-1
	lsl	w8, w9, w8
Lloh9:
	adrp	x9, _GEN9_F2_SS_DIS_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GEN9_F2_SS_DIS_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w9, w9, w23
Lloh12:
	adrp	x10, _GEN9_F2_SS_DIS_SHIFT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _GEN9_F2_SS_DIS_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	asr	w9, w9, w10
	orr	w8, w9, w8
	mvn	w26, w8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19, #4]
	cmp	x22, x8
	b.ge	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w23, [x19]
	mov	x0, x22
	bl	_BIT
	tst	w0, w23
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #16]
	str	w26, [x8, x22, lsl #2]
	mov	x0, x22
	bl	_GEN9_EU_DISABLE
	bl	_I915_READ
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
	mov	w27, #0
	mov	w24, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	w24, w24, #1
	ldr	w8, [x19, #8]
	add	w27, w27, #8
	cmp	w24, w8
	b.ge	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #16]
	ldr	w25, [x8, x22, lsl #2]
	mov	x0, x24
	bl	_BIT
	tst	w0, w25
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	asr	w8, w23, w27
	and	w25, w8, #0xff
	mvn	w3, w25
	mov	x0, x19
	mov	x1, x22
	mov	x2, x24
	bl	_sseu_set_eus
	ldr	w28, [x19, #12]
	mov	x0, x25
	bl	_hweight8
	sub	w8, w28, w0
	cmp	w8, #7
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x24
	bl	_BIT
	ldr	x8, [x19, #24]
	lsl	x9, x22, #2
	ldr	w10, [x8, x9]
	orr	w10, w10, w0
	str	w10, [x8, x9]
	b	LBB0_6
LBB0_10:
	mov	x0, x19
	bl	_compute_eu_total
	str	w0, [x19, #52]
	mov	x0, x19
	bl	_intel_sseu_subslice_total
	cbz	w0, LBB0_12
; %bb.11:
	ldr	w22, [x19, #52]
	mov	x0, x19
	bl	_intel_sseu_subslice_total
	mov	x1, x0
	mov	x0, x22
	bl	_DIV_ROUND_UP
LBB0_12:
	str	w0, [x19, #32]
	mov	x0, x21
	bl	_IS_GEN9_LP
	cbz	x0, LBB0_14
; %bb.13:
	mov	w8, #0
	b	LBB0_15
LBB0_14:
	ldr	w0, [x19]
	bl	_hweight8
	cmp	w0, #1
	cset	w8, gt
LBB0_15:
	str	w8, [x19, #36]
	mov	x0, x21
	bl	_IS_GEN9_LP
	cbz	x0, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_intel_sseu_subslice_total
	cmp	w0, #1
	cset	w8, gt
	b	LBB0_18
LBB0_17:
	mov	w8, #0
LBB0_18:
	ldr	w9, [x19, #32]
	cmp	w9, #2
	cset	w9, gt
	stp	w8, w9, [x19, #40]
	mov	x0, x21
	bl	_IS_GEN9_LP
	cbz	x0, LBB0_25
; %bb.19:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_hweight8
	str	wzr, [x19, #48]
	cmp	w0, #3
	cset	w8, eq
	str	w8, [x20]
	b.ne	LBB0_25
; %bb.20:
	ldr	x8, [x19, #16]
	ldr	w20, [x8]
	mov	w0, #2
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_23
; %bb.21:
	ldr	x8, [x19, #16]
	ldr	w20, [x8]
	mov	w0, #0
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_23
; %bb.22:
	ldr	x8, [x19, #16]
	ldr	w20, [x8]
	mov	w0, #1
	bl	_BIT
	tst	w0, w20
	mov	w8, #9
	mov	w9, #6
	csel	w8, w9, w8, eq
	b	LBB0_24
LBB0_23:
	mov	w8, #3
LBB0_24:
	str	w8, [x19, #48]
LBB0_25:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN8_FUSE2,4,2                 ; @GEN8_FUSE2
	.comm	_GEN8_F2_S_ENA_MASK,4,2         ; @GEN8_F2_S_ENA_MASK
	.comm	_GEN8_F2_S_ENA_SHIFT,4,2        ; @GEN8_F2_S_ENA_SHIFT
	.comm	_GEN9_F2_SS_DIS_MASK,4,2        ; @GEN9_F2_SS_DIS_MASK
	.comm	_GEN9_F2_SS_DIS_SHIFT,4,2       ; @GEN9_F2_SS_DIS_SHIFT
	.no_dead_strip	_gen9_sseu_info_init
.subsections_via_symbols
