	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgpu_vi_send_access_requests
_xgpu_vi_send_access_requests:          ## @xgpu_vi_send_access_requests
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_xgpu_vi_mailbox_trans_msg
	movq	%rbx, %rdi
	callq	_xgpu_vi_poll_ack
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_xgpu_vi_mailbox_set_valid
	movq	_IDH_REQ_GPU_INIT_ACCESS@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_4
## %bb.2:
	movq	_IDH_REQ_GPU_FINI_ACCESS@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_IDH_REQ_GPU_RESET_ACCESS@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_6
LBB0_4:
	movq	_IDH_READY_TO_ACCESS_GPU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_xgpu_vi_poll_msg
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movl	%ebx, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDH_REQ_GPU_INIT_ACCESS,4,2    ## @IDH_REQ_GPU_INIT_ACCESS
	.comm	_IDH_REQ_GPU_FINI_ACCESS,4,2    ## @IDH_REQ_GPU_FINI_ACCESS
	.comm	_IDH_REQ_GPU_RESET_ACCESS,4,2   ## @IDH_REQ_GPU_RESET_ACCESS
	.comm	_IDH_READY_TO_ACCESS_GPU,4,2    ## @IDH_READY_TO_ACCESS_GPU
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Doesn't get ack from pf, give up\n"

	.no_dead_strip	_xgpu_vi_send_access_requests
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgpu_vi_send_access_requests
_xgpu_vi_send_access_requests:          ; @xgpu_vi_send_access_requests
	.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	x21, x1
	mov	x19, x0
	bl	_xgpu_vi_mailbox_trans_msg
	mov	x0, x19
	bl	_xgpu_vi_poll_ack
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_xgpu_vi_mailbox_set_valid
Lloh0:
	adrp	x8, _IDH_REQ_GPU_INIT_ACCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDH_REQ_GPU_INIT_ACCESS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IDH_REQ_GPU_FINI_ACCESS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IDH_REQ_GPU_FINI_ACCESS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _IDH_REQ_GPU_RESET_ACCESS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IDH_REQ_GPU_RESET_ACCESS@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w8, w21
	ccmp	w9, w21, #4, ne
	ccmp	w10, w21, #4, ne
	b.ne	LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, _IDH_READY_TO_ACCESS_GPU@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IDH_READY_TO_ACCESS_GPU@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_xgpu_vi_poll_msg
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.3:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_4:
	mov	x0, x20
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_IDH_REQ_GPU_INIT_ACCESS,4,2    ; @IDH_REQ_GPU_INIT_ACCESS
	.comm	_IDH_REQ_GPU_FINI_ACCESS,4,2    ; @IDH_REQ_GPU_FINI_ACCESS
	.comm	_IDH_REQ_GPU_RESET_ACCESS,4,2   ; @IDH_REQ_GPU_RESET_ACCESS
	.comm	_IDH_READY_TO_ACCESS_GPU,4,2    ; @IDH_READY_TO_ACCESS_GPU
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Doesn't get ack from pf, give up\n"

	.no_dead_strip	_xgpu_vi_send_access_requests
.subsections_via_symbols
