	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_chain
_validate_chain:                        ## @validate_chain
	.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	%r13
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_LZMA_PROG_ERROR@GOTPCREL(%rip), %r8
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	(%rdi), %rbx
	movq	_LZMA_VLI_UNKNOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	cmpq	%r13, %rbx
	jne	LBB0_2
LBB0_14:
	movl	(%r8), %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_features@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	(%r9), %r10
	leaq	24(%r9), %r11
	movl	$1, %r14d
	xorl	%r15d, %r15d
	movq	_LZMA_OPTIONS_ERROR@GOTPCREL(%rip), %r8
	xorl	%r12d, %r12d
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	cmpq	%r10, %rbx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r11, %rdx
	movq	%r10, %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%r13, %rcx
	je	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	incq	%rax
	movq	(%rdx), %rcx
	addq	$24, %rdx
	cmpq	%rcx, %rbx
	jne	LBB0_6
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	%r14d, %r14d
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rax,%rax,2), %rax
	addq	16(%r9,%rax,8), %r15
	movl	8(%r9,%rax,8), %r14d
	movq	8(%rdi,%r12,8), %rbx
	incq	%r12
	cmpq	%r13, %rbx
	jne	LBB0_3
## %bb.10:
	movq	_LZMA_FILTERS_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r12
	ja	LBB0_14
## %bb.11:
	cmpl	$0, 12(%r9,%rax,8)
	je	LBB0_14
## %bb.12:
	cmpq	$3, %r15
	ja	LBB0_14
## %bb.13:
	movq	%r12, (%rsi)
	movq	_LZMA_OK@GOTPCREL(%rip), %r8
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_LZMA_VLI_UNKNOWN,8,3           ## @LZMA_VLI_UNKNOWN
	.comm	_LZMA_PROG_ERROR,4,2            ## @LZMA_PROG_ERROR
	.comm	_features,8,3                   ## @features
	.comm	_LZMA_OPTIONS_ERROR,4,2         ## @LZMA_OPTIONS_ERROR
	.comm	_LZMA_FILTERS_MAX,8,3           ## @LZMA_FILTERS_MAX
	.comm	_LZMA_OK,4,2                    ## @LZMA_OK
	.no_dead_strip	_validate_chain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_chain
_validate_chain:                        ; @validate_chain
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x16, [x0]
Lloh0:
	adrp	x8, _LZMA_VLI_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LZMA_VLI_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x8]
	cmp	x16, x11
	b.ne	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _LZMA_PROG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LZMA_PROG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ret
LBB0_3:
	mov	x10, #0
	mov	x9, #0
Lloh6:
	adrp	x8, _features@GOTPAGE
Lloh7:
	ldr	x8, [x8, _features@GOTPAGEOFF]
Lloh8:
	ldr	x12, [x8]
	mov	x13, x12
	ldr	x14, [x13], #24
	mov	w15, #1
Lloh9:
	adrp	x8, _LZMA_OPTIONS_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LZMA_OPTIONS_ERROR@GOTPAGEOFF]
	mov	w17, #24
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	x16, x14
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x2, #0
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x2, #0
	mov	x3, x13
	mov	x4, x14
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x4, x11
	b.eq	LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x2, x2, #1
	ldr	x4, [x3], #24
	cmp	x16, x4
	b.ne	LBB0_7
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	w15, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	madd	x16, x2, x17, x12
	ldr	w15, [x16, #8]
	ldr	x16, [x16, #16]
	add	x10, x16, x10
	add	x9, x9, #1
	ldr	x16, [x0, x9, lsl #3]
	cmp	x16, x11
	b.ne	LBB0_4
; %bb.11:
	mov	w8, #24
	madd	x8, x2, x8, x12
	ldr	w8, [x8, #12]
Lloh11:
	adrp	x11, _LZMA_FILTERS_MAX@GOTPAGE
Lloh12:
	ldr	x11, [x11, _LZMA_FILTERS_MAX@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x11]
	cmp	x9, x11
	ccmp	w8, #0, #4, ls
	ccmp	x10, #3, #2, ne
	b.ls	LBB0_13
; %bb.12:
Lloh14:
	adrp	x8, _LZMA_OPTIONS_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LZMA_OPTIONS_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ret
LBB0_13:
	str	x9, [x1]
Lloh17:
	adrp	x8, _LZMA_OK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LZMA_OK@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_LZMA_VLI_UNKNOWN,8,3           ; @LZMA_VLI_UNKNOWN
	.comm	_LZMA_PROG_ERROR,4,2            ; @LZMA_PROG_ERROR
	.comm	_features,8,3                   ; @features
	.comm	_LZMA_OPTIONS_ERROR,4,2         ; @LZMA_OPTIONS_ERROR
	.comm	_LZMA_FILTERS_MAX,8,3           ; @LZMA_FILTERS_MAX
	.comm	_LZMA_OK,4,2                    ; @LZMA_OK
	.no_dead_strip	_validate_chain
.subsections_via_symbols
