	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_open_memory_internal
_read_open_memory_internal:             ## @read_open_memory_internal
	.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	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r15
	cmpl	$1, %r8d
	je	LBB0_5
## %bb.1:
	cmpl	$2, %r8d
	je	LBB0_4
## %bb.2:
	cmpl	$3, %r8d
	jne	LBB0_7
## %bb.3:
	movq	_memory_read_seek@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_archive_read_set_seek_callback
LBB0_4:
	movq	_memory_read_open@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_archive_read_set_open_callback
	movq	_memory_read_skip@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_archive_read_set_skip_callback
LBB0_5:
	movl	$56, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	%r13, 8(%rbx)
	movq	%r13, (%rbx)
	addl	%r12d, %r13d
	movl	%r13d, 48(%rbx)
	movq	%r14, 16(%rbx)
	movl	$32, 24(%rbx)
	addq	$64, %r14
	movq	%r14, 32(%rbx)
	movl	%r14d, %edi
	callq	_malloc
	movq	%rax, 40(%rbx)
	movl	32(%rbx), %edx
	movq	%rax, %rdi
	movl	$165, %esi
	callq	_memset
	movq	_memory_read@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_archive_read_set_read_callback
	movq	_memory_read_close@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_archive_read_set_close_callback
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_archive_read_set_callback_data
LBB0_7:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_archive_read_open1             ## TAILCALL
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_memory_read_seek,4,2           ## @memory_read_seek
	.comm	___LA_FALLTHROUGH,4,2           ## @__LA_FALLTHROUGH
	.comm	_memory_read_open,4,2           ## @memory_read_open
	.comm	_memory_read_skip,4,2           ## @memory_read_skip
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No memory"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_memory_read,4,2                ## @memory_read
	.comm	_memory_read_close,4,2          ## @memory_read_close
	.no_dead_strip	_read_open_memory_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_open_memory_internal
_read_open_memory_internal:             ; @read_open_memory_internal
	.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, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	cmp	w4, #1
	b.eq	LBB0_5
; %bb.1:
	cmp	w4, #2
	b.eq	LBB0_4
; %bb.2:
	cmp	w4, #3
	b.ne	LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _memory_read_seek@GOTPAGE
Lloh1:
	ldr	x8, [x8, _memory_read_seek@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_archive_read_set_seek_callback
LBB0_4:
Lloh3:
	adrp	x8, _memory_read_open@GOTPAGE
Lloh4:
	ldr	x8, [x8, _memory_read_open@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_archive_read_set_open_callback
Lloh6:
	adrp	x8, _memory_read_skip@GOTPAGE
Lloh7:
	ldr	x8, [x8, _memory_read_skip@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_archive_read_set_skip_callback
LBB0_5:
	mov	w0, #56
	bl	_malloc
	cbz	x0, LBB0_8
; %bb.6:
	mov	x23, x0
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	stp	x22, x22, [x23]
	add	w8, w22, w21
	str	w8, [x23, #48]
	str	x20, [x23, #16]
	mov	w8, #32
	str	w8, [x23, #24]
	add	x0, x20, #64
	str	x0, [x23, #32]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_malloc
	str	x0, [x23, #40]
	ldr	w2, [x23, #32]
	mov	w1, #165
	bl	_memset
Lloh9:
	adrp	x8, _memory_read@GOTPAGE
Lloh10:
	ldr	x8, [x8, _memory_read@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_archive_read_set_read_callback
Lloh12:
	adrp	x8, _memory_read_close@GOTPAGE
Lloh13:
	ldr	x8, [x8, _memory_read_close@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_archive_read_set_close_callback
	mov	x0, x19
	mov	x1, x23
	bl	_archive_read_set_callback_data
LBB0_7:
	mov	x0, x19
	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
	b	_archive_read_open1
LBB0_8:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str@PAGE
Lloh19:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_archive_set_error
Lloh20:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
Lloh22:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_memory_read_seek,4,2           ; @memory_read_seek
	.comm	___LA_FALLTHROUGH,4,2           ; @__LA_FALLTHROUGH
	.comm	_memory_read_open,4,2           ; @memory_read_open
	.comm	_memory_read_skip,4,2           ; @memory_read_skip
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No memory"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_memory_read,4,2                ; @memory_read
	.comm	_memory_read_close,4,2          ; @memory_read_close
	.no_dead_strip	_read_open_memory_internal
.subsections_via_symbols
