	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlv_residency_raw
_vlv_residency_raw:                     ## @vlv_residency_raw
	.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	%esi, %r14d
	callq	_lockdep_assert_held
	movq	_VLV_COUNTER_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	_VLV_COUNT_RANGE_HIGH@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	__MASKED_BIT_ENABLE
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE_FW
	movl	%r14d, %edi
	callq	_I915_READ_FW
	movq	%rax, %rbx
	movl	(%r12), %r15d
	movl	(%r13), %edi
	callq	__MASKED_BIT_DISABLE
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_I915_WRITE_FW
	movl	%r14d, %edi
	callq	_I915_READ_FW
	movq	%rax, %r15
	movl	(%r12), %r12d
	movl	(%r13), %edi
	callq	__MASKED_BIT_ENABLE
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_I915_WRITE_FW
	movl	%r14d, %edi
	callq	_I915_READ_FW
	cmpq	%rbx, %rax
	je	LBB0_2
## %bb.1:
	movq	_VLV_COUNTER_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movl	(%r13), %edi
	callq	__MASKED_BIT_DISABLE
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE_FW
	movl	%r14d, %edi
	callq	_I915_READ_FW
	movq	%rax, %r15
	movl	(%r12), %ebx
	movl	(%r13), %edi
	callq	__MASKED_BIT_ENABLE
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE_FW
	movl	%r14d, %edi
	callq	_I915_READ_FW
	movq	%rax, %rbx
LBB0_2:
	shll	$8, %ebx
	orl	%ebx, %r15d
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VLV_COUNTER_CONTROL,4,2        ## @VLV_COUNTER_CONTROL
	.comm	_VLV_COUNT_RANGE_HIGH,4,2       ## @VLV_COUNT_RANGE_HIGH
	.no_dead_strip	_vlv_residency_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlv_residency_raw
_vlv_residency_raw:                     ; @vlv_residency_raw
	.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
	mov	x19, x1
	bl	_lockdep_assert_held
Lloh0:
	adrp	x23, _VLV_COUNTER_CONTROL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _VLV_COUNTER_CONTROL@GOTPAGEOFF]
	ldr	w20, [x23]
Lloh2:
	adrp	x24, _VLV_COUNT_RANGE_HIGH@GOTPAGE
Lloh3:
	ldr	x24, [x24, _VLV_COUNT_RANGE_HIGH@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	__MASKED_BIT_ENABLE
	mov	x1, x0
	mov	x0, x20
	bl	_I915_WRITE_FW
	mov	x0, x19
	bl	_I915_READ_FW
	mov	x21, x0
	ldr	w20, [x23]
	ldr	w0, [x24]
	bl	__MASKED_BIT_DISABLE
	mov	x1, x0
	mov	x0, x20
	bl	_I915_WRITE_FW
	mov	x0, x19
	bl	_I915_READ_FW
	mov	x20, x0
	ldr	w22, [x23]
	ldr	w0, [x24]
	bl	__MASKED_BIT_ENABLE
	mov	x1, x0
	mov	x0, x22
	bl	_I915_WRITE_FW
	mov	x0, x19
	bl	_I915_READ_FW
	cmp	x0, x21
	b.eq	LBB0_2
; %bb.1:
	ldr	w20, [x23]
	ldr	w0, [x24]
	bl	__MASKED_BIT_DISABLE
	mov	x1, x0
	mov	x0, x20
	bl	_I915_WRITE_FW
	mov	x0, x19
	bl	_I915_READ_FW
	mov	x20, x0
	ldr	w21, [x23]
	ldr	w0, [x24]
	bl	__MASKED_BIT_ENABLE
	mov	x1, x0
	mov	x0, x21
	bl	_I915_WRITE_FW
	mov	x0, x19
	bl	_I915_READ_FW
	mov	x21, x0
LBB0_2:
	orr	w0, w20, w21, lsl #8
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VLV_COUNTER_CONTROL,4,2        ; @VLV_COUNTER_CONTROL
	.comm	_VLV_COUNT_RANGE_HIGH,4,2       ; @VLV_COUNT_RANGE_HIGH
	.no_dead_strip	_vlv_residency_raw
.subsections_via_symbols
