	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zip_read_mac_metadata
_zip_read_mac_metadata:                 ## @zip_read_mac_metadata
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	xorl	%esi, %esi
	callq	_archive_filter_bytes
	movl	(%r12), %edi
	testl	%edi, %edi
	je	LBB0_1
## %bb.4:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_compression_name
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %ecx
LBB0_7:
	xorl	%eax, %eax
	callq	_archive_set_error
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_31
LBB0_1:
	movslq	4(%r12), %rcx
	cmpl	8(%r12), %ecx
	jne	LBB0_2
## %bb.5:
	cmpl	$4194305, %ecx                  ## imm = 0x400001
	jl	LBB0_8
## %bb.6:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	jmp	LBB0_7
LBB0_2:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_3:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_31
LBB0_8:
	movq	%rax, %r13
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rcx, %rdi
	callq	_malloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	16(%r12), %rsi
	movq	%rsi, %rax
	subq	%r13, %rax
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jle	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	___archive_read_consume
	jmp	LBB0_14
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_3
LBB0_12:
	je	LBB0_14
## %bb.13:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	___archive_read_seek
LBB0_14:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_zip_get_local_file_header_size
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	___archive_read_consume
	movslq	8(%r12), %rbx
	movslq	4(%r12), %rax
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.16:
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$1, %esi
	leaq	-64(%rbp), %rdx
	callq	___archive_read_ahead
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	-64(%rbp), %rdx
	cmpq	%rbx, %rdx
	jbe	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%rbx, -64(%rbp)
	movq	%rbx, %rdx
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$0, (%rcx)
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_17 Depth=1
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	cmpq	%r15, %rdx
	jbe	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r15, -64(%rbp)
	movq	%r15, %rdx
LBB0_25:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_memcpy
	movq	-64(%rbp), %r13
	addq	%r13, %r12
	movq	%r15, %rax
	xorl	%r15d, %r15d
	subq	%r13, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	sete	%r15b
LBB0_26:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	___archive_read_consume
	testl	%r15d, %r15d
	jne	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_17 Depth=1
	subq	%r13, %rbx
	jne	LBB0_17
LBB0_28:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movslq	4(%rax), %rdx
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_29
LBB0_15:
	movq	%rax, %rdx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_29:
	subq	%rax, %rdx
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%r12, %rsi
	callq	_archive_entry_copy_mac_metadata
	jmp	LBB0_30
LBB0_18:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_archive_set_error
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_30:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	___archive_read_seek
	movq	$0, (%r15)
	movq	%r12, %rdi
	callq	_free
LBB0_31:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ## @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Malformed OS X metadata entry: inconsistent size"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported ZIP compression method (%s)"

	.comm	_ARCHIVE_WARN,4,2               ## @ARCHIVE_WARN
L_.str.2:                               ## @.str.2
	.asciz	"Mac metadata is too large: %jd > 4M bytes"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.3:                               ## @.str.3
	.asciz	"Can't allocate memory for Mac metadata"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.4:                               ## @.str.4
	.asciz	"Truncated ZIP file header"

	.comm	_ARCHIVE_ERRNO_MISC,4,2         ## @ARCHIVE_ERRNO_MISC
	.no_dead_strip	_zip_read_mac_metadata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zip_read_mac_metadata
_zip_read_mac_metadata:                 ; @zip_read_mac_metadata
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x25, [x8]
	mov	w1, #0
	bl	_archive_filter_bytes
	mov	x20, x0
	ldr	w0, [x24]
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_compression_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x20
LBB0_2:
	bl	_archive_set_error
Lloh5:
	adrp	x8, _ARCHIVE_WARN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ARCHIVE_WARN@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	b	LBB0_31
