	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_archive_read_set_callback_data2 ## -- Begin function archive_read_set_callback_data2
	.p2align	4, 0x90
_archive_read_set_callback_data2:       ## @archive_read_set_callback_data2
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	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	(%r12), %ebx
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.1:
	movl	$1, %ebx
	movl	$1, %edi
	movl	$16, %esi
	callq	_calloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movl	$1, (%r12)
LBB0_5:
	decl	%ebx
	cmpl	%r15d, %ebx
	jae	LBB0_7
## %bb.6:
	addq	$16, %r12
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_3
LBB0_7:
	movq	8(%r12), %rax
	movl	%r15d, %ecx
	shlq	$4, %rcx
	movq	%r14, 8(%rax,%rcx)
	movq	$-1, (%rax,%rcx)
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	addq	$16, %r12
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_3:
	movq	%r12, %rdi
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	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_set_callback_data2"

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

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

	.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_set_callback_data2 ; -- Begin function archive_read_set_callback_data2
	.p2align	2
_archive_read_set_callback_data2:       ; @archive_read_set_callback_data2
	.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	w22, [x21]
	cbnz	w22, LBB0_3
; %bb.1:
	mov	w22, #1
	mov	w0, #1
	mov	w1, #16
	bl	_calloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_6
; %bb.2:
	str	w22, [x21]
LBB0_3:
	sub	w8, w22, #1
	cmp	w8, w20
	b.hs	LBB0_5
; %bb.4:
	add	x0, x21, #16
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_5:
	ldr	x8, [x21, #8]
	add	x8, x8, 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_8
LBB0_6:
	add	x0, x21, #16
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str.1@PAGE
Lloh19:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_7:
	bl	_archive_set_error
Lloh20:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
LBB0_8:
	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_set_callback_data2"

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

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

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