	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sr_oa_regs
_sr_oa_regs:                            ## @sr_oa_regs
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -84(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	24(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movslq	(%rax), %rbx
	movslq	4(%rax), %r12
	movq	_EU_PERF_CNTL0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_i915_mmio_reg_offset
	movl	%eax, %r15d
	movl	%eax, -80(%rbp)
	movq	_EU_PERF_CNTL1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_i915_mmio_reg_offset
	movl	%eax, -76(%rbp)
	movq	_EU_PERF_CNTL2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_i915_mmio_reg_offset
	movl	%eax, -72(%rbp)
	movq	_EU_PERF_CNTL3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_i915_mmio_reg_offset
	movl	%eax, -68(%rbp)
	movq	_EU_PERF_CNTL4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_i915_mmio_reg_offset
	movl	%eax, -64(%rbp)
	movq	_EU_PERF_CNTL5@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_i915_mmio_reg_offset
	movl	%eax, -60(%rbp)
	movq	_EU_PERF_CNTL6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_i915_mmio_reg_offset
	movl	%eax, -56(%rbp)
	movq	(%r13), %rax
	movq	_RCS0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.1:
	cmpl	$0, -84(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_5
## %bb.2:
	movl	4(%r14,%rbx,4), %eax
	movl	%eax, 8(%r13)
	movq	16(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_9
## %bb.3:
	incl	%r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r12d, %r12
	movl	(%r14,%r12,4), %eax
	movq	16(%r13), %rdi
	movl	%eax, (%rdi,%rbx,4)
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	addl	$2, %r12d
	cmpq	%rax, %rbx
	jl	LBB0_4
	jmp	LBB0_9
LBB0_5:
	movq	_GEN8_OACTXCONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_i915_mmio_reg_offset
	movl	%eax, (%r14,%rbx,4)
	movl	8(%r13), %eax
	movl	%eax, 4(%r14,%rbx,4)
	movq	16(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_9
## %bb.6:
	movl	%r15d, (%r14,%r12,4)
	movq	16(%r13), %rdi
	movl	(%rdi), %eax
	movl	%eax, 4(%r14,%r12,4)
	callq	_ARRAY_SIZE
	cmpl	$2, %eax
	jl	LBB0_9
## %bb.7:
	leaq	(%r14,%r12,4), %r14
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	-80(%rbp,%rbx,4), %eax
	movl	%eax, (%r14,%rbx,8)
	movq	16(%r13), %rdi
	movl	(%rdi,%rbx,4), %eax
	movl	%eax, 4(%r14,%rbx,8)
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_8
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EU_PERF_CNTL0,4,2              ## @EU_PERF_CNTL0
	.comm	_EU_PERF_CNTL1,4,2              ## @EU_PERF_CNTL1
	.comm	_EU_PERF_CNTL2,4,2              ## @EU_PERF_CNTL2
	.comm	_EU_PERF_CNTL3,4,2              ## @EU_PERF_CNTL3
	.comm	_EU_PERF_CNTL4,4,2              ## @EU_PERF_CNTL4
	.comm	_EU_PERF_CNTL5,4,2              ## @EU_PERF_CNTL5
	.comm	_EU_PERF_CNTL6,4,2              ## @EU_PERF_CNTL6
	.comm	_RCS0,8,3                       ## @RCS0
	.comm	_GEN8_OACTXCONTROL,4,2          ## @GEN8_OACTXCONTROL
	.no_dead_strip	_sr_oa_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sr_oa_regs
_sr_oa_regs:                            ; @sr_oa_regs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldpsw	x24, x23, [x8]
Lloh3:
	adrp	x8, _EU_PERF_CNTL0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EU_PERF_CNTL0@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_i915_mmio_reg_offset
	mov	x21, x0
	str	w0, [sp, #12]
Lloh6:
	adrp	x8, _EU_PERF_CNTL1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EU_PERF_CNTL1@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_i915_mmio_reg_offset
	str	w0, [sp, #16]
Lloh9:
	adrp	x8, _EU_PERF_CNTL2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EU_PERF_CNTL2@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_i915_mmio_reg_offset
	str	w0, [sp, #20]
Lloh12:
	adrp	x8, _EU_PERF_CNTL3@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EU_PERF_CNTL3@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_i915_mmio_reg_offset
	str	w0, [sp, #24]
Lloh15:
	adrp	x8, _EU_PERF_CNTL4@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EU_PERF_CNTL4@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_i915_mmio_reg_offset
	str	w0, [sp, #28]
Lloh18:
	adrp	x8, _EU_PERF_CNTL5@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EU_PERF_CNTL5@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_i915_mmio_reg_offset
	str	w0, [sp, #32]
Lloh21:
	adrp	x8, _EU_PERF_CNTL6@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EU_PERF_CNTL6@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_i915_mmio_reg_offset
	str	w0, [sp, #36]
	ldr	x8, [x19]
Lloh24:
	adrp	x9, _RCS0@GOTPAGE
Lloh25:
	ldr	x9, [x9, _RCS0@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.1:
	cbz	w22, LBB0_5
; %bb.2:
	add	w8, w24, #1
	ldr	w8, [x20, w8, sxtw #2]
	str	w8, [x19, #8]
	ldr	x0, [x19, #16]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.3:
	mov	x21, #0
	add	w22, w23, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, w22, sxtw #2]
	ldr	x0, [x19, #16]
	str	w8, [x0, x21, lsl #2]
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	add	w22, w22, #2
	cmp	x21, w0, sxtw
	b.lt	LBB0_4
	b	LBB0_9
LBB0_5:
Lloh27:
	adrp	x8, _GEN8_OACTXCONTROL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _GEN8_OACTXCONTROL@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_i915_mmio_reg_offset
	str	w0, [x20, x24, lsl #2]
	ldr	w8, [x19, #8]
	add	x9, x20, x24, lsl #2
	str	w8, [x9, #4]
	ldr	x0, [x19, #16]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.6:
	add	x20, x20, x23, lsl #2
	str	w21, [x20]
	ldr	x0, [x19, #16]
	ldr	w8, [x0]
	str	w8, [x20, #4]
	bl	_ARRAY_SIZE
	cmp	w0, #2
	b.lt	LBB0_9
; %bb.7:
	add	x20, x20, #12
	mov	w21, #1
	add	x22, sp, #12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x8, x21, #2
	ldr	w9, [x22, x8]
	stur	w9, [x20, #-4]
	ldr	x0, [x19, #16]
	ldr	w8, [x0, x8]
	str	w8, [x20], #8
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.lt	LBB0_8
LBB0_9:
	ldr	x8, [sp, #40]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_EU_PERF_CNTL0,4,2              ; @EU_PERF_CNTL0
	.comm	_EU_PERF_CNTL1,4,2              ; @EU_PERF_CNTL1
	.comm	_EU_PERF_CNTL2,4,2              ; @EU_PERF_CNTL2
	.comm	_EU_PERF_CNTL3,4,2              ; @EU_PERF_CNTL3
	.comm	_EU_PERF_CNTL4,4,2              ; @EU_PERF_CNTL4
	.comm	_EU_PERF_CNTL5,4,2              ; @EU_PERF_CNTL5
	.comm	_EU_PERF_CNTL6,4,2              ; @EU_PERF_CNTL6
	.comm	_RCS0,8,3                       ; @RCS0
	.comm	_GEN8_OACTXCONTROL,4,2          ; @GEN8_OACTXCONTROL
	.no_dead_strip	_sr_oa_regs
.subsections_via_symbols
