	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cab_next_cfdata
_cab_next_cfdata:                       ## @cab_next_cfdata
	.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	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %r13
	movq	8(%r13), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	cmpq	$0, (%rbx)
	jg	LBB0_24
## %bb.2:
	movq	16(%r13), %r15
	jmp	LBB0_7
LBB0_3:
	movq	16(%r13), %r15
	movq	$0, (%r15)
	movq	8(%r15), %r8
	movq	(%r13), %r9
	movq	%r8, %rsi
	subq	%r9, %rsi
	js	LBB0_12
## %bb.4:
	je	LBB0_7
## %bb.5:
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	___archive_read_consume
	testq	%rax, %rax
	js	LBB0_34
## %bb.6:
	movq	16(%r13), %r15
	movq	8(%r15), %rax
	movq	%rax, (%r13)
LBB0_7:
	movq	(%r15), %rax
	movq	16(%r15), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_10
## %bb.8:
	leaq	32(%r15), %rcx
	incq	%rax
	movq	%rax, (%r15)
	movq	%rcx, 8(%r13)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 104(%r15)
	movq	$0, 120(%r15)
	movq	_RESERVE_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 32(%r13)
	je	LBB0_15
## %bb.9:
	movl	40(%r13), %ebx
	addl	$8, %ebx
	jmp	LBB0_16
LBB0_10:
	testq	%rcx, %rcx
	jle	LBB0_23
## %bb.11:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movq	$0, 16(%rbx)
	jmp	LBB0_24
LBB0_12:
	movq	24(%r13), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	leal	-129(%rax), %edx
	cmpl	$2, %edx
	jb	LBB0_27
## %bb.13:
	cmpl	$128, %eax
	jne	LBB0_26
## %bb.14:
	movl	48(%r13), %ecx
	decl	%ecx
	jmp	LBB0_27
LBB0_15:
	movl	$8, %ebx
LBB0_16:
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	___archive_read_ahead
	testq	%rax, %rax
	je	LBB0_25
