	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flush_texture_cache_nocpsch
_flush_texture_cache_nocpsch:           ## @flush_texture_cache_nocpsch
	.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	%rsi, %rbx
	movq	(%rsi), %rsi
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	16(%rbx), %rax
	movq	(%rax), %r15
	movl	8(%rbx), %edi
	callq	*(%r15)
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:
	movl	(%r14), %edi
	movq	_KGD_ENGINE_MEC1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%rbx), %edx
	movl	8(%rbx), %ecx
	movq	(%rbx), %r8
	movl	8(%r15), %r9d
	sarl	$2, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_amdgpu_amdkfd_submit_ib        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_KGD_ENGINE_MEC1,4,2            ## @KGD_ENGINE_MEC1
	.no_dead_strip	_flush_texture_cache_nocpsch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flush_texture_cache_nocpsch
_flush_texture_cache_nocpsch:           ; @flush_texture_cache_nocpsch
	.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, x1
	ldr	x1, [x1]
	cbz	x1, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x8, [x19, #16]
	ldr	x21, [x8]
	ldr	x8, [x21]
	ldr	w0, [x19, #8]
	blr	x8
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x20]
Lloh0:
	adrp	x8, _KGD_ENGINE_MEC1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KGD_ENGINE_MEC1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldp	w3, w2, [x19, #8]
	ldr	x4, [x19]
	ldr	w8, [x21, #8]
	asr	w5, w8, #2
	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
	b	_amdgpu_amdkfd_submit_ib
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_KGD_ENGINE_MEC1,4,2            ; @KGD_ENGINE_MEC1
	.no_dead_strip	_flush_texture_cache_nocpsch
.subsections_via_symbols
