	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cab_minimum_consume_cfdata
_cab_minimum_consume_cfdata:            ## @cab_minimum_consume_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	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %r12
	movq	8(%r12), %rax
	movq	16(%r12), %r13
	movq	(%rax), %rax
	movq	_COMPTYPE_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.5:
	movq	(%r13), %rax
	cmpq	%r15, %rax
	movq	%r15, %rbx
	cmovlq	%rax, %rbx
	addq	%rbx, 8(%r13)
	subl	%ebx, 32(%r13)
	subq	%rbx, %r15
	subq	%rbx, %rax
	movq	%rax, (%r13)
	testq	%rbx, %rbx
	jne	LBB0_6
	jmp	LBB0_8
LBB0_1:
	movq	8(%r13), %rcx
	movq	16(%r13), %rax
	subq	%rcx, %rax
	jle	LBB0_3
## %bb.2:
	cmpq	%r15, %rax
	cmovgeq	%r15, %rax
	subq	%rax, %r15
	addq	%rax, %rcx
	movq	%rcx, 8(%r13)
	subl	%eax, 32(%r13)
LBB0_3:
	movq	(%r13), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.4:
	movq	$0, (%r13)
LBB0_6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_cab_checksum_update
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	___archive_read_consume
	addl	%ebx, (%r12)
	subq	%rbx, 24(%r13)
	jne	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_cab_checksum_finish
	testl	%eax, %eax
	cltq
	cmovsq	%rax, %r15
LBB0_8:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMPTYPE_NONE,8,3              ## @COMPTYPE_NONE
	.no_dead_strip	_cab_minimum_consume_cfdata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cab_minimum_consume_cfdata
_cab_minimum_consume_cfdata:            ; @cab_minimum_consume_cfdata
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x23, [x8]
	ldp	x8, x22, [x23, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _COMPTYPE_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _COMPTYPE_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldp	x8, x9, [x22]
	cmp	x8, x19
	csel	x21, x8, x19, lt
	sub	x19, x19, x21
	add	x9, x9, x21
	ldr	w10, [x22, #32]
	sub	w10, w10, w21
	str	w10, [x22, #32]
	sub	x8, x8, x21
	stp	x8, x9, [x22]
	cbnz	x21, LBB0_6
	b	LBB0_8
LBB0_2:
	ldp	x8, x9, [x22, #8]
	sub	x9, x9, x8
	cmp	x9, #1
	b.lt	LBB0_4
; %bb.3:
	cmp	x9, x19
	csel	x9, x9, x19, lt
	sub	x19, x19, x9
	add	x8, x9, x8
	str	x8, [x22, #8]
	ldr	w8, [x22, #32]
	sub	w8, w8, w9
	str	w8, [x22, #32]
LBB0_4:
	ldr	x21, [x22]
	cbz	x21, LBB0_8
; %bb.5:
	str	xzr, [x22]
LBB0_6:
	mov	x0, x20
	mov	x1, x21
	bl	_cab_checksum_update
	mov	x0, x20
	mov	x1, x21
	bl	___archive_read_consume
	ldr	w8, [x23]
	add	w8, w8, w21
	str	w8, [x23]
	ldr	x8, [x22, #24]
	subs	x8, x8, x21
	str	x8, [x22, #24]
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_cab_checksum_finish
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	w0, #0
	csel	x19, x8, x19, lt
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_COMPTYPE_NONE,8,3              ; @COMPTYPE_NONE
	.no_dead_strip	_cab_minimum_consume_cfdata
.subsections_via_symbols
