	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SzReadHeader
_SzReadHeader:                          ## @SzReadHeader
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -56(%rbp)
	movq	_NUM_ADDITIONAL_STREAMS_MAX@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	cmpl	$0, (%r13)
	jle	LBB0_3
## %bb.1:
	xorl	%r12d, %r12d
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_Buf_Init
	incq	%r12
	movslq	(%r13), %rax
	addq	$4, %rbx
	cmpq	%rax, %r12
	jl	LBB0_2
LBB0_3:
	subq	$8, %rsp
	leaq	-56(%rbp), %r8
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, %rcx
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	pushq	%r15
	callq	_SzReadHeader2
	addq	$16, %rsp
	movl	%eax, %r12d
	cmpl	$0, (%r13)
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_Buf_Free
	incq	%rbx
	movslq	(%r13), %rax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movl	%r12d, %edi
	callq	_RINOK
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_SZ_ERROR_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_8:
	movq	-88(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_ADDITIONAL_STREAMS_MAX,4,2 ## @NUM_ADDITIONAL_STREAMS_MAX
	.comm	_SZ_ERROR_FAIL,4,2              ## @SZ_ERROR_FAIL
	.no_dead_strip	_SzReadHeader
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SzReadHeader
_SzReadHeader:                          ; @SzReadHeader
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x20, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x24, x0
	mov	x26, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	stur	wzr, [x29, #-92]
Lloh3:
	adrp	x27, _NUM_ADDITIONAL_STREAMS_MAX@GOTPAGE
Lloh4:
	ldr	x27, [x27, _NUM_ADDITIONAL_STREAMS_MAX@GOTPAGEOFF]
	ldr	w8, [x27]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x28, #0
	mov	x25, x21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	bl	_Buf_Init
	add	x28, x28, #1
	ldrsw	x8, [x27]
	add	x25, x25, #4
	cmp	x28, x8
	b.lt	LBB0_2
LBB0_3:
	sub	x4, x29, #92
	mov	x0, x24
	mov	x1, x19
	mov	x2, x23
	mov	x3, x21
	mov	x5, x22
	mov	x6, x20
	bl	_SzReadHeader2
	mov	x22, x0
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x23, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_Buf_Free
	add	x23, x23, #1
	ldrsw	x8, [x27]
	add	x21, x21, #4
	cmp	x23, x8
	b.lt	LBB0_5
LBB0_6:
	mov	x0, x22
	bl	_RINOK
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _SZ_ERROR_FAIL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SZ_ERROR_FAIL@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w0, w22, w9, eq
	mov	sp, x26
	ldur	x8, [x29, #-88]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_ADDITIONAL_STREAMS_MAX,4,2 ; @NUM_ADDITIONAL_STREAMS_MAX
	.comm	_SZ_ERROR_FAIL,4,2              ; @SZ_ERROR_FAIL
	.no_dead_strip	_SzReadHeader
.subsections_via_symbols
