	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vbva_inform_host
_vbva_inform_host:                      ## @vbva_inform_host
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	_HGSMI_CH_VBVA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_VBVA_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rsi, %rdi
	movl	$32, %esi
	callq	_hgsmi_buffer_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	testl	%r15d, %r15d
	jne	LBB0_3
## %bb.4:
	movq	_VBVA_F_DISABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_3:
	movq	_VBVA_F_ENABLE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	(%r13), %ecx
	movl	%ecx, 16(%rbx)
	movq	_VERR_NOT_SUPPORTED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rbx)
	testq	%r12, %r12
	js	LBB0_7
## %bb.6:
	movq	_VBVA_F_EXTENDED@GOTPCREL(%rip), %rcx
	movq	_VBVA_F_ABSOFFSET@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movl	%eax, (%rbx)
	movq	%r12, 24(%rbx)
LBB0_7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_hgsmi_buffer_submit
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.9:
	movq	8(%rbx), %r15
	shrq	$63, %r15
	xorl	$1, %r15d
	jmp	LBB0_10
LBB0_8:
	movl	$1, %r15d
LBB0_10:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_hgsmi_buffer_free
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HGSMI_CH_VBVA,4,2              ## @HGSMI_CH_VBVA
	.comm	_VBVA_ENABLE,4,2                ## @VBVA_ENABLE
	.comm	_VBVA_F_ENABLE,4,2              ## @VBVA_F_ENABLE
	.comm	_VBVA_F_DISABLE,4,2             ## @VBVA_F_DISABLE
	.comm	_VERR_NOT_SUPPORTED,8,3         ## @VERR_NOT_SUPPORTED
	.comm	_VBVA_F_EXTENDED,4,2            ## @VBVA_F_EXTENDED
	.comm	_VBVA_F_ABSOFFSET,4,2           ## @VBVA_F_ABSOFFSET
	.no_dead_strip	_vbva_inform_host
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vbva_inform_host
_vbva_inform_host:                      ; @vbva_inform_host
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _HGSMI_CH_VBVA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HGSMI_CH_VBVA@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _VBVA_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VBVA_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x1
	mov	w1, #32
	bl	_hgsmi_buffer_alloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh6:
	adrp	x8, _VBVA_F_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VBVA_F_ENABLE@GOTPAGEOFF]
Lloh8:
	adrp	x9, _VBVA_F_DISABLE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _VBVA_F_DISABLE@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x0]
	ldr	w9, [x23]
	str	w9, [x0, #16]
Lloh10:
	adrp	x9, _VERR_NOT_SUPPORTED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _VERR_NOT_SUPPORTED@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	str	x9, [x0, #8]
	tbnz	x22, #63, LBB0_3
; %bb.2:
Lloh13:
	adrp	x9, _VBVA_F_EXTENDED@GOTPAGE
Lloh14:
	ldr	x9, [x9, _VBVA_F_EXTENDED@GOTPAGEOFF]
Lloh15:
	adrp	x10, _VBVA_F_ABSOFFSET@GOTPAGE
Lloh16:
	ldr	x10, [x10, _VBVA_F_ABSOFFSET@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w8, w8, w10
	str	w8, [x20]
	str	x22, [x20, #24]
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_hgsmi_buffer_submit
	cbz	w21, LBB0_6
; %bb.4:
	ldr	x8, [x20, #8]
	lsr	x8, x8, #63
	eor	w21, w8, #0x1
	b	LBB0_7
LBB0_5:
	mov	w21, #0
	b	LBB0_8
LBB0_6:
	mov	w21, #1
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_hgsmi_buffer_free
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_HGSMI_CH_VBVA,4,2              ; @HGSMI_CH_VBVA
	.comm	_VBVA_ENABLE,4,2                ; @VBVA_ENABLE
	.comm	_VBVA_F_ENABLE,4,2              ; @VBVA_F_ENABLE
	.comm	_VBVA_F_DISABLE,4,2             ; @VBVA_F_DISABLE
	.comm	_VERR_NOT_SUPPORTED,8,3         ; @VERR_NOT_SUPPORTED
	.comm	_VBVA_F_EXTENDED,4,2            ; @VBVA_F_EXTENDED
	.comm	_VBVA_F_ABSOFFSET,4,2           ; @VBVA_F_ABSOFFSET
	.no_dead_strip	_vbva_inform_host
.subsections_via_symbols
