	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_virtual_sbi_register
_write_virtual_sbi_register:            ## @write_virtual_sbi_register
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.3:
	movq	8(%rdi), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%esi, (%rax,%rcx,8)
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rcx
	cmpq	%rcx, %r8
	jne	LBB0_4
## %bb.6:
	movl	%r8d, %ecx
	jmp	LBB0_7
LBB0_1:
	xorl	%ecx, %ecx
LBB0_2:
	cmpl	%r8d, %ecx
	jne	LBB0_9
LBB0_7:
	movq	_SBI_REG_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r8d
	jne	LBB0_8
## %bb.10:
	leaq	L_.str(%rip), %rdi
	popq	%rbp
	jmp	_gvt_vgpu_err                   ## TAILCALL
LBB0_8:
	incl	%r8d
	movl	%r8d, (%rdi)
LBB0_9:
	movq	8(%rdi), %rax
	movl	%ecx, %ecx
	movl	%esi, (%rax,%rcx,8)
	movl	%edx, 4(%rax,%rcx,8)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SBI_REG_MAX,4,2                ## @SBI_REG_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SBI caching meets maximum limits\n"

	.no_dead_strip	_write_virtual_sbi_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_virtual_sbi_register
_write_virtual_sbi_register:            ; @write_virtual_sbi_register
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x9, #0
	ldr	x10, [x0, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	cmp	w11, w1
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	add	x10, x10, #8
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.4:
	mov	x9, x8
	b	LBB0_7
LBB0_5:
	mov	w9, #0
LBB0_6:
	cmp	w9, w8
	b.ne	LBB0_10
LBB0_7:
Lloh0:
	adrp	x10, _SBI_REG_MAX@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SBI_REG_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w8, w10
	b.ne	LBB0_9
; %bb.8:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	_gvt_vgpu_err
LBB0_9:
	add	w8, w8, #1
	str	w8, [x0]
LBB0_10:
	ldr	x8, [x0, #8]
	add	x8, x8, w9, uxtw #3
	stp	w1, w2, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SBI_REG_MAX,4,2                ; @SBI_REG_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SBI caching meets maximum limits\n"

	.no_dead_strip	_write_virtual_sbi_register
.subsections_via_symbols
