	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function generic_payload_handler
_generic_payload_handler:               ## @generic_payload_handler
	.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
	movl	%ecx, %r13d
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	(%rsi), %rax
	movq	(%rax), %r15
	callq	_VC_CONTAINER_PARAM_UNUSED
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_BITS_BYTES_AVAILABLE
	movl	%eax, %r12d
	movq	_VC_CONTAINER_READ_FLAG_SKIP@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_BITS_SKIP_BYTES
	jmp	LBB0_7
LBB0_1:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_BITS_INVALIDATE
	jmp	LBB0_7
LBB0_4:
	movq	_VC_CONTAINER_READ_FLAG_INFO@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	jne	LBB0_6
## %bb.5:
	movl	(%r14), %eax
	movl	8(%r14), %ecx
	cmpl	%eax, %r12d
	cmovgel	%eax, %r12d
	leaq	L_.str(%rip), %r8
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_BITS_COPY_BYTES
LBB0_6:
	movl	%r12d, 4(%r14)
LBB0_7:
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_READ_FLAG_SKIP,4,2 ## @VC_CONTAINER_READ_FLAG_SKIP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Packet data"

	.comm	_VC_CONTAINER_READ_FLAG_INFO,4,2 ## @VC_CONTAINER_READ_FLAG_INFO
	.no_dead_strip	_generic_payload_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function generic_payload_handler
_generic_payload_handler:               ; @generic_payload_handler
	.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	x23, x3
	mov	x19, x2
	mov	x21, x0
	ldr	x8, [x1]
	ldr	x20, [x8]
	bl	_VC_CONTAINER_PARAM_UNUSED
	cbz	x19, LBB0_3
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	bl	_BITS_BYTES_AVAILABLE
	mov	x22, x0
Lloh0:
	adrp	x8, _VC_CONTAINER_READ_FLAG_SKIP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC_CONTAINER_READ_FLAG_SKIP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_4
; %bb.2:
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_BITS_SKIP_BYTES
	b	LBB0_7
LBB0_3:
	mov	x0, x21
	mov	x1, x20
	bl	_BITS_INVALIDATE
	b	LBB0_7
LBB0_4:
Lloh5:
	adrp	x8, _VC_CONTAINER_READ_FLAG_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VC_CONTAINER_READ_FLAG_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w23
	b.ne	LBB0_6
; %bb.5:
	ldr	w8, [x19]
	cmp	w22, w8
	csel	w22, w22, w8, lt
	ldr	w3, [x19, #8]
Lloh8:
	adrp	x4, l_.str@PAGE
Lloh9:
	add	x4, x4, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_BITS_COPY_BYTES
LBB0_6:
	str	w22, [x19, #4]
LBB0_7:
Lloh10:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_READ_FLAG_SKIP,4,2 ; @VC_CONTAINER_READ_FLAG_SKIP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Packet data"

	.comm	_VC_CONTAINER_READ_FLAG_INFO,4,2 ; @VC_CONTAINER_READ_FLAG_INFO
	.no_dead_strip	_generic_payload_handler
.subsections_via_symbols
