	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Xz_ParseHeader                 ## -- Begin function Xz_ParseHeader
	.p2align	4, 0x90
_Xz_ParseHeader:                        ## @Xz_ParseHeader
	.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, %rbx
	movq	%rdi, %r14
	movq	_XZ_SIG_SIZE@GOTPCREL(%rip), %r12
	movslq	(%r12), %rax
	leaq	(%rsi,%rax,4), %rdi
	callq	_GetBe16
	movq	%rax, (%r14)
	movslq	(%r12), %rax
	leaq	(%rbx,%rax,4), %rdi
	movq	_XZ_STREAM_FLAGS_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_CrcCalc
	movq	%rax, %r15
	movslq	(%r12), %rax
	leaq	(%rbx,%rax,4), %rax
	movslq	(%r13), %rcx
	leaq	(%rax,%rcx,4), %rdi
	callq	_GetUi32
	cmpq	%rax, %r15
	jne	LBB0_1
## %bb.2:
	movq	(%r14), %rdi
	callq	_XzFlags_IsSupported
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	movq	_SZ_ERROR_UNSUPPORTED@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_SZ_ERROR_NO_ARCHIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_SZ_OK@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XZ_SIG_SIZE,4,2                ## @XZ_SIG_SIZE
	.comm	_XZ_STREAM_FLAGS_SIZE,4,2       ## @XZ_STREAM_FLAGS_SIZE
	.comm	_SZ_ERROR_NO_ARCHIVE,4,2        ## @SZ_ERROR_NO_ARCHIVE
	.comm	_SZ_OK,4,2                      ## @SZ_OK
	.comm	_SZ_ERROR_UNSUPPORTED,4,2       ## @SZ_ERROR_UNSUPPORTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Xz_ParseHeader                 ; -- Begin function Xz_ParseHeader
	.p2align	2
_Xz_ParseHeader:                        ; @Xz_ParseHeader
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _XZ_SIG_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _XZ_SIG_SIZE@GOTPAGEOFF]
	ldrsw	x8, [x22]
	add	x0, x1, x8, lsl #2
	bl	_GetBe16
	str	x0, [x19]
	ldrsw	x8, [x22]
	add	x0, x20, x8, lsl #2
Lloh2:
	adrp	x23, _XZ_STREAM_FLAGS_SIZE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _XZ_STREAM_FLAGS_SIZE@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_CrcCalc
	mov	x21, x0
	ldrsw	x8, [x22]
	add	x8, x20, x8, lsl #2
	ldrsw	x9, [x23]
	add	x0, x8, x9, lsl #2
	bl	_GetUi32
	cmp	x21, x0
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x19]
	bl	_XzFlags_IsSupported
Lloh4:
	adrp	x8, _SZ_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SZ_OK@GOTPAGEOFF]
Lloh6:
	adrp	x9, _SZ_ERROR_UNSUPPORTED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SZ_ERROR_UNSUPPORTED@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x8, _SZ_ERROR_NO_ARCHIVE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SZ_ERROR_NO_ARCHIVE@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_XZ_SIG_SIZE,4,2                ; @XZ_SIG_SIZE
	.comm	_XZ_STREAM_FLAGS_SIZE,4,2       ; @XZ_STREAM_FLAGS_SIZE
	.comm	_SZ_ERROR_NO_ARCHIVE,4,2        ; @SZ_ERROR_NO_ARCHIVE
	.comm	_SZ_OK,4,2                      ; @SZ_OK
	.comm	_SZ_ERROR_UNSUPPORTED,4,2       ; @SZ_ERROR_UNSUPPORTED
.subsections_via_symbols
