	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgpu_vi_mailbox_send_ack
_xgpu_vi_mailbox_send_ack:              ## @xgpu_vi_mailbox_send_ack
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_VI_MAILBOX_TIMEDOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_MAILBOX_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_RCV_MSG_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_REG_FIELD_MASK
	movl	%eax, %r14d
	movq	_mmMAILBOX_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_RREG32_NO_KIQ
	movl	(%r12), %esi
	movq	_RCV_MSG_ACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$1, %ecx
	callq	_REG_SET_FIELD
	movl	(%r15), %edi
	movl	%eax, %esi
	callq	_WREG32_NO_KIQ
	movl	(%r15), %edi
	callq	_RREG32_NO_KIQ
	testl	%r14d, %eax
	je	LBB0_4
## %bb.1:
	incl	%ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	decl	%ebx
	testl	%ebx, %ebx
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	callq	_mdelay
	movl	(%r15), %edi
	callq	_RREG32_NO_KIQ
	testl	%r14d, %eax
	jne	LBB0_2
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VI_MAILBOX_TIMEDOUT,4,2        ## @VI_MAILBOX_TIMEDOUT
	.comm	_MAILBOX_CONTROL,4,2            ## @MAILBOX_CONTROL
	.comm	_RCV_MSG_VALID,4,2              ## @RCV_MSG_VALID
	.comm	_mmMAILBOX_CONTROL,4,2          ## @mmMAILBOX_CONTROL
	.comm	_RCV_MSG_ACK,4,2                ## @RCV_MSG_ACK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RCV_MSG_VALID is not cleared\n"

	.no_dead_strip	_xgpu_vi_mailbox_send_ack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgpu_vi_mailbox_send_ack
_xgpu_vi_mailbox_send_ack:              ; @xgpu_vi_mailbox_send_ack
	.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
Lloh0:
	adrp	x8, _VI_MAILBOX_TIMEDOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VI_MAILBOX_TIMEDOUT@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x22, _MAILBOX_CONTROL@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MAILBOX_CONTROL@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh5:
	adrp	x8, _RCV_MSG_VALID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RCV_MSG_VALID@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_REG_FIELD_MASK
	mov	x19, x0
Lloh8:
	adrp	x20, _mmMAILBOX_CONTROL@GOTPAGE
Lloh9:
	ldr	x20, [x20, _mmMAILBOX_CONTROL@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_RREG32_NO_KIQ
	ldr	w1, [x22]
Lloh10:
	adrp	x8, _RCV_MSG_ACK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RCV_MSG_ACK@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_REG_SET_FIELD
	mov	x1, x0
	ldr	w0, [x20]
	bl	_WREG32_NO_KIQ
	ldr	w0, [x20]
	bl	_RREG32_NO_KIQ
	tst	w0, w19
	b.eq	LBB0_4
; %bb.1:
	add	w21, w21, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w21, w21, #1
	cmp	w21, #0
	b.le	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1
	bl	_mdelay
	ldr	w0, [x20]
	bl	_RREG32_NO_KIQ
	tst	w0, w19
	b.ne	LBB0_2
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
LBB0_5:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	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	_pr_err
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_VI_MAILBOX_TIMEDOUT,4,2        ; @VI_MAILBOX_TIMEDOUT
	.comm	_MAILBOX_CONTROL,4,2            ; @MAILBOX_CONTROL
	.comm	_RCV_MSG_VALID,4,2              ; @RCV_MSG_VALID
	.comm	_mmMAILBOX_CONTROL,4,2          ; @mmMAILBOX_CONTROL
	.comm	_RCV_MSG_ACK,4,2                ; @RCV_MSG_ACK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RCV_MSG_VALID is not cleared\n"

	.no_dead_strip	_xgpu_vi_mailbox_send_ack
.subsections_via_symbols