LBB0_3:
	ldp	w0, w8, [x24, #4]
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.4:
	cmp	w0, #1024, lsl #12              ; =4194304
	b.le	LBB0_8
; %bb.5:
Lloh8:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	str	x0, [sp]
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	b	LBB0_2
LBB0_6:
Lloh13:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_archive_set_error
Lloh18:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
Lloh20:
	ldr	w21, [x8]
	b	LBB0_31
LBB0_8:
Lloh21:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh23:
	ldr	w21, [x8]
	bl	_malloc
	cbz	x0, LBB0_11
; %bb.9:
	mov	x26, x0
	ldr	x1, [x24, #16]
Lloh24:
	adrp	x27, _SEEK_SET@GOTPAGE
Lloh25:
	ldr	x27, [x27, _SEEK_SET@GOTPAGEOFF]
	subs	x8, x1, x20
	b.le	LBB0_12
; %bb.10:
	mov	x0, x19
	mov	x1, x8
	bl	___archive_read_consume
	b	LBB0_14
LBB0_11:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x2, l_.str.3@PAGE
Lloh30:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_12:
	b.eq	LBB0_14
; %bb.13:
	ldr	w2, [x27]
	mov	x0, x19
	bl	___archive_read_seek
LBB0_14:
	mov	x0, x19
	mov	w1, #0
	bl	_zip_get_local_file_header_size
	mov	x1, x0
	mov	x0, x19
	bl	___archive_read_consume
	ldpsw	x28, x23, [x24, #4]
	cbz	w23, LBB0_27
; %bb.15:
	stp	x26, x25, [sp, #8]              ; 16-byte Folded Spill
	mov	x25, x26
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #24
	mov	x0, x19
	mov	w1, #1
	bl	___archive_read_ahead
	cbz	x0, LBB0_29
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x1, x0
	ldr	x2, [sp, #24]
	cmp	x2, x23
	b.ls	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	str	x23, [sp, #24]
	mov	x2, x23
LBB0_19:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x24]
	cbz	w8, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	w27, #0
	mov	x26, #0
	b	LBB0_24
LBB0_21:                                ;   in Loop: Header=BB0_16 Depth=1
	cmp	x2, x28
	b.ls	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_16 Depth=1
	str	x28, [sp, #24]
	mov	x2, x28
LBB0_23:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x25
	bl	_memcpy
	ldr	x26, [sp, #24]
	subs	x28, x28, x26
	add	x25, x25, x26
	cset	w27, eq
LBB0_24:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x19
	mov	x1, x26
	bl	___archive_read_consume
	cbnz	w27, LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_16 Depth=1
	sub	x23, x23, x26
	cbnz	x23, LBB0_16
LBB0_26:
	ldrsw	x8, [x24, #4]
	ldp	x26, x25, [sp, #8]              ; 16-byte Folded Reload
Lloh31:
	adrp	x27, _SEEK_SET@GOTPAGE
Lloh32:
	ldr	x27, [x27, _SEEK_SET@GOTPAGEOFF]
	b	LBB0_28
LBB0_27:
	mov	x8, x28
LBB0_28:
	sub	x2, x8, x28
	mov	x0, x22
	mov	x1, x26
	bl	_archive_entry_copy_mac_metadata
	b	LBB0_30
LBB0_29:
Lloh33:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x2, l_.str.4@PAGE
Lloh37:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_archive_set_error
Lloh38:
	adrp	x8, _ARCHIVE_WARN@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ARCHIVE_WARN@GOTPAGEOFF]
Lloh40:
	ldr	w21, [x8]
	ldp	x26, x25, [sp, #8]              ; 16-byte Folded Reload
Lloh41:
	adrp	x27, _SEEK_SET@GOTPAGE
Lloh42:
	ldr	x27, [x27, _SEEK_SET@GOTPAGEOFF]
LBB0_30:
	ldr	w2, [x27]
	mov	x0, x19
	mov	x1, x20
	bl	___archive_read_seek
	str	xzr, [x25]
	mov	x0, x26
	bl	_free
LBB0_31:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ; @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Malformed OS X metadata entry: inconsistent size"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported ZIP compression method (%s)"

	.comm	_ARCHIVE_WARN,4,2               ; @ARCHIVE_WARN
l_.str.2:                               ; @.str.2
	.asciz	"Mac metadata is too large: %jd > 4M bytes"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.3:                               ; @.str.3
	.asciz	"Can't allocate memory for Mac metadata"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.4:                               ; @.str.4
	.asciz	"Truncated ZIP file header"

	.comm	_ARCHIVE_ERRNO_MISC,4,2         ; @ARCHIVE_ERRNO_MISC
	.no_dead_strip	_zip_read_mac_metadata
.subsections_via_symbols
