	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_archive_read_add_callback_data ## -- Begin function archive_read_add_callback_data
	.p2align	4, 0x90
_archive_read_add_callback_data:        ## @archive_read_add_callback_data
	.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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_ARCHIVE_READ_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ARCHIVE_STATE_NEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	callq	_archive_check_magic
	movl	(%rbx), %esi
	cmpl	%r15d, %esi
	jae	LBB0_3
## %bb.1:
	addq	$16, %rbx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_2
LBB0_3:
	movq	8(%rbx), %rdi
	incl	%esi
	movl	%esi, (%rbx)
	shll	$4, %esi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, 8(%rbx)
	movl	(%rbx), %edi
	leal	-1(%rdi), %edx
	cmpl	%r15d, %edx
	jbe	LBB0_12
## %bb.6:
	movl	%edx, %ecx
	movl	%r15d, %ebx
	notl	%ebx
	addl	%edi, %ebx
	leal	-2(%rdi), %esi
	testb	$1, %bl
	jne	LBB0_8
## %bb.7:
	movl	%edi, %edx
	cmpl	%r15d, %esi
	jne	LBB0_10
	jmp	LBB0_12
LBB0_4:
	addq	$16, %rbx
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_2:
	movq	%rbx, %rdi
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_8:
	movq	%rsi, %rdi
	shlq	$4, %rdi
	movq	8(%rax,%rdi), %rdi
	movq	%rcx, %rbx
	shlq	$4, %rbx
	movq	%rdi, 8(%rax,%rbx)
	movq	$-1, (%rax,%rbx)
	decq	%rcx
	cmpl	%r15d, %esi
	je	LBB0_12
LBB0_10:
	movl	$4294967294, %esi               ## imm = 0xFFFFFFFE
	addq	%rcx, %rsi
	movq	%rcx, %rbx
	shlq	$4, %rbx
	movq	%rax, %rdi
	addq	%rbx, %rdi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	addl	$-2, %edx
	shlq	$4, %rdx
	movq	8(%rax,%rdx), %rdx
	movq	%rdx, 8(%rdi)
	movq	$-1, (%rdi)
	movl	%esi, %edx
	shlq	$4, %rdx
	movq	8(%rax,%rdx), %rdx
	movq	%rdx, -8(%rdi)
	movq	$-1, -16(%rdi)
	movl	%ecx, %edx
	leal	-2(%rcx), %ebx
	addq	$-2, %rsi
	addq	$-32, %rdi
	decl	%edx
	movl	%ebx, %ecx
	cmpl	%r15d, %ebx
	ja	LBB0_11
LBB0_12:
	movl	%r15d, %ecx
	shlq	$4, %rcx
	movq	%r14, 8(%rax,%rcx)
	movq	$-1, (%rax,%rcx)
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_READ_MAGIC,4,2         ## @ARCHIVE_READ_MAGIC
	.comm	_ARCHIVE_STATE_NEW,4,2          ## @ARCHIVE_STATE_NEW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"archive_read_add_callback_data"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Invalid index specified."

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"No memory."

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_archive_read_add_callback_data ; -- Begin function archive_read_add_callback_data
	.p2align	2
_archive_read_add_callback_data:        ; @archive_read_add_callback_data
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _ARCHIVE_READ_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_READ_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ARCHIVE_STATE_NEW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARCHIVE_STATE_NEW@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	bl	_archive_check_magic
	ldr	w8, [x21]
	cmp	w8, w20
	b.hs	LBB0_2
; %bb.1:
	add	x0, x21, #16
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_2:
	ldr	x0, [x21, #8]
	add	w8, w8, #1
	str	w8, [x21]
	lsl	w1, w8, #4
	bl	_realloc
	cbz	x0, LBB0_7
; %bb.3:
	str	x0, [x21, #8]
	ldr	w9, [x21]
	sub	w8, w9, #1
	cmp	w8, w20
	b.ls	LBB0_6
; %bb.4:
	sub	w9, w9, #2
	add	x9, x0, w9, uxtw #4
	add	x9, x9, #8
	add	x10, x0, w8, uxtw #4
	add	x10, x10, #8
	movi.2d	v0, #0xffffffffffffffff
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9], #-16
	str	x11, [x10]
	stur	d0, [x10, #-8]
	sub	x10, x10, #16
	sub	w8, w8, #1
	cmp	w8, w20
	b.hi	LBB0_5
LBB0_6:
	add	x8, x0, w20, uxtw #4
	str	x19, [x8, #8]
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x8]
Lloh13:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	add	x0, x21, #16
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str.2@PAGE
Lloh19:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_8:
	bl	_archive_set_error
Lloh20:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
LBB0_9:
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_READ_MAGIC,4,2         ; @ARCHIVE_READ_MAGIC
	.comm	_ARCHIVE_STATE_NEW,4,2          ; @ARCHIVE_STATE_NEW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"archive_read_add_callback_data"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Invalid index specified."

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"No memory."

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
.subsections_via_symbols
