	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_header
_read_header:                           ## @read_header
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_LZ_HEADER_LEN@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	__llseek
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	(%r12), %edx
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	__lread
	cmpl	(%r12), %eax
	jl	LBB0_7
## %bb.3:
	movq	(%r15), %rdi
	movq	_LZ_MAGIC_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r13, %rsi
	callq	_memcpy
	leaq	8(%r15), %r12
	movslq	(%rbx), %rax
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_memcpy
	leaq	9(%r15), %rdi
	movslq	(%rbx), %rax
	leaq	4(,%rax,4), %rsi
	addq	%r13, %rsi
	movl	$1, %edx
	callq	_memcpy
	leaq	10(%r15), %rdi
	movslq	(%rbx), %rax
	leaq	8(,%rax,4), %rsi
	addq	%r13, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	(%r15), %rdi
	movq	_LZMagic@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	cmpb	$65, (%r12)
	movl	$1, %r14d
	je	LBB0_7
## %bb.5:
	movq	_LZERROR_UNKNOWNALG@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_LZERROR_BADINHANDLE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %r14d
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LZ_HEADER_LEN,4,2              ## @LZ_HEADER_LEN
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_LZERROR_BADINHANDLE,4,2        ## @LZERROR_BADINHANDLE
	.comm	_LZ_MAGIC_LEN,4,2               ## @LZ_MAGIC_LEN
	.comm	_LZMagic,4,2                    ## @LZMagic
	.comm	_LZERROR_UNKNOWNALG,4,2         ## @LZERROR_UNKNOWNALG
	.no_dead_strip	_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_header
_read_header:                           ; @read_header
	.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
	sub	sp, sp, #16
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x22, _LZ_HEADER_LEN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _LZ_HEADER_LEN@GOTPAGEOFF]
	ldr	w8, [x22]
	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	x20, x9, x8
	mov	sp, x20
Lloh7:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	w1, #0
	bl	__llseek
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	ldr	w2, [x22]
	mov	x0, x21
	mov	x1, x20
	bl	__lread
	ldr	w8, [x22]
	cmp	w0, w8
	b.lt	LBB0_3
; %bb.2:
	ldr	x0, [x19]
Lloh10:
	adrp	x22, _LZ_MAGIC_LEN@GOTPAGE
Lloh11:
	ldr	x22, [x22, _LZ_MAGIC_LEN@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x1, x20
	bl	_memcpy
	add	x21, x19, #8
	ldrsw	x8, [x22]
	add	x1, x20, x8, lsl #2
	mov	x0, x21
	mov	w2, #1
	bl	_memcpy
	add	x0, x19, #9
	ldrsw	x8, [x22]
	add	x8, x20, x8, lsl #2
	add	x1, x8, #4
	mov	w2, #1
	bl	_memcpy
	add	x0, x19, #10
	ldrsw	x8, [x22]
	add	x8, x20, x8, lsl #2
	add	x1, x8, #8
	mov	w2, #4
	bl	_memcpy
	ldr	x0, [x19]
Lloh12:
	adrp	x8, _LZMagic@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LZMagic@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x22]
	bl	_memcmp
	cbz	x0, LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
Lloh15:
	adrp	x8, _LZERROR_BADINHANDLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LZERROR_BADINHANDLE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_5:
	ldrb	w8, [x21]
Lloh18:
	adrp	x9, _LZERROR_UNKNOWNALG@GOTPAGE
Lloh19:
	ldr	x9, [x9, _LZERROR_UNKNOWNALG@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w8, #65
	csinc	w0, w9, wzr, ne
LBB0_6:
	ldur	x8, [x29, #-40]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	sub	sp, x29, #32
	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_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_LZ_HEADER_LEN,4,2              ; @LZ_HEADER_LEN
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_LZERROR_BADINHANDLE,4,2        ; @LZERROR_BADINHANDLE
	.comm	_LZ_MAGIC_LEN,4,2               ; @LZ_MAGIC_LEN
	.comm	_LZMagic,4,2                    ; @LZMagic
	.comm	_LZERROR_UNKNOWNALG,4,2         ; @LZERROR_UNKNOWNALG
	.no_dead_strip	_read_header
.subsections_via_symbols
