	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function broadwell_sseu_device_status
_broadwell_sseu_device_status:          ## @broadwell_sseu_device_status
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	_GEN8_GT_SLICE_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movq	_GEN8_LSLICESTAT_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, (%r15)
	je	LBB0_7
## %bb.1:
	movq	%r14, %rdi
	callq	_RUNTIME_INFO
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movl	(%r15), %edi
	callq	_fls
	testl	%eax, %eax
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_RUNTIME_INFO
	movq	16(%rax), %rax
	movl	(%rax,%rbx,4), %eax
	movq	16(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movl	(%r15), %edi
	callq	_fls
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	movl	4(%r15), %ebx
	movq	%r15, %rdi
	callq	_intel_sseu_subslice_total
	imull	%ebx, %eax
	movl	%eax, 8(%r15)
	movl	(%r15), %edi
	callq	_fls
	testl	%eax, %eax
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_RUNTIME_INFO
	movq	8(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_hweight8
	subl	%eax, 8(%r15)
	incq	%rbx
	movl	(%r15), %edi
	callq	_fls
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN8_GT_SLICE_INFO,4,2         ## @GEN8_GT_SLICE_INFO
	.comm	_GEN8_LSLICESTAT_MASK,4,2       ## @GEN8_LSLICESTAT_MASK
	.no_dead_strip	_broadwell_sseu_device_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function broadwell_sseu_device_status
_broadwell_sseu_device_status:          ; @broadwell_sseu_device_status
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GEN8_GT_SLICE_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEN8_GT_SLICE_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_I915_READ
Lloh3:
	adrp	x8, _GEN8_LSLICESTAT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GEN8_LSLICESTAT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ands	w8, w8, w0
	str	w8, [x19]
	b.eq	LBB0_7
; %bb.1:
	mov	x0, x20
	bl	_RUNTIME_INFO
	ldr	w8, [x0]
	str	w8, [x19, #4]
	ldr	w0, [x19]
	bl	_fls
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_RUNTIME_INFO
	ldr	x8, [x0, #16]
	lsl	x9, x21, #2
	ldr	w8, [x8, x9]
	ldr	x10, [x19, #16]
	str	w8, [x10, x9]
	add	x21, x21, #1
	ldr	w0, [x19]
	bl	_fls
	cmp	x21, w0, sxtw
	b.lt	LBB0_3
LBB0_4:
	ldr	w21, [x19, #4]
	mov	x0, x19
	bl	_intel_sseu_subslice_total
	mul	w8, w0, w21
	str	w8, [x19, #8]
	ldr	w0, [x19]
	bl	_fls
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x21, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_RUNTIME_INFO
	ldr	x8, [x0, #8]
	ldr	w0, [x8, x21, lsl #2]
	bl	_hweight8
	ldr	w8, [x19, #8]
	sub	w8, w8, w0
	str	w8, [x19, #8]
	add	x21, x21, #1
	ldr	w0, [x19]
	bl	_fls
	cmp	x21, w0, sxtw
	b.lt	LBB0_6
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN8_GT_SLICE_INFO,4,2         ; @GEN8_GT_SLICE_INFO
	.comm	_GEN8_LSLICESTAT_MASK,4,2       ; @GEN8_LSLICESTAT_MASK
	.no_dead_strip	_broadwell_sseu_device_status
.subsections_via_symbols
