	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kgd2kfd_resume                 ## -- Begin function kgd2kfd_resume
	.p2align	4, 0x90
_kgd2kfd_resume:                        ## @kgd2kfd_resume
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	cmpl	$0, (%rdi)
	je	LBB0_3
## %bb.1:
	callq	_kfd_resume
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_kfd_locked@GOTPCREL(%rip), %rdi
	callq	_atomic_dec_return
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	leaq	L_.str(%rip), %rsi
	callq	_WARN_ONCE
	movl	$0, %eax
	testl	%ebx, %ebx
	je	LBB0_4
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_kfd_resume_all_processes       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_kfd_locked,4,2                 ## @kfd_locked
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"KFD suspend / resume ref. error"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kgd2kfd_resume                 ; -- Begin function kgd2kfd_resume
	.p2align	2
_kgd2kfd_resume:                        ; @kgd2kfd_resume
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	bl	_kfd_resume
	cbnz	w0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x0, _kfd_locked@GOTPAGE
Lloh1:
	ldr	x0, [x0, _kfd_locked@GOTPAGEOFF]
	bl	_atomic_dec_return
	mov	x19, x0
	lsr	w0, w0, #31
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN_ONCE
	cbz	w19, LBB0_5
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfd_resume_all_processes
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_kfd_locked,4,2                 ; @kfd_locked
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"KFD suspend / resume ref. error"

.subsections_via_symbols
