	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function archive_read_format_cab_read_header
_archive_read_format_cab_read_header:   ## @archive_read_format_cab_read_header
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_4
LBB0_2:
	movq	%r12, %rdi
	callq	_cab_read_header
	movl	%eax, %r15d
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jl	LBB0_29
## %bb.3:
	movl	$1, (%rbx)
LBB0_4:
	movq	120(%rbx), %rcx
	cmpq	128(%rbx), %rcx
	jge	LBB0_5
## %bb.6:
	movq	40(%rbx), %rax
	movq	160(%rbx), %rsi
	leaq	1(%rcx), %rdx
	movq	%rdx, 120(%rbx)
	leaq	(%rcx,%rcx,2), %rdi
	leaq	(%rsi,%rdi,8), %rcx
	movq	$0, 8(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 96(%rbx)
	movq	$0, 112(%rbx)
	movq	%rcx, 88(%rbx)
	movl	(%rsi,%rdi,8), %ecx
	leal	-129(%rcx), %edx
	cmpl	$2, %edx
	jae	LBB0_7
## %bb.30:
	movq	144(%rbx), %rcx
	jmp	LBB0_10
LBB0_5:
	movl	$1, 4(%rbx)
	movq	_ARCHIVE_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_29
LBB0_7:
	cmpl	$128, %ecx
	jne	LBB0_9
## %bb.8:
	movq	144(%rbx), %rcx
	movslq	152(%rbx), %rdx
	leaq	(%rcx,%rdx,8), %rcx
	addq	$-8, %rcx
	jmp	LBB0_10
LBB0_9:
	movslq	%ecx, %rcx
	shlq	$3, %rcx
	addq	144(%rbx), %rcx
LBB0_10:
	movq	%rcx, 40(%rbx)
	cmpq	%rcx, %rax
	je	LBB0_12
## %bb.11:
	movq	$0, 80(%rbx)
LBB0_12:
	movq	_ATTR_NAME_IS_UTF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rsi,%rdi,8)
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_16
## %bb.13:
	movq	72(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_20
## %bb.14:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_archive_string_conversion_from_charset
	movq	%rax, 72(%rbx)
	testq	%rax, %rax
	jne	LBB0_20
	jmp	LBB0_15
LBB0_16:
	movq	64(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_20
## %bb.17:
	cmpl	$0, 16(%rbx)
	je	LBB0_19
## %bb.18:
	movq	56(%rbx), %rax
	jmp	LBB0_20
LBB0_19:
	movq	%r12, %rdi
	callq	_archive_string_default_conversion_for_read
	movq	%rax, 56(%rbx)
	movl	$1, 16(%rbx)
LBB0_20:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%rax, %r15
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	leaq	(%r14,%r13,8), %rax
	addq	$4, %rax
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	leaq	20(%r14,%r13,8), %r12
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_cab_convert_path_separator_1
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	20(%r14,%r13,8), %r14d
	movq	%r15, %r13
	movq	%r12, %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	callq	_archive_strlen
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	%eax, %edx
	movq	%r13, %rcx
	callq	_archive_entry_copy_pathname_l
	testq	%rax, %rax
	je	LBB0_24
## %bb.21:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_23
## %bb.22:
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_archive_set_error
LBB0_15:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_29
LBB0_23:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movslq	(%rax), %r14
	movq	%r13, %rdi
	callq	_archive_string_conversion_charset_name
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_archive_set_error
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_24:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jns	LBB0_26
## %bb.25:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_cab_convert_path_separator_2
LBB0_26:
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	8(%r13,%r15,8), %rsi
	movq	%r14, %rdi
	callq	_archive_entry_set_size
	movq	_ATTR_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	andl	(%rcx), %eax
	movq	_AE_IFREG@GOTPCREL(%rip), %rax
	movl	$438, %ecx                      ## imm = 0x1B6
	movl	$365, %esi                      ## imm = 0x16D
	cmovel	%ecx, %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	callq	_archive_entry_set_mode
	movl	16(%r13,%r15,8), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_archive_entry_set_mtime
	movq	8(%r13,%r15,8), %rax
	movq	%rax, 24(%rbx)
	movq	$0, 48(%rbx)
	testq	%rax, %rax
	jne	LBB0_28
## %bb.27:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 8(%rbx)
LBB0_28:
	movl	32(%rbx), %edi
	movl	136(%rbx), %edx
	movl	140(%rbx), %ecx
	movq	40(%rbx), %rax
	movq	(%rax), %r8
	leaq	L_.str.3(%rip), %rsi
	callq	_sprintf
	movl	32(%rbx), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	%r12d, %r15d
LBB0_29:
	movl	%r15d, %eax
	addq	$56, %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_WARN,4,2               ## @ARCHIVE_WARN
	.comm	_ARCHIVE_EOF,4,2                ## @ARCHIVE_EOF
	.comm	_ATTR_NAME_IS_UTF,4,2           ## @ATTR_NAME_IS_UTF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UTF-8"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOMEM,8,3                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Can't allocate memory for Pathname"

	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ## @ARCHIVE_ERRNO_FILE_FORMAT
L_.str.2:                               ## @.str.2
	.asciz	"Pathname cannot be converted from %s to current locale."

	.comm	_ATTR_RDONLY,4,2                ## @ATTR_RDONLY
	.comm	_AE_IFREG,4,2                   ## @AE_IFREG
L_.str.3:                               ## @.str.3
	.asciz	"CAB %d.%d (%s)"

	.no_dead_strip	_archive_read_format_cab_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function archive_read_format_cab_read_header
_archive_read_format_cab_read_header:   ; @archive_read_format_cab_read_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
	ldr	w8, [x20]
	cbz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_cab_read_header
	mov	x21, x0
Lloh3:
	adrp	x8, _ARCHIVE_WARN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARCHIVE_WARN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.lt	LBB0_30
; %bb.3:
	mov	w8, #1
	str	w8, [x20]
LBB0_4:
	ldp	x27, x8, [x20, #120]
	cmp	x27, x8
	b.ge	LBB0_7
; %bb.5:
	ldr	x28, [x20, #160]
	add	x8, x27, #1
	stp	xzr, x8, [x20, #112]
	mov	w8, #24
	mul	x9, x27, x8
	add	x8, x28, x9
	str	xzr, [x20, #8]
	stp	xzr, xzr, [x20, #96]
	str	x8, [x20, #88]
	ldr	x8, [x20, #40]
	ldr	w9, [x28, x9]
	sub	w10, w9, #129
	cmp	w10, #2
	b.hs	LBB0_8
; %bb.6:
	ldr	x9, [x20, #144]
	b	LBB0_11
LBB0_7:
	mov	w8, #1
	str	w8, [x20, #4]
Lloh6:
	adrp	x8, _ARCHIVE_EOF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ARCHIVE_EOF@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	b	LBB0_30
LBB0_8:
	cmp	w9, #128
	b.ne	LBB0_10
; %bb.9:
	ldr	x9, [x20, #144]
	ldrsw	x10, [x20, #152]
	add	x9, x9, x10, lsl #3
	sub	x9, x9, #8
	b	LBB0_11
LBB0_10:
	sxtw	x9, w9
	ldr	x10, [x20, #144]
	add	x9, x10, x9, lsl #3
LBB0_11:
	str	x9, [x20, #40]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.12:
	str	xzr, [x20, #80]
LBB0_13:
	mov	w8, #24
	madd	x22, x27, x8, x28
	ldr	w8, [x22, #4]!
Lloh9:
	adrp	x9, _ATTR_NAME_IS_UTF@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ATTR_NAME_IS_UTF@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.14:
	ldr	x23, [x20, #72]
	cbnz	x23, LBB0_20
; %bb.15:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	bl	_archive_string_conversion_from_charset
	mov	x23, x0
	str	x0, [x20, #72]
	cbnz	x0, LBB0_20
	b	LBB0_23
LBB0_16:
	ldr	x23, [x20, #64]
	cbnz	x23, LBB0_20
; %bb.17:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_19
; %bb.18:
	ldr	x23, [x20, #56]
	b	LBB0_20
LBB0_19:
	mov	x0, x19
	bl	_archive_string_default_conversion_for_read
	mov	x23, x0
	str	x0, [x20, #56]
	mov	w8, #1
	str	w8, [x20, #16]
LBB0_20:
	mov	w8, #24
	madd	x26, x27, x8, x28
	add	x25, x26, #20
	ldr	w1, [x22]
	mov	x0, x25
	bl	_cab_convert_path_separator_1
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	ldr	w26, [x26, #20]
	mov	x0, x25
	bl	_archive_strlen
	mov	x2, x0
	mov	x0, x24
	mov	x1, x26
	mov	x3, x23
	bl	_archive_entry_copy_pathname_l
	cbz	x0, LBB0_25
; %bb.21:
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	ldr	x1, [x8]
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_24
; %bb.22:
Lloh20:
	adrp	x2, l_.str.1@PAGE
Lloh21:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_archive_set_error
LBB0_23:
Lloh22:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
Lloh24:
	ldr	w21, [x8]
	b	LBB0_30
LBB0_24:
Lloh25:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh27:
	ldrsw	x21, [x8]
	mov	x0, x23
	bl	_archive_string_conversion_charset_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh28:
	adrp	x2, l_.str.2@PAGE
Lloh29:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_archive_set_error
Lloh30:
	adrp	x8, _ARCHIVE_WARN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ARCHIVE_WARN@GOTPAGEOFF]
Lloh32:
	ldr	w21, [x8]
LBB0_25:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	tbz	w8, #31, LBB0_27
; %bb.26:
	mov	x0, x20
	mov	x1, x24
	bl	_cab_convert_path_separator_2
LBB0_27:
	mov	w8, #24
	madd	x23, x27, x8, x28
	ldr	x1, [x23, #8]
	mov	x0, x24
	bl	_archive_entry_set_size
	ldr	w8, [x22]
Lloh33:
	adrp	x9, _ATTR_RDONLY@GOTPAGE
Lloh34:
	ldr	x9, [x9, _ATTR_RDONLY@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
Lloh36:
	adrp	x10, _AE_IFREG@GOTPAGE
Lloh37:
	ldr	x10, [x10, _AE_IFREG@GOTPAGEOFF]
Lloh38:
	ldr	w10, [x10]
	tst	w9, w8
	mov	w8, #365
	mov	w9, #438
	csel	w8, w9, w8, eq
	orr	w1, w10, w8
	mov	x0, x24
	bl	_archive_entry_set_mode
	ldr	w1, [x23, #16]
	mov	x0, x24
	mov	w2, #0
	bl	_archive_entry_set_mtime
	ldr	x8, [x23, #8]
	str	x8, [x20, #24]
	str	xzr, [x20, #48]
	cbnz	x8, LBB0_29
; %bb.28:
	movi.2s	v0, #1
	str	d0, [x20, #8]
LBB0_29:
	ldr	w0, [x20, #32]
	ldp	w2, w3, [x20, #136]
	ldr	x8, [x20, #40]
	ldr	x4, [x8]
Lloh39:
	adrp	x1, l_.str.3@PAGE
Lloh40:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_sprintf
	ldr	w8, [x20, #32]
	str	w8, [x19]
LBB0_30:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ARCHIVE_WARN,4,2               ; @ARCHIVE_WARN
	.comm	_ARCHIVE_EOF,4,2                ; @ARCHIVE_EOF
	.comm	_ATTR_NAME_IS_UTF,4,2           ; @ATTR_NAME_IS_UTF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UTF-8"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOMEM,8,3                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Can't allocate memory for Pathname"

	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ; @ARCHIVE_ERRNO_FILE_FORMAT
l_.str.2:                               ; @.str.2
	.asciz	"Pathname cannot be converted from %s to current locale."

	.comm	_ATTR_RDONLY,4,2                ; @ATTR_RDONLY
	.comm	_AE_IFREG,4,2                   ; @AE_IFREG
l_.str.3:                               ; @.str.3
	.asciz	"CAB %d.%d (%s)"

	.no_dead_strip	_archive_read_format_cab_read_header
.subsections_via_symbols
