	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_mirror_vl                  ## -- Begin function get_mirror_vl
	.p2align	4, 0x90
_get_mirror_vl:                         ## @get_mirror_vl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ecx
	movq	%rdi, %rsi
	orl	$256, %ecx                      ## imm = 0x100
	movq	_buf@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_IB_ATTR_SLVL_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_srcport@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorl	%r8d, %r8d
	callq	_smp_query_via
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_IBEXIT
LBB0_2:
	movq	(%rbx), %rdi
	movq	_mirror_sl@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_ib_slvl_table_get
	movl	%eax, %ebx
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %edx
	callq	_printf
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_buf,8,3                        ## @buf
	.comm	_IB_ATTR_SLVL_TABLE,4,2         ## @IB_ATTR_SLVL_TABLE
	.comm	_srcport,4,2                    ## @srcport
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"slvl query failed"

	.comm	_mirror_sl,4,2                  ## @mirror_sl
L_.str.1:                               ## @.str.1
	.asciz	"mirror_sl %d, mirror_vl %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_mirror_vl                  ; -- Begin function get_mirror_vl
	.p2align	2
_get_mirror_vl:                         ; @get_mirror_vl
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x0
	orr	w3, w1, #0x100
Lloh0:
	adrp	x19, _buf@GOTPAGE
Lloh1:
	ldr	x19, [x19, _buf@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh2:
	adrp	x9, _IB_ATTR_SLVL_TABLE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IB_ATTR_SLVL_TABLE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x9]
Lloh5:
	adrp	x9, _srcport@GOTPAGE
Lloh6:
	ldr	x9, [x9, _srcport@GOTPAGEOFF]
Lloh7:
	ldr	w5, [x9]
	mov	x1, x8
	mov	w4, #0
	bl	_smp_query_via
	cbnz	w0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IBEXIT
LBB0_2:
	ldr	x0, [x19]
Lloh10:
	adrp	x20, _mirror_sl@GOTPAGE
Lloh11:
	ldr	x20, [x20, _mirror_sl@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_ib_slvl_table_get
	mov	x19, x0
	ldr	w1, [x20]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_printf
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_buf,8,3                        ; @buf
	.comm	_IB_ATTR_SLVL_TABLE,4,2         ; @IB_ATTR_SLVL_TABLE
	.comm	_srcport,4,2                    ; @srcport
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"slvl query failed"

	.comm	_mirror_sl,4,2                  ; @mirror_sl
l_.str.1:                               ; @.str.1
	.asciz	"mirror_sl %d, mirror_vl %d\n"

.subsections_via_symbols
