	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cab_checksum_finish
_cab_checksum_finish:                   ## @cab_checksum_finish
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	movq	(%rax), %r12
	movq	24(%r12), %rbx
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %r15
	cmpq	$0, (%rbx)
	je	LBB0_8
## %bb.1:
	movq	%rdi, %r14
	movl	8(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_3
## %bb.2:
	movq	16(%rbx), %rdx
	movq	40(%rbx), %rdi
	callq	_cab_checksum_cfdata
	movq	%rax, 16(%rbx)
	movl	$0, 8(%rbx)
LBB0_3:
	movq	_RESERVE_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r12)
	je	LBB0_4
## %bb.5:
	movl	16(%r12), %esi
	addl	$4, %esi
	jmp	LBB0_6
LBB0_4:
	movl	$4, %esi
LBB0_6:
	movq	_CFDATA_cbData@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	32(%rbx), %rdi
	movq	16(%rbx), %rdx
	callq	_cab_checksum_cfdata
	movq	%rax, 16(%rbx)
	movq	(%rbx), %r8
	cmpq	%rax, %r8
	je	LBB0_8
## %bb.7:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	(%r12), %rcx
	movq	(%rcx), %rcx
	decq	%rcx
	movl	24(%rbx), %edx
	movl	%edx, (%rsp)
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movq	%rax, %r9
	callq	_archive_set_error
	movq	_ARCHIVE_FAILED@GOTPCREL(%rip), %r15
LBB0_8:
	movl	(%r15), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_RESERVE_PRESENT,4,2            ## @RESERVE_PRESENT
	.comm	_CFDATA_cbData,8,3              ## @CFDATA_cbData
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ## @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Checksum error CFDATA[%d] %x:%x in %d bytes"

	.comm	_ARCHIVE_FAILED,4,2             ## @ARCHIVE_FAILED
	.no_dead_strip	_cab_checksum_finish
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cab_checksum_finish
_cab_checksum_finish:                   ; @cab_checksum_finish
	.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, [x0, #8]
	ldr	x21, [x8]
	ldr	x20, [x21, #24]
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w1, [x20, #8]
	cbz	w1, LBB0_3
; %bb.2:
	ldr	x0, [x20, #40]
	ldr	x2, [x20, #16]
	bl	_cab_checksum_cfdata
	str	x0, [x20, #16]
	str	wzr, [x20, #8]
LBB0_3:
	ldr	w8, [x21, #8]
Lloh0:
	adrp	x9, _RESERVE_PRESENT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RESERVE_PRESENT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x21, #16]
	add	w1, w8, #4
	b	LBB0_6
LBB0_5:
	mov	w1, #4
LBB0_6:
	ldr	x8, [x20, #32]
Lloh3:
	adrp	x9, _CFDATA_cbData@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CFDATA_cbData@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	ldr	x2, [x20, #16]
	bl	_cab_checksum_cfdata
	str	x0, [x20, #16]
	ldr	x4, [x20]
	cmp	x4, x0
	b.ne	LBB0_8
LBB0_7:
Lloh6:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	mov	x5, x0
Lloh8:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	x8, [x21]
	ldr	x8, [x8]
	sub	x3, x8, #1
	ldr	w6, [x20, #24]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_archive_set_error
Lloh13:
	adrp	x8, _ARCHIVE_FAILED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ARCHIVE_FAILED@GOTPAGEOFF]
LBB0_9:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_RESERVE_PRESENT,4,2            ; @RESERVE_PRESENT
	.comm	_CFDATA_cbData,8,3              ; @CFDATA_cbData
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ; @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Checksum error CFDATA[%d] %x:%x in %d bytes"

	.comm	_ARCHIVE_FAILED,4,2             ; @ARCHIVE_FAILED
	.no_dead_strip	_cab_checksum_finish
.subsections_via_symbols
