	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_encoded_header_info
_decode_encoded_header_info:            ## @decode_encoded_header_info
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	movq	_errno@GOTPCREL(%rip), %r12
	movq	$0, (%r12)
	callq	_read_StreamsInfo
	testq	%rax, %rax
	js	LBB0_1
## %bb.3:
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.4:
	cmpq	$0, 24(%rbx)
	je	LBB0_5
## %bb.6:
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rax), %rdx
	cmpq	%rdx, (%r15)
	jl	LBB0_11
## %bb.7:
	testq	%rdx, %rdx
	js	LBB0_11
## %bb.8:
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.9:
	testq	%rax, %rax
	js	LBB0_11
## %bb.10:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_1:
	movq	(%r12), %rax
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_12
LBB0_5:
	leaq	L_.str.1(%rip), %rdx
LBB0_12:
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't allocate memory"

L_.str.1:                               ## @.str.1
	.asciz	"Malformed 7-Zip archive"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
L_.str.2:                               ## @.str.2
	.asciz	"Malformed Header offset"

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.no_dead_strip	_decode_encoded_header_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_encoded_header_info
_decode_encoded_header_info:            ; @decode_encoded_header_info
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x21, [x8]
Lloh0:
	adrp	x22, _errno@GOTPAGE
Lloh1:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	str	xzr, [x22]
	bl	_read_StreamsInfo
	tbnz	x0, #63, LBB0_8
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_10
; %bb.2:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_10
; %bb.3:
	ldr	x11, [x21]
	ldp	x8, x9, [x20, #8]
	ldr	x9, [x9]
	add	x10, x9, x8
	cmp	x11, x10
	b.lt	LBB0_13
; %bb.4:
	tbnz	x10, #63, LBB0_13
; %bb.5:
	cbz	x9, LBB0_13
; %bb.6:
	tbnz	x8, #63, LBB0_13
; %bb.7:
Lloh2:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
	ldr	x8, [x22]
Lloh4:
	adrp	x9, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_11:
	mov	x0, x19
	mov	w1, #-1
	bl	_archive_set_error
Lloh11:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	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
LBB0_13:
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't allocate memory"

l_.str.1:                               ; @.str.1
	.asciz	"Malformed 7-Zip archive"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
l_.str.2:                               ; @.str.2
	.asciz	"Malformed Header offset"

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.no_dead_strip	_decode_encoded_header_info
.subsections_via_symbols
