	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_message_size             ## -- Begin function check_message_size
	.p2align	4, 0x90
_check_message_size:                    ## @check_message_size
	.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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	(%rdi), %ebx
	movq	_TXF_HAS_LEGACY_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	testl	%ebx, %eax
	setne	%r14b
	movq	_TXF_HAS_LONG_LEGACY_ID@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	testl	%ebx, %eax
	sete	%dil
	orl	$2, %r14d
	callq	_assert
	movl	(%r12), %ebx
LBB0_2:
	movq	_TXF_HAS_PEER_MSGID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	cmpl	$1, %eax
	sbbl	$-1, %r14d
	sarl	$16, %ebx
	movq	_MAX_EXTRA_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_index_extra_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	xorl	%edi, %edi
	testl	%eax, %ebx
	sete	%dil
	callq	_assert
	movl	%ebx, %edi
	callq	_extra_mask_intcount
	movq	%rax, %rbx
	addl	%r14d, %ebx
	movslq	%r15d, %r13
	leal	(,%rbx,4), %eax
	movslq	%eax, %r14
	addq	$16, %r14
	xorl	%edi, %edi
	cmpq	%r13, %r14
	setbe	%dil
	callq	_assert
	movq	8(%r12), %rax
	movslq	%ebx, %rcx
	leaq	(%rax,%rcx), %r12
	movzbl	(%rax,%rcx), %ebx
	cmpl	$254, %ebx
	jne	LBB0_4
## %bb.3:
	movzwl	1(%r12), %ebx
	addq	$3, %r12
	jmp	LBB0_7
LBB0_4:
	cmpb	$-1, %bl
	je	LBB0_6
## %bb.5:
	leaq	(%rax,%rcx), %r12
	incq	%r12
	jmp	LBB0_7
LBB0_6:
	movl	1(%r12), %ebx
	addq	$5, %r12
	testl	%ebx, %ebx
	setns	%al
	cmpl	%r15d, %ebx
	setl	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r12, (%rax)
LBB0_9:
	movslq	%ebx, %rbx
	addq	%rbx, %r14
	xorl	%edi, %edi
	cmpq	%r13, %r14
	setbe	%dil
	callq	_assert
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TXF_HAS_LEGACY_ID,4,2          ## @TXF_HAS_LEGACY_ID
	.comm	_TXF_HAS_LONG_LEGACY_ID,4,2     ## @TXF_HAS_LONG_LEGACY_ID
	.comm	_TXF_HAS_PEER_MSGID,4,2         ## @TXF_HAS_PEER_MSGID
	.comm	_MAX_EXTRA_MASK,4,2             ## @MAX_EXTRA_MASK
	.comm	_index_extra_mask,4,2           ## @index_extra_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_message_size             ; -- Begin function check_message_size
	.p2align	2
_check_message_size:                    ; @check_message_size
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _TXF_HAS_LEGACY_ID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TXF_HAS_LEGACY_ID@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ands	w9, w9, w8
	cset	w22, ne
Lloh3:
	adrp	x10, _TXF_HAS_LONG_LEGACY_ID@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TXF_HAS_LONG_LEGACY_ID@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_2
; %bb.1:
	cmp	w9, #0
	cset	w0, eq
	orr	w22, w22, #0x2
	bl	_assert
	ldr	w8, [x21]
LBB0_2:
Lloh6:
	adrp	x9, _TXF_HAS_PEER_MSGID@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TXF_HAS_PEER_MSGID@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	cinc	w23, w22, ne
Lloh9:
	adrp	x9, _MAX_EXTRA_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MAX_EXTRA_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w22, w9, w8, asr #16
Lloh12:
	adrp	x8, _index_extra_mask@GOTPAGE
Lloh13:
	ldr	x8, [x8, _index_extra_mask@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	bics	wzr, w22, w8
	cset	w0, eq
	bl	_assert
	mov	x0, x22
	bl	_extra_mask_intcount
	add	w24, w23, w0
	sxtw	x22, w20
	lsl	w8, w24, #2
	sxtw	x8, w8
	add	x23, x8, #16
	cmp	x23, x22
	cset	w0, ls
	bl	_assert
	ldr	x8, [x21, #8]
	add	x8, x8, w24, sxtw
	mov	x24, x8
	ldrb	w21, [x24], #1
	cmp	w21, #254
	b.ne	LBB0_4
; %bb.3:
	ldurh	w21, [x8, #1]
	add	x24, x8, #3
	b	LBB0_6
LBB0_4:
	cmp	w21, #255
	b.ne	LBB0_6
; %bb.5:
	ldur	w21, [x8, #1]
	add	x24, x8, #5
	cmp	w21, #0
	ccmp	w21, w20, #0, ge
	cset	w0, lt
	bl	_assert
LBB0_6:
	cbz	x19, LBB0_8
; %bb.7:
	str	x24, [x19]
LBB0_8:
	add	x8, x23, w21, sxtw
	cmp	x8, x22
	cset	w0, ls
	bl	_assert
	mov	x0, x21
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TXF_HAS_LEGACY_ID,4,2          ; @TXF_HAS_LEGACY_ID
	.comm	_TXF_HAS_LONG_LEGACY_ID,4,2     ; @TXF_HAS_LONG_LEGACY_ID
	.comm	_TXF_HAS_PEER_MSGID,4,2         ; @TXF_HAS_PEER_MSGID
	.comm	_MAX_EXTRA_MASK,4,2             ; @MAX_EXTRA_MASK
	.comm	_index_extra_mask,4,2           ; @index_extra_mask
.subsections_via_symbols
