	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dec_stream_header
_dec_stream_header:                     ## @dec_stream_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movq	_HEADER_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HEADER_MAGIC_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_memeq
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movslq	(%r15), %rdi
	shlq	$3, %rdi
	addq	8(%rbx), %rdi
	movl	$2, %esi
	xorl	%edx, %edx
	callq	_xz_crc32
	movq	%rax, %r14
	movq	8(%rbx), %rax
	movslq	(%r15), %rcx
	leaq	(%rax,%rcx,8), %rdi
	addq	$16, %rdi
	callq	_get_le32
	cmpq	%rax, %r14
	jne	LBB0_3
## %bb.4:
	movq	8(%rbx), %rax
	movslq	(%r15), %rcx
	cmpq	$0, (%rax,%rcx,8)
	jne	LBB0_7
## %bb.5:
	movq	8(%rax,%rcx,8), %rax
	movq	%rax, (%rbx)
	movq	_XZ_CHECK_CRC32@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_6
LBB0_7:
	movq	_XZ_OPTIONS_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movq	_XZ_FORMAT_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movq	_XZ_DATA_ERROR@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_XZ_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_HEADER_MAGIC,4,2               ## @HEADER_MAGIC
	.comm	_HEADER_MAGIC_SIZE,4,2          ## @HEADER_MAGIC_SIZE
	.comm	_XZ_FORMAT_ERROR,4,2            ## @XZ_FORMAT_ERROR
	.comm	_XZ_DATA_ERROR,4,2              ## @XZ_DATA_ERROR
	.comm	_XZ_OPTIONS_ERROR,4,2           ## @XZ_OPTIONS_ERROR
	.comm	_XZ_CHECK_CRC32,8,3             ## @XZ_CHECK_CRC32
	.comm	_XZ_OK,4,2                      ## @XZ_OK
	.no_dead_strip	_dec_stream_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dec_stream_header
_dec_stream_header:                     ; @dec_stream_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
	mov	x19, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x8, _HEADER_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HEADER_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x21, _HEADER_MAGIC_SIZE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _HEADER_MAGIC_SIZE@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_memeq
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
	ldrsw	x9, [x21]
	add	x0, x8, x9, lsl #3
	mov	w1, #2
	mov	w2, #0
	bl	_xz_crc32
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldrsw	x9, [x21]
	add	x8, x8, x9, lsl #3
	add	x0, x8, #16
	bl	_get_le32
	cmp	x20, x0
	b.ne	LBB0_5
; %bb.2:
	ldr	x9, [x19, #8]
	ldrsw	x10, [x21]
	ldr	x11, [x9, x10, lsl #3]
Lloh5:
	adrp	x8, _XZ_OPTIONS_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XZ_OPTIONS_ERROR@GOTPAGEOFF]
	cbnz	x11, LBB0_6
; %bb.3:
	add	x9, x9, x10, lsl #3
	ldr	x9, [x9, #8]
Lloh7:
	adrp	x10, _XZ_CHECK_CRC32@GOTPAGE
Lloh8:
	ldr	x10, [x10, _XZ_CHECK_CRC32@GOTPAGEOFF]
	str	x9, [x19]
Lloh9:
	ldr	x10, [x10]
Lloh10:
	adrp	x11, _XZ_OK@GOTPAGE
Lloh11:
	ldr	x11, [x11, _XZ_OK@GOTPAGEOFF]
	cmp	x9, x10
	csel	x8, x8, x11, gt
	b	LBB0_6
LBB0_4:
Lloh12:
	adrp	x8, _XZ_FORMAT_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _XZ_FORMAT_ERROR@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _XZ_DATA_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _XZ_DATA_ERROR@GOTPAGEOFF]
LBB0_6:
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_HEADER_MAGIC,4,2               ; @HEADER_MAGIC
	.comm	_HEADER_MAGIC_SIZE,4,2          ; @HEADER_MAGIC_SIZE
	.comm	_XZ_FORMAT_ERROR,4,2            ; @XZ_FORMAT_ERROR
	.comm	_XZ_DATA_ERROR,4,2              ; @XZ_DATA_ERROR
	.comm	_XZ_OPTIONS_ERROR,4,2           ; @XZ_OPTIONS_ERROR
	.comm	_XZ_CHECK_CRC32,8,3             ; @XZ_CHECK_CRC32
	.comm	_XZ_OK,4,2                      ; @XZ_OK
	.no_dead_strip	_dec_stream_header
.subsections_via_symbols
