	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kfs_get_tag                    ## -- Begin function kfs_get_tag
	.p2align	4, 0x90
_kfs_get_tag:                           ## @kfs_get_tag
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$24, %esi
	jl	LBB0_1
## %bb.2:
	movl	(%rdi), %r10d
	cmpq	$4096, %r10                     ## imm = 0x1000
	ja	LBB0_1
## %bb.4:
	movq	8(%rdi), %r8
	movq	_LEV_START@GOTPCREL(%rip), %r9
	movl	$-1, %eax
	cmpq	(%r9), %r8
	jne	LBB0_10
## %bb.5:
	addl	$27, %r10d
	andl	$-4, %r10d
	cmpl	%esi, %r10d
	jbe	LBB0_7
LBB0_1:
	movl	$-2, %eax
	popq	%rbp
	retq
LBB0_7:
	movq	(%rdi,%r10), %r8
	movq	_LEV_TAG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r8
	jne	LBB0_10
## %bb.8:
	subl	%r10d, %esi
	movl	$-2, %eax
	cmpl	$20, %esi
	jl	LBB0_10
## %bb.9:
	movl	8(%rdi,%r10), %esi
	movq	%rdx, %rdi
	movl	$16, %edx
	callq	_memcpy
	xorl	%eax, %eax
LBB0_10:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LEV_START,8,3                  ## @LEV_START
	.comm	_LEV_TAG,8,3                    ## @LEV_TAG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kfs_get_tag                    ; -- Begin function kfs_get_tag
	.p2align	2
_kfs_get_tag:                           ; @kfs_get_tag
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cmp	w1, #24
	b.lt	LBB0_2
; %bb.1:
	ldr	w8, [x0]
	cmp	w8, #1, lsl #12                 ; =4096
	b.ls	LBB0_3
LBB0_2:
	mov	w0, #-2
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x9, [x0, #8]
Lloh0:
	adrp	x10, _LEV_START@GOTPAGE
Lloh1:
	ldr	x10, [x10, _LEV_START@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.4:
	add	w8, w8, #27
	and	x8, x8, #0xfffffffc
	cmp	w8, w1
	b.hi	LBB0_2
; %bb.5:
	add	x9, x0, x8
	ldr	x10, [x9]
Lloh3:
	adrp	x11, _LEV_TAG@GOTPAGE
Lloh4:
	ldr	x11, [x11, _LEV_TAG@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_8
; %bb.6:
	sub	w8, w1, w8
	cmp	w8, #20
	b.lt	LBB0_2
; %bb.7:
	ldr	w1, [x9, #8]
	mov	x0, x2
	mov	w2, #16
	bl	_memcpy
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LEV_START,8,3                  ; @LEV_START
	.comm	_LEV_TAG,8,3                    ; @LEV_TAG
.subsections_via_symbols
