	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sc_to_vl
_sc_to_vl:                              ## @sc_to_vl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %r9
	movslq	%esi, %rdx
	shlq	$4, %rdx
	movq	(%r9,%rdx), %rsi
	movq	_SC_KERNEL@GOTPCREL(%rip), %r8
	movl	$-1, %eax
	cmpq	(%r8), %rsi
	je	LBB0_2
## %bb.1:
	movq	_SC_VL15@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	je	LBB0_2
LBB0_10:
	popq	%rbp
	retq
LBB0_2:
	movq	8(%r9,%rdx), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.3:
	movq	(%rdi), %rdx
	cmpq	%rcx, 120(%rdx)
	je	LBB0_4
## %bb.5:
	movq	_num_vls@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, %esi
	jle	LBB0_10
## %bb.6:
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, (%rdx,%rdi,8)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rdi
	cmpq	%rdi, %rsi
	jne	LBB0_7
	jmp	LBB0_10
LBB0_4:
	movl	$15, %eax
	popq	%rbp
	retq
LBB0_9:
	movl	%edi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SC_KERNEL,8,3                  ## @SC_KERNEL
	.comm	_SC_VL15,8,3                    ## @SC_VL15
	.comm	_num_vls,4,2                    ## @num_vls
	.no_dead_strip	_sc_to_vl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sc_to_vl
_sc_to_vl:                              ; @sc_to_vl
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x8, [x0, #8]
	sbfiz	x9, x1, #4, #32
	ldr	x9, [x8, x9]
Lloh0:
	adrp	x10, _SC_KERNEL@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SC_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
Lloh3:
	adrp	x11, _SC_VL15@GOTPAGE
Lloh4:
	ldr	x11, [x11, _SC_VL15@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_7
; %bb.1:
	sxtw	x9, w1
	add	x8, x8, x9, lsl #4
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_7
; %bb.2:
	ldr	x9, [x0]
	ldr	x10, [x9, #120]
	cmp	x10, x8
	b.eq	LBB0_9
; %bb.3:
Lloh6:
	adrp	x10, _num_vls@GOTPAGE
Lloh7:
	ldr	x10, [x10, _num_vls@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w10, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x0, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, x0, lsl #3]
	cmp	x11, x8
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x0, #1
	cmp	x10, x0
	b.ne	LBB0_5
LBB0_7:
	mov	w0, #-1
LBB0_8:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_9:
	mov	w0, #15
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SC_KERNEL,8,3                  ; @SC_KERNEL
	.comm	_SC_VL15,8,3                    ; @SC_VL15
	.comm	_num_vls,4,2                    ; @num_vls
	.no_dead_strip	_sc_to_vl
.subsections_via_symbols
