	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tlv_valid
_tlv_valid:                             ## @tlv_valid
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_TLV_HDRL@GOTPCREL(%rip), %r15
	cmpq	%rsi, (%r15)
	jle	LBB0_2
## %bb.1:
	movq	_INVALID_RLEN@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_EXTRACT_16BITS
	cmpq	(%r15), %rax
	jge	LBB0_4
## %bb.3:
	movq	_INVALID_STLN@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	movq	%r14, %rdi
	callq	_EXTRACT_16BITS
	cmpq	%rbx, %rax
	jle	LBB0_6
## %bb.5:
	movq	_INVALID_LTLN@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	%r14, %rdi
	callq	_EXTRACT_16BITS
	movq	%rax, %rdi
	callq	_F_ALN_LEN
	cmpq	%rbx, %rax
	jle	LBB0_7
## %bb.8:
	movq	_INVALID_ALEN@GOTPCREL(%rip), %rax
LBB0_9:
	movq	(%rax), %rax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_TLV_HDRL,8,3                   ## @TLV_HDRL
	.comm	_INVALID_RLEN,8,3               ## @INVALID_RLEN
	.comm	_INVALID_STLN,8,3               ## @INVALID_STLN
	.comm	_INVALID_LTLN,8,3               ## @INVALID_LTLN
	.comm	_INVALID_ALEN,8,3               ## @INVALID_ALEN
	.no_dead_strip	_tlv_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tlv_valid
_tlv_valid:                             ; @tlv_valid
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x21, _TLV_HDRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TLV_HDRL@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, x1
	b.le	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _INVALID_RLEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INVALID_RLEN@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
	b	LBB0_7
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	bl	_EXTRACT_16BITS
	ldr	x8, [x21]
	cmp	x0, x8
	b.ge	LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _INVALID_STLN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INVALID_STLN@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x8]
	b	LBB0_7
LBB0_4:
	mov	x0, x20
	bl	_EXTRACT_16BITS
	cmp	x0, x19
	b.le	LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _INVALID_LTLN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INVALID_LTLN@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x8]
	b	LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_EXTRACT_16BITS
	bl	_F_ALN_LEN
Lloh11:
	adrp	x8, _INVALID_ALEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _INVALID_ALEN@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x19
	csel	x0, x8, xzr, gt
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_TLV_HDRL,8,3                   ; @TLV_HDRL
	.comm	_INVALID_RLEN,8,3               ; @INVALID_RLEN
	.comm	_INVALID_STLN,8,3               ; @INVALID_STLN
	.comm	_INVALID_LTLN,8,3               ; @INVALID_LTLN
	.comm	_INVALID_ALEN,8,3               ; @INVALID_ALEN
	.no_dead_strip	_tlv_valid
.subsections_via_symbols
