	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen7_init_oa_buffer
_gen7_init_oa_buffer:                   ## @gen7_init_oa_buffer
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	40(%rdi), %r12
	movl	32(%rdi), %edi
	callq	_i915_ggtt_offset
	movl	%eax, %ebx
	leaq	16(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_GEN7_OASTATUS2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GEN7_OASTATUS2_MEM_SELECT_GGTT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%ebx, %esi
	callq	_I915_WRITE
	movl	%ebx, 8(%r15)
	movq	_GEN7_OABUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movq	_GEN7_OASTATUS1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OABUFFER_SIZE_16M@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, %esi
	callq	_I915_WRITE
	movq	_INVALID_TAIL_PTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	24(%r15), %rdx
	movq	%rcx, (%rdx)
	movq	(%rax), %rax
	movq	%rax, 8(%rdx)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	$0, (%r12)
	movl	12(%r15), %edi
	movq	_OA_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
	movl	$0, (%r15)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN7_OASTATUS2,4,2             ## @GEN7_OASTATUS2
	.comm	_GEN7_OASTATUS2_MEM_SELECT_GGTT,4,2 ## @GEN7_OASTATUS2_MEM_SELECT_GGTT
	.comm	_GEN7_OABUFFER,4,2              ## @GEN7_OABUFFER
	.comm	_GEN7_OASTATUS1,4,2             ## @GEN7_OASTATUS1
	.comm	_OABUFFER_SIZE_16M,4,2          ## @OABUFFER_SIZE_16M
	.comm	_INVALID_TAIL_PTR,8,3           ## @INVALID_TAIL_PTR
	.comm	_OA_BUFFER_SIZE,4,2             ## @OA_BUFFER_SIZE
	.no_dead_strip	_gen7_init_oa_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen7_init_oa_buffer
_gen7_init_oa_buffer:                   ; @gen7_init_oa_buffer
	.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, x0
	ldr	x22, [x0, #40]
	ldr	w0, [x0, #32]
	bl	_i915_ggtt_offset
	mov	x20, x0
	add	x21, x19, #16
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _GEN7_OASTATUS2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEN7_OASTATUS2@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _GEN7_OASTATUS2_MEM_SELECT_GGTT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GEN7_OASTATUS2_MEM_SELECT_GGTT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w1, w8, w20
	bl	_I915_WRITE
	str	w20, [x19, #8]
Lloh6:
	adrp	x8, _GEN7_OABUFFER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GEN7_OABUFFER@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_I915_WRITE
Lloh9:
	adrp	x8, _GEN7_OASTATUS1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GEN7_OASTATUS1@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _OABUFFER_SIZE_16M@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OABUFFER_SIZE_16M@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w1, w8, w20
	bl	_I915_WRITE
Lloh15:
	adrp	x8, _INVALID_TAIL_PTR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _INVALID_TAIL_PTR@GOTPAGEOFF]
	ldr	x9, [x8]
	ldr	x10, [x19, #24]
	str	x9, [x10]
	ldr	x8, [x8]
	str	x8, [x10, #8]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	str	xzr, [x22]
	ldr	w0, [x19, #12]
Lloh17:
	adrp	x8, _OA_BUFFER_SIZE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OA_BUFFER_SIZE@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_memset
	str	wzr, [x19]
	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	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.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_OASTATUS2,4,2             ; @GEN7_OASTATUS2
	.comm	_GEN7_OASTATUS2_MEM_SELECT_GGTT,4,2 ; @GEN7_OASTATUS2_MEM_SELECT_GGTT
	.comm	_GEN7_OABUFFER,4,2              ; @GEN7_OABUFFER
	.comm	_GEN7_OASTATUS1,4,2             ; @GEN7_OASTATUS1
	.comm	_OABUFFER_SIZE_16M,4,2          ; @OABUFFER_SIZE_16M
	.comm	_INVALID_TAIL_PTR,8,3           ; @INVALID_TAIL_PTR
	.comm	_OA_BUFFER_SIZE,4,2             ; @OA_BUFFER_SIZE
	.no_dead_strip	_gen7_init_oa_buffer
.subsections_via_symbols
