	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function consume_optional_marker
_consume_optional_marker:               ## @consume_optional_marker
	.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	_ARCHIVE_OK@GOTPCREL(%rip), %r13
	cmpq	$0, 16(%rsi)
	je	LBB0_15
## %bb.1:
	movq	%rsi, %r15
	movq	8(%rsi), %rax
	movq	_ZIP_LENGTH_AT_END@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_15
## %bb.2:
	movq	%rdi, %r14
	movl	$24, %esi
	xorl	%edx, %edx
	callq	___archive_read_ahead
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	cmpb	$80, (%rax)
	jne	LBB0_9
## %bb.5:
	cmpb	$75, 1(%r12)
	jne	LBB0_9
## %bb.6:
	cmpb	$7, 2(%r12)
	jne	LBB0_9
## %bb.7:
	cmpb	$8, 3(%r12)
	jne	LBB0_9
## %bb.8:
	addq	$4, %r12
	movl	$4, (%r15)
LBB0_9:
	movq	8(%r15), %rax
	movq	_LA_USED_ZIP64@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	4(%rax), %ebx
	movq	%r12, %rdi
	callq	_archive_le32dec
	leaq	4(%r12), %rdi
	movq	8(%r15), %rcx
	movq	%rax, 24(%rcx)
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.10:
	callq	_archive_le64dec
	movq	%rax, %rbx
	addq	$12, %r12
	movq	%r12, %rdi
	callq	_archive_le64dec
	movq	_INT64_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rbx
	jg	LBB0_13
## %bb.11:
	cmpq	%rcx, %rax
	jg	LBB0_13
## %bb.12:
	movq	8(%r15), %rcx
	movq	%rbx, 16(%rcx)
	movq	%rax, 8(%rcx)
	addl	$20, (%r15)
	jmp	LBB0_15
LBB0_3:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %r13
	jmp	LBB0_15
LBB0_14:
	callq	_archive_le32dec
	movq	8(%r15), %rcx
	movq	%rax, 16(%rcx)
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_archive_le32dec
	movq	8(%r15), %rcx
	movq	%rax, 8(%rcx)
	addl	$12, (%r15)
	jmp	LBB0_15
LBB0_13:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_archive_set_error
	movq	_ARCHIVE_FAILED@GOTPCREL(%rip), %r13
LBB0_15:
	movl	(%r13), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZIP_LENGTH_AT_END,4,2          ## @ZIP_LENGTH_AT_END
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ## @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Truncated ZIP end-of-file record"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_LA_USED_ZIP64,4,2              ## @LA_USED_ZIP64
	.comm	_INT64_MAX,8,3                  ## @INT64_MAX
L_.str.1:                               ## @.str.1
	.asciz	"Overflow of 64-bit file sizes"

	.comm	_ARCHIVE_FAILED,4,2             ## @ARCHIVE_FAILED
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.no_dead_strip	_consume_optional_marker
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function consume_optional_marker
_consume_optional_marker:               ; @consume_optional_marker
	.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
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_15
; %bb.1:
	mov	x19, x1
	ldr	x8, [x1, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _ZIP_LENGTH_AT_END@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ZIP_LENGTH_AT_END@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.2:
	mov	x20, x0
	mov	w1, #24
	mov	x2, #0
	bl	___archive_read_ahead
	cbz	x0, LBB0_11
; %bb.3:
	mov	x21, x0
	ldrb	w8, [x0]
	cmp	w8, #80
	b.ne	LBB0_8
; %bb.4:
	ldrb	w8, [x21, #1]
	cmp	w8, #75
	b.ne	LBB0_8
; %bb.5:
	ldrb	w8, [x21, #2]
	cmp	w8, #7
	b.ne	LBB0_8
; %bb.6:
	ldrb	w8, [x21, #3]
	cmp	w8, #8
	b.ne	LBB0_8
; %bb.7:
	add	x21, x21, #4
	mov	w8, #4
	str	w8, [x19]
LBB0_8:
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #4]
Lloh3:
	adrp	x9, _LA_USED_ZIP64@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LA_USED_ZIP64@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w22, w9, w8
	mov	x0, x21
	bl	_archive_le32dec
	ldr	x8, [x19, #8]
	str	x0, [x8, #24]
	add	x0, x21, #4
	cbz	w22, LBB0_12
; %bb.9:
	bl	_archive_le64dec
	mov	x22, x0
	add	x0, x21, #12
	bl	_archive_le64dec
Lloh6:
	adrp	x8, _INT64_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INT64_MAX@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x22, x8
	ccmp	x0, x8, #0, le
	b.le	LBB0_13
; %bb.10:
Lloh9:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_archive_set_error
Lloh14:
	adrp	x8, _ARCHIVE_FAILED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ARCHIVE_FAILED@GOTPAGEOFF]
	b	LBB0_16
LBB0_11:
Lloh16:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str@PAGE
Lloh20:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_archive_set_error
Lloh21:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
	b	LBB0_16
LBB0_12:
	bl	_archive_le32dec
	ldr	x8, [x19, #8]
	str	x0, [x8, #16]
	add	x0, x21, #8
	bl	_archive_le32dec
	ldr	x8, [x19, #8]
	str	x0, [x8, #8]
	ldr	w8, [x19]
	add	w8, w8, #12
	b	LBB0_14
LBB0_13:
	ldr	x8, [x19, #8]
	stp	x0, x22, [x8, #8]
	ldr	w8, [x19]
	add	w8, w8, #20
LBB0_14:
	str	w8, [x19]
LBB0_15:
Lloh23:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
LBB0_16:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ZIP_LENGTH_AT_END,4,2          ; @ZIP_LENGTH_AT_END
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ; @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Truncated ZIP end-of-file record"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_LA_USED_ZIP64,4,2              ; @LA_USED_ZIP64
	.comm	_INT64_MAX,8,3                  ; @INT64_MAX
l_.str.1:                               ; @.str.1
	.asciz	"Overflow of 64-bit file sizes"

	.comm	_ARCHIVE_FAILED,4,2             ; @ARCHIVE_FAILED
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.no_dead_strip	_consume_optional_marker
.subsections_via_symbols
