	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function live_active_retire
_live_active_retire:                    ## @live_active_retire
	.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
	movq	%rdi, %r13
	callq	_mutex_lock
	leaq	4(%r13), %r14
	movq	%r14, %rdi
	callq	_intel_runtime_pm_get
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	___live_active_setup
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_2:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	_I915_WAIT_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_igt_flush_test
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	testq	%rax, %rax
	cmovel	%r15d, %ebx
	cmpl	$0, (%r12)
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	%r15d, %ebx
LBB0_4:
	movq	%r12, %rdi
	callq	___live_put
	movl	-44(%rbp), %r15d                ## 4-byte Reload
LBB0_5:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_intel_runtime_pm_put
	movq	%r13, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_WAIT_LOCKED,4,2           ## @I915_WAIT_LOCKED
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i915_active not retired after flushing!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_live_active_retire
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function live_active_retire
_live_active_retire:                    ; @live_active_retire
	.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, x0
	bl	_mutex_lock
	add	x20, x19, #4
	mov	x0, x20
	bl	_intel_runtime_pm_get
	mov	x21, x0
	mov	x0, x19
	bl	___live_active_setup
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _I915_WAIT_LOCKED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I915_WAIT_LOCKED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_igt_flush_test
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w23, wzr, w8, eq
	ldr	w8, [x22]
	cbnz	w8, LBB0_4
; %bb.3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_4:
	mov	x0, x22
	bl	___live_put
LBB0_5:
	mov	x0, x20
	mov	x1, x21
	bl	_intel_runtime_pm_put
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x23
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_WAIT_LOCKED,4,2           ; @I915_WAIT_LOCKED
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i915_active not retired after flushing!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_live_active_retire
.subsections_via_symbols
