	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Xz_AddIndexRecord              ## -- Begin function Xz_AddIndexRecord
	.p2align	4, 0x90
_Xz_AddIndexRecord:                     ## @Xz_AddIndexRecord
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rsi, %r8
	movq	%rdi, %rbx
	movq	8(%rdi), %r13
	testq	%r13, %r13
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %ecx
	movl	4(%rbx), %eax
	cmpl	%eax, %ecx
	je	LBB0_3
	jmp	LBB0_9
LBB0_1:
	movl	4(%rbx), %ecx
LBB0_3:
	leal	(%rcx,%rcx), %r14d
	addl	$2, %r14d
	movslq	%r14d, %rsi
	movq	%rsi, %rax
	shrq	$60, %rax
	movq	_SZ_ERROR_MEM@GOTPCREL(%rip), %r15
	jne	LBB0_10
## %bb.4:
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	shlq	$4, %rsi
	movq	%r12, %rdi
	callq	*(%r12)
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	%rax, %r13
	movl	4(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_6
## %bb.7:
	movq	8(%rbx), %rsi
	shll	$4, %edx
	movq	%r13, %rdi
	callq	_memcpy
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_Xz_Free
	movl	4(%rbx), %eax
	jmp	LBB0_8
LBB0_6:
	xorl	%eax, %eax
LBB0_8:
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, 8(%rbx)
	movl	%r14d, (%rbx)
LBB0_9:
	leal	1(%rax), %ecx
	movl	%ecx, 4(%rbx)
	cltq
	shlq	$4, %rax
	movq	%rdx, 8(%r13,%rax)
	movq	%r8, (%r13,%rax)
	movq	_SZ_OK@GOTPCREL(%rip), %r15
LBB0_10:
	movl	(%r15), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SZ_ERROR_MEM,4,2               ## @SZ_ERROR_MEM
	.comm	_SZ_OK,4,2                      ## @SZ_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Xz_AddIndexRecord              ; -- Begin function Xz_AddIndexRecord
	.p2align	2
_Xz_AddIndexRecord:                     ; @Xz_AddIndexRecord
	.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	x23, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x22, [x0, #8]
	cbz	x22, LBB0_2
; %bb.1:
	ldp	w9, w8, [x21]
	cmp	w9, w8
	b.eq	LBB0_3
	b	LBB0_8
LBB0_2:
	ldr	w9, [x21, #4]
LBB0_3:
	lsl	w8, w9, #1
	add	w24, w8, #2
	sxtw	x8, w24
	tst	x8, #0xf000000000000000
	b.ne	LBB0_9
; %bb.4:
	lsl	x1, x8, #4
	ldr	x8, [x23]
	mov	x0, x23
	blr	x8
	cbz	x0, LBB0_9
; %bb.5:
	mov	x22, x0
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_7
; %bb.6:
	ldr	x1, [x21, #8]
	lsl	w2, w8, #4
	mov	x0, x22
	bl	_memcpy
	mov	x0, x21
	mov	x1, x23
	bl	_Xz_Free
	ldr	w8, [x21, #4]
LBB0_7:
	str	x22, [x21, #8]
	str	w24, [x21]
LBB0_8:
	add	w9, w8, #1
	str	w9, [x21, #4]
	add	x8, x22, w8, sxtw #4
	stp	x19, x20, [x8]
Lloh0:
	adrp	x8, _SZ_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SZ_OK@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh2:
	adrp	x8, _SZ_ERROR_MEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SZ_ERROR_MEM@GOTPAGEOFF]
LBB0_10:
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_SZ_ERROR_MEM,4,2               ; @SZ_ERROR_MEM
	.comm	_SZ_OK,4,2                      ; @SZ_OK
.subsections_via_symbols
