	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen7_oa_enable
_gen7_oa_enable:                        ## @gen7_oa_enable
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %r12d
	movl	4(%rdi), %r15d
	movl	8(%rdi), %ebx
	movl	12(%rdi), %r14d
	movq	16(%rdi), %r13
	callq	_gen7_init_oa_buffer
	xorl	%eax, %eax
	movq	_GEN7_OACONTROL@GOTPCREL(%rip), %rdx
	movq	_GEN7_OACONTROL_CTX_MASK@GOTPCREL(%rip), %rsi
	movq	_GEN7_OACONTROL_TIMER_PERIOD_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	movq	_GEN7_OACONTROL_PER_CTX_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	andl	(%rsi), %r12d
	movl	(%rdx), %edi
	shll	%cl, %ebx
	orl	%r12d, %ebx
	movq	_GEN7_OACONTROL_FORMAT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:
	movq	_GEN7_OACONTROL_TIMER_ENABLE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r15d
LBB0_4:
	shll	%cl, %r14d
	orl	%r15d, %r14d
	orl	%r14d, %ebx
	orl	%eax, %ebx
	movq	_GEN7_OACONTROL_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN7_OACONTROL,4,2             ## @GEN7_OACONTROL
	.comm	_GEN7_OACONTROL_CTX_MASK,4,2    ## @GEN7_OACONTROL_CTX_MASK
	.comm	_GEN7_OACONTROL_TIMER_PERIOD_SHIFT,4,2 ## @GEN7_OACONTROL_TIMER_PERIOD_SHIFT
	.comm	_GEN7_OACONTROL_TIMER_ENABLE,4,2 ## @GEN7_OACONTROL_TIMER_ENABLE
	.comm	_GEN7_OACONTROL_FORMAT_SHIFT,4,2 ## @GEN7_OACONTROL_FORMAT_SHIFT
	.comm	_GEN7_OACONTROL_PER_CTX_ENABLE,4,2 ## @GEN7_OACONTROL_PER_CTX_ENABLE
	.comm	_GEN7_OACONTROL_ENABLE,4,2      ## @GEN7_OACONTROL_ENABLE
	.no_dead_strip	_gen7_oa_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen7_oa_enable
_gen7_oa_enable:                        ; @gen7_oa_enable
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x19, [x0, #16]
	ldp	w20, w21, [x0]
	ldp	w22, w23, [x0, #8]
	bl	_gen7_init_oa_buffer
Lloh0:
	adrp	x8, _GEN7_OACONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEN7_OACONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _GEN7_OACONTROL_CTX_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GEN7_OACONTROL_CTX_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w20
Lloh6:
	adrp	x9, _GEN7_OACONTROL_TIMER_PERIOD_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GEN7_OACONTROL_TIMER_PERIOD_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w9, w22, w9
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _GEN7_OACONTROL_TIMER_ENABLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GEN7_OACONTROL_TIMER_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w21, #0
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _GEN7_OACONTROL_FORMAT_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _GEN7_OACONTROL_FORMAT_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	lsl	w9, w23, w9
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _GEN7_OACONTROL_PER_CTX_ENABLE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _GEN7_OACONTROL_PER_CTX_ENABLE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	x19, #0
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _GEN7_OACONTROL_ENABLE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _GEN7_OACONTROL_ENABLE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w1, w8, w9
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_I915_WRITE
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN7_OACONTROL,4,2             ; @GEN7_OACONTROL
	.comm	_GEN7_OACONTROL_CTX_MASK,4,2    ; @GEN7_OACONTROL_CTX_MASK
	.comm	_GEN7_OACONTROL_TIMER_PERIOD_SHIFT,4,2 ; @GEN7_OACONTROL_TIMER_PERIOD_SHIFT
	.comm	_GEN7_OACONTROL_TIMER_ENABLE,4,2 ; @GEN7_OACONTROL_TIMER_ENABLE
	.comm	_GEN7_OACONTROL_FORMAT_SHIFT,4,2 ; @GEN7_OACONTROL_FORMAT_SHIFT
	.comm	_GEN7_OACONTROL_PER_CTX_ENABLE,4,2 ; @GEN7_OACONTROL_PER_CTX_ENABLE
	.comm	_GEN7_OACONTROL_ENABLE,4,2      ; @GEN7_OACONTROL_ENABLE
	.no_dead_strip	_gen7_oa_enable
.subsections_via_symbols
