	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_get_extra_instdone
_i915_get_extra_instdone:               ## @i915_get_extra_instdone
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	_I915_NUM_INSTDONE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	%rbx, %rdi
	callq	_INTEL_INFO
	movl	(%rax), %eax
	leal	-4(%rax), %ecx
	cmpl	$3, %ecx
	jb	LBB0_6
## %bb.1:
	leal	-2(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_2
## %bb.5:
	movq	_INSTDONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, (%r14)
	jmp	LBB0_7
LBB0_6:
	movq	_INSTDONE_I965@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, (%r14)
	movq	_INSTDONE1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, 4(%r14)
	jmp	LBB0_7
LBB0_2:
	cmpl	$7, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_WARN_ONCE
LBB0_4:
	movq	_GEN7_INSTDONE_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, (%r14)
	movq	_GEN7_SC_INSTDONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, 4(%r14)
	movq	_GEN7_SAMPLER_INSTDONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, 8(%r14)
	movq	_GEN7_ROW_INSTDONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, 12(%r14)
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_NUM_INSTDONE_REG,4,2      ## @I915_NUM_INSTDONE_REG
	.comm	_INSTDONE,4,2                   ## @INSTDONE
	.comm	_INSTDONE_I965,4,2              ## @INSTDONE_I965
	.comm	_INSTDONE1,4,2                  ## @INSTDONE1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported platform\n"

	.comm	_GEN7_INSTDONE_1,4,2            ## @GEN7_INSTDONE_1
	.comm	_GEN7_SC_INSTDONE,4,2           ## @GEN7_SC_INSTDONE
	.comm	_GEN7_SAMPLER_INSTDONE,4,2      ## @GEN7_SAMPLER_INSTDONE
	.comm	_GEN7_ROW_INSTDONE,4,2          ## @GEN7_ROW_INSTDONE
	.no_dead_strip	_i915_get_extra_instdone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_get_extra_instdone
_i915_get_extra_instdone:               ; @i915_get_extra_instdone
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _I915_NUM_INSTDONE_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I915_NUM_INSTDONE_REG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w2, w8, #2
	mov	x0, x1
	mov	w1, #0
	bl	_memset
	mov	x0, x20
	bl	_INTEL_INFO
	ldr	w8, [x0]
	sub	w9, w8, #4
	cmp	w9, #3
	b.lo	LBB0_3
; %bb.1:
	sub	w9, w8, #2
	cmp	w9, #2
	b.hs	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _INSTDONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INSTDONE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_I915_READ
	str	w0, [x19]
	b	LBB0_7
LBB0_3:
Lloh6:
	adrp	x8, _INSTDONE_I965@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INSTDONE_I965@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_I915_READ
	str	w0, [x19]
Lloh9:
	adrp	x8, _INSTDONE1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INSTDONE1@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_I915_READ
	str	w0, [x19, #4]
	b	LBB0_7
LBB0_4:
	cmp	w8, #7
	b.eq	LBB0_6
; %bb.5:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN_ONCE
LBB0_6:
Lloh14:
	adrp	x8, _GEN7_INSTDONE_1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GEN7_INSTDONE_1@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_I915_READ
	str	w0, [x19]
Lloh17:
	adrp	x8, _GEN7_SC_INSTDONE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GEN7_SC_INSTDONE@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_I915_READ
	str	w0, [x19, #4]
Lloh20:
	adrp	x8, _GEN7_SAMPLER_INSTDONE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GEN7_SAMPLER_INSTDONE@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_I915_READ
	str	w0, [x19, #8]
Lloh23:
	adrp	x8, _GEN7_ROW_INSTDONE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GEN7_ROW_INSTDONE@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_I915_READ
	str	w0, [x19, #12]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_NUM_INSTDONE_REG,4,2      ; @I915_NUM_INSTDONE_REG
	.comm	_INSTDONE,4,2                   ; @INSTDONE
	.comm	_INSTDONE_I965,4,2              ; @INSTDONE_I965
	.comm	_INSTDONE1,4,2                  ; @INSTDONE1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported platform\n"

	.comm	_GEN7_INSTDONE_1,4,2            ; @GEN7_INSTDONE_1
	.comm	_GEN7_SC_INSTDONE,4,2           ; @GEN7_SC_INSTDONE
	.comm	_GEN7_SAMPLER_INSTDONE,4,2      ; @GEN7_SAMPLER_INSTDONE
	.comm	_GEN7_ROW_INSTDONE,4,2          ; @GEN7_ROW_INSTDONE
	.no_dead_strip	_i915_get_extra_instdone
.subsections_via_symbols
