	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nbio_v7_4_hdp_flush
_nbio_v7_4_hdp_flush:                   ## @nbio_v7_4_hdp_flush
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	(%rsi), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.3:
	movq	_KFD_MMIO_REMAP_HDP_MEM_FLUSH_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	(%rdi), %eax
	sarl	$2, %eax
	movq	%rsi, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	popq	%rbp
	jmp	_amdgpu_ring_emit_wreg          ## TAILCALL
LBB0_2:
	movq	_KFD_MMIO_REMAP_HDP_MEM_FLUSH_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	(%rdi), %eax
	sarl	$2, %eax
	movl	%eax, %edi
	xorl	%esi, %esi
	popq	%rbp
	jmp	_WREG32_NO_KIQ                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_KFD_MMIO_REMAP_HDP_MEM_FLUSH_CNTL,4,2 ## @KFD_MMIO_REMAP_HDP_MEM_FLUSH_CNTL
	.no_dead_strip	_nbio_v7_4_hdp_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nbio_v7_4_hdp_flush
_nbio_v7_4_hdp_flush:                   ; @nbio_v7_4_hdp_flush
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_3
; %bb.1:
	ldr	x8, [x1]
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.2:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _KFD_MMIO_REMAP_HDP_MEM_FLUSH_CNTL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KFD_MMIO_REMAP_HDP_MEM_FLUSH_CNTL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	w8, w9, w8
	asr	w8, w8, #2
	mov	x0, x1
	mov	x1, x8
	mov	w2, #0
	b	_amdgpu_ring_emit_wreg
LBB0_3:
Lloh3:
	adrp	x8, _KFD_MMIO_REMAP_HDP_MEM_FLUSH_CNTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KFD_MMIO_REMAP_HDP_MEM_FLUSH_CNTL@GOTPAGEOFF]
	ldr	w9, [x0]
Lloh5:
	ldr	w8, [x8]
	add	w8, w8, w9
	asr	w0, w8, #2
	mov	w1, #0
	b	_WREG32_NO_KIQ
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_KFD_MMIO_REMAP_HDP_MEM_FLUSH_CNTL,4,2 ; @KFD_MMIO_REMAP_HDP_MEM_FLUSH_CNTL
	.no_dead_strip	_nbio_v7_4_hdp_flush
.subsections_via_symbols