## %bb.17:
	movq	%rax, %r12
	movq	_CFDATA_csum@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	addq	%r12, %rdi
	callq	_archive_le32dec
	movl	%eax, 96(%r15)
	movq	_CFDATA_cbData@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	addq	%r12, %rdi
	callq	_archive_le16dec
	movl	%eax, 40(%r15)
	movl	%eax, 44(%r15)
	movq	_CFDATA_cbUncomp@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	addq	%r12, %rdi
	callq	_archive_le16dec
	movq	%rax, 48(%r15)
	movq	%rax, 32(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 72(%r15)
	movq	$0, 88(%r15)
	movslq	40(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_32
## %bb.18:
	cmpl	$38912, %ecx                    ## imm = 0x9800
	jg	LBB0_32
## %bb.19:
	cmpq	$32768, %rax                    ## imm = 0x8000
	jg	LBB0_32
## %bb.20:
	testq	%rax, %rax
	je	LBB0_28
## %bb.21:
	movq	16(%r13), %rdx
	movq	(%rdx), %rsi
	cmpq	16(%rdx), %rsi
	jge	LBB0_30
## %bb.22:
	cmpq	$32768, %rax                    ## imm = 0x8000
	jne	LBB0_32
	jmp	LBB0_30
LBB0_23:
	addq	$32, %r15
	movq	%r15, 8(%r13)
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$96, %edx
	callq	_memset
LBB0_24:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_35
LBB0_25:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_truncated_error                ## TAILCALL
LBB0_26:
	movl	%eax, %ecx
LBB0_27:
	movq	_ARCHIVE_ERRNO_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
                                        ## kill: def $r8d killed $r8d killed $r8
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	callq	_archive_set_error
	jmp	LBB0_34
LBB0_28:
	movq	24(%r13), %rdx
	movl	(%rdx), %edx
	andl	$-2, %edx
	cmpl	$128, %edx
	jne	LBB0_32
## %bb.29:
	movq	16(%r13), %rdx
	movq	(%rdx), %rsi
	cmpq	16(%rdx), %rsi
	jl	LBB0_32
LBB0_30:
	movq	24(%rdx), %rdx
	movq	_COMPTYPE_NONE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_36
## %bb.31:
	cmpq	%rcx, %rax
	je	LBB0_36
LBB0_32:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_33:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_archive_set_error
LBB0_34:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
LBB0_35:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	movslq	%ebx, %rax
	movq	64(%r15), %rdi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpq	%rax, 56(%r15)
	jae	LBB0_39
## %bb.37:
	callq	_free
	movl	%ebx, %edi
	callq	_malloc
	movq	%rax, 64(%r15)
	testq	%rax, %rax
	je	LBB0_41
## %bb.38:
	movq	%rax, %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 56(%r15)
	movq	%rax, %r15
	jmp	LBB0_40
LBB0_39:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_40:
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	___archive_read_consume
	addq	%r15, (%r13)
	jmp	LBB0_24
LBB0_41:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ## @ARCHIVE_ERRNO_MISC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid offset of CFDATA in folder(%d) %jd < %jd"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_RESERVE_PRESENT,4,2            ## @RESERVE_PRESENT
	.comm	_CFDATA_csum,4,2                ## @CFDATA_csum
	.comm	_CFDATA_cbData,4,2              ## @CFDATA_cbData
	.comm	_CFDATA_cbUncomp,4,2            ## @CFDATA_cbUncomp
	.comm	_COMPTYPE_NONE,8,3              ## @COMPTYPE_NONE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Can't allocate memory for CAB data"

	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ## @ARCHIVE_ERRNO_FILE_FORMAT
L_.str.2:                               ## @.str.2
	.asciz	"Invalid CFDATA"

	.no_dead_strip	_cab_next_cfdata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cab_next_cfdata
_cab_next_cfdata:                       ; @cab_next_cfdata
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	ldr	x8, [x0, #8]
	ldr	x22, [x8]
	ldr	x20, [x22, #8]
	cbz	x20, LBB0_3
; %bb.1:
	ldr	x8, [x20]
	cmp	x8, #0
	b.gt	LBB0_22
; %bb.2:
	ldr	x23, [x22, #16]
	b	LBB0_7
LBB0_3:
	ldr	x23, [x22, #16]
	str	xzr, [x23]
	ldr	x8, [x23, #8]
	ldr	x9, [x22]
	subs	x1, x8, x9
	b.mi	LBB0_12
; %bb.4:
	b.eq	LBB0_7
; %bb.5:
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	___archive_read_consume
	tbnz	x0, #63, LBB0_33
; %bb.6:
	ldr	x23, [x22, #16]
	ldr	x8, [x23, #8]
	str	x8, [x22]
LBB0_7:
	ldr	x8, [x23]
	ldr	x9, [x23, #16]
	cmp	x8, x9
	b.ge	LBB0_10
; %bb.8:
	add	x9, x23, #32
	add	x8, x8, #1
	str	x8, [x23]
	str	x9, [x22, #8]
	stp	xzr, xzr, [x23, #112]
	str	xzr, [x23, #104]
	ldr	w8, [x22, #32]
Lloh0:
	adrp	x9, _RESERVE_PRESENT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RESERVE_PRESENT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.9:
	ldr	w8, [x22, #40]
	add	w20, w8, #8
	b	LBB0_15
LBB0_10:
	cmp	x9, #1
	b.lt	LBB0_21
; %bb.11:
	stp	xzr, xzr, [x20]
	str	xzr, [x20, #16]
	b	LBB0_22
LBB0_12:
	ldr	x10, [x22, #24]
	ldr	w10, [x10]
	sub	w11, w10, #129
	cmp	w11, #2
	b.hs	LBB0_24
; %bb.13:
	mov	w10, #0
	b	LBB0_26
LBB0_14:
	mov	w20, #8
LBB0_15:
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	bl	___archive_read_ahead
	cbz	x0, LBB0_23
; %bb.16:
	mov	x21, x0
Lloh3:
	adrp	x8, _CFDATA_csum@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CFDATA_csum@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	add	x0, x0, x8
	bl	_archive_le32dec
	str	w0, [x23, #96]
Lloh6:
	adrp	x8, _CFDATA_cbData@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CFDATA_cbData@GOTPAGEOFF]
Lloh8:
	ldrsw	x8, [x8]
	add	x0, x21, x8
	bl	_archive_le16dec
	stp	w0, w0, [x23, #40]
Lloh9:
	adrp	x8, _CFDATA_cbUncomp@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CFDATA_cbUncomp@GOTPAGEOFF]
Lloh11:
	ldrsw	x8, [x8]
	add	x0, x21, x8
	bl	_archive_le16dec
	str	x0, [x23, #48]
	str	x0, [x23, #32]
	stp	xzr, xzr, [x23, #80]
	str	xzr, [x23, #72]
	ldr	w8, [x23, #40]
	cmp	w8, #0
	mov	w9, #38912
	ccmp	w8, w9, #0, ne
	b.gt	LBB0_31
; %bb.17:
	cmp	x0, #8, lsl #12                 ; =32768
	b.gt	LBB0_31
; %bb.18:
	cbz	x0, LBB0_27
; %bb.19:
	ldr	x9, [x22, #16]
	ldr	x10, [x9]
	ldr	x11, [x9, #16]
	cmp	x10, x11
	b.ge	LBB0_29
; %bb.20:
	cmp	x0, #8, lsl #12                 ; =32768
	b.ne	LBB0_31
	b	LBB0_29
LBB0_21:
	add	x0, x23, #32
	str	x0, [x22, #8]
	mov	w1, #0
	mov	w2, #96
	bl	_memset
LBB0_22:
Lloh12:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
	b	LBB0_34
LBB0_23:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_truncated_error
LBB0_24:
	cmp	w10, #128
	b.ne	LBB0_26
; %bb.25:
	ldr	w10, [x22, #48]
	sub	w10, w10, #1
LBB0_26:
Lloh14:
	adrp	x11, _ARCHIVE_ERRNO_MISC@GOTPAGE
Lloh15:
	ldr	x11, [x11, _ARCHIVE_ERRNO_MISC@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x11]
	stp	x8, x9, [sp, #8]
	str	x10, [sp]
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_32
LBB0_27:
	ldr	x9, [x22, #24]
	ldr	w9, [x9]
	and	w9, w9, #0xfffffffe
	cmp	w9, #128
	b.ne	LBB0_31
; %bb.28:
	ldr	x9, [x22, #16]
	ldr	x10, [x9]
	ldr	x11, [x9, #16]
	cmp	x10, x11
	b.lt	LBB0_31
LBB0_29:
	ldr	x9, [x9, #24]
Lloh19:
	adrp	x10, _COMPTYPE_NONE@GOTPAGE
Lloh20:
	ldr	x10, [x10, _COMPTYPE_NONE@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_35
; %bb.30:
	sxtw	x8, w8
	cmp	x0, x8
	b.eq	LBB0_35
LBB0_31:
Lloh22:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x2, l_.str.2@PAGE
Lloh26:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_32:
	mov	x0, x19
	bl	_archive_set_error
LBB0_33:
Lloh27:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
LBB0_34:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_35:
	sxtw	x24, w20
	ldp	x8, x0, [x23, #56]
	cmp	x8, x24
	b.hs	LBB0_38
; %bb.36:
	bl	_free
	mov	x0, x20
	bl	_malloc
	str	x0, [x23, #64]
	cbz	x0, LBB0_39
; %bb.37:
	str	x24, [x23, #56]
LBB0_38:
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	mov	x0, x19
	mov	x1, x20
	bl	___archive_read_consume
	ldr	x8, [x22]
	add	x8, x8, x24
	str	x8, [x22]
	b	LBB0_22
LBB0_39:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x2, l_.str.1@PAGE
Lloh33:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ; @ARCHIVE_ERRNO_MISC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid offset of CFDATA in folder(%d) %jd < %jd"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_RESERVE_PRESENT,4,2            ; @RESERVE_PRESENT
	.comm	_CFDATA_csum,4,2                ; @CFDATA_csum
	.comm	_CFDATA_cbData,4,2              ; @CFDATA_cbData
	.comm	_CFDATA_cbUncomp,4,2            ; @CFDATA_cbUncomp
	.comm	_COMPTYPE_NONE,8,3              ; @COMPTYPE_NONE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Can't allocate memory for CAB data"

	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ; @ARCHIVE_ERRNO_FILE_FORMAT
l_.str.2:                               ; @.str.2
	.asciz	"Invalid CFDATA"

	.no_dead_strip	_cab_next_cfdata
.subsections_via_symbols
