	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unpack_get_last_n_bytes
_unpack_get_last_n_bytes:               ## @unpack_get_last_n_bytes
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movl	%r8d, %r12d
                                        ## kill: def $ecx killed $ecx def $rcx
	movl	%esi, %r15d
	movq	_KFS_BINLOG_ZIP_CHUNK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	decl	%ebx
	andl	%edi, %ebx
	leal	-1(%rcx), %esi
	cmpl	%r8d, %ebx
	jae	LBB0_1
## %bb.2:
	cmpl	%edx, %esi
	jne	LBB0_4
## %bb.3:
	movl	$0, (%r14)
	movl	%ebx, 4(%r14)
	subl	%ebx, %r12d
	jmp	LBB0_6
LBB0_1:
	movl	$-1, %eax
	cmpl	%edx, %esi
	je	LBB0_5
	jmp	LBB0_7
LBB0_4:
	addl	$-2, %ecx
	xorl	%edi, %edi
	cmpl	%edx, %ecx
	sete	%dil
	callq	_assert
	subl	%ebx, %r12d
LBB0_5:
	subl	%r12d, %r15d
	movl	%r15d, (%r14)
	movl	%r12d, 4(%r14)
	xorl	%r12d, %r12d
LBB0_6:
	movl	%r12d, 8(%r14)
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KFS_BINLOG_ZIP_CHUNK_SIZE,4,2  ## @KFS_BINLOG_ZIP_CHUNK_SIZE
	.no_dead_strip	_unpack_get_last_n_bytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unpack_get_last_n_bytes
_unpack_get_last_n_bytes:               ; @unpack_get_last_n_bytes
	.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
	mov	x19, x5
	mov	x20, x4
	mov	x21, x1
Lloh0:
	adrp	x8, _KFS_BINLOG_ZIP_CHUNK_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KFS_BINLOG_ZIP_CHUNK_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w8, #1
	and	w22, w8, w0
	sub	w8, w3, #1
	cmp	w22, w4
	b.hs	LBB0_3
; %bb.1:
	cmp	w8, w2
	b.ne	LBB0_5
; %bb.2:
	stp	wzr, w22, [x19]
	sub	w8, w20, w22
	b	LBB0_6
LBB0_3:
	cmp	w8, w2
	b.ne	LBB0_7
; %bb.4:
	mov	w8, #0
	sub	w9, w21, w20
	stp	w9, w20, [x19]
	b	LBB0_6
LBB0_5:
	sub	w8, w3, #2
	cmp	w8, w2
	cset	w0, eq
	bl	_assert
	mov	w8, #0
	sub	w9, w20, w22
	sub	w10, w21, w9
	stp	w10, w9, [x19]
LBB0_6:
	mov	w0, #0
	str	w8, [x19, #8]
	b	LBB0_8
LBB0_7:
	mov	w0, #-1
LBB0_8:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_KFS_BINLOG_ZIP_CHUNK_SIZE,4,2  ; @KFS_BINLOG_ZIP_CHUNK_SIZE
	.no_dead_strip	_unpack_get_last_n_bytes
.subsections_via_symbols
