	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function live_reset_whitelist
_live_reset_whitelist:                  ## @live_reset_whitelist
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	movq	_RCS0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r15
	xorl	%ebx, %ebx
	testq	%r15, %r15
	je	LBB0_8
## %bb.1:
	cmpq	$0, (%r15)
	je	LBB0_8
## %bb.2:
	movq	%rdi, %r14
	callq	_igt_global_reset_lock
	movq	%r14, %rdi
	callq	_intel_has_reset_engine
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_do_engine_reset@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_check_whitelist_across_reset
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
LBB0_4:
	movq	%r14, %rdi
	callq	_intel_has_gpu_reset
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	_do_device_reset@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	callq	_check_whitelist_across_reset
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_5:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%r14, %rdi
	callq	_igt_global_reset_unlock
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RCS0,8,3                       ## @RCS0
	.comm	_do_engine_reset,4,2            ## @do_engine_reset
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"engine"

	.comm	_do_device_reset,4,2            ## @do_device_reset
L_.str.1:                               ## @.str.1
	.asciz	"device"

	.no_dead_strip	_live_reset_whitelist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function live_reset_whitelist
_live_reset_whitelist:                  ; @live_reset_whitelist
	.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
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _RCS0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RCS0@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x20, [x8, x9, lsl #3]
	cbz	x20, LBB0_6
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_6
; %bb.2:
	mov	x19, x0
	bl	_igt_global_reset_lock
	mov	x0, x19
	bl	_intel_has_reset_engine
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _do_engine_reset@GOTPAGE
Lloh4:
	ldr	x8, [x8, _do_engine_reset@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_check_whitelist_across_reset
	mov	x21, x0
	cbnz	w0, LBB0_8
LBB0_4:
	mov	x0, x19
	bl	_intel_has_gpu_reset
	cbz	x0, LBB0_7
; %bb.5:
Lloh8:
	adrp	x8, _do_device_reset@GOTPAGE
Lloh9:
	ldr	x8, [x8, _do_device_reset@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_check_whitelist_across_reset
	mov	x21, x0
	b	LBB0_8
LBB0_6:
	mov	w21, #0
	b	LBB0_9
LBB0_7:
	mov	w21, #0
LBB0_8:
	mov	x0, x19
	bl	_igt_global_reset_unlock
LBB0_9:
	mov	x0, x21
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RCS0,8,3                       ; @RCS0
	.comm	_do_engine_reset,4,2            ; @do_engine_reset
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"engine"

	.comm	_do_device_reset,4,2            ; @do_device_reset
l_.str.1:                               ; @.str.1
	.asciz	"device"

	.no_dead_strip	_live_reset_whitelist
.subsections_via_symbols
