	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_store_new_message           ## -- Begin function do_store_new_message
	.p2align	4, 0x90
_do_store_new_message:                  ## @do_store_new_message
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r13
	movl	48(%rdi), %edi
	callq	_conv_uid
	testq	%rax, %rax
	js	LBB0_23
## %bb.1:
	movq	_MAX_TEXT_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	40(%r13), %eax
	jbe	LBB0_23
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movswl	2(%r13), %r12d
	movq	_write_extra_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%r12d, %ebx
	leaq	8(%r13), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, 8(%r13)
	movq	%r14, %rdi
	callq	_FITS_AN_INT
	testl	%eax, %eax
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_3
## %bb.4:
	movq	_MAX_EXTRA_MASK@GOTPCREL(%rip), %rcx
	movl	(%r13), %eax
	testl	%ebx, (%rcx)
	je	LBB0_7
## %bb.5:
	movzwl	%ax, %eax
	movl	%eax, 16(%r13)
	movq	_LEV_TX_ADD_MESSAGE_EXT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_23:
	movl	$-1, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movzwl	(%r13), %eax
	movl	%eax, 16(%r13)
	movq	_LEV_TX_ADD_MESSAGE_EXT_LL@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	orl	%ebx, %eax
LBB0_10:
	movl	%eax, (%r13)
	movl	%r12d, %edi
	callq	_extra_mask_intcount
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_extra_mask_intcount
	shll	$2, %eax
	movl	(%r13), %edi
	movslq	%eax, %r14
	movq	40(%r13), %rax
	leaq	(%r14,%rax), %rsi
	addq	$57, %rsi
	movl	48(%r13), %edx
	callq	_alloc_log_event
	movq	%rax, %r15
	leaq	8(%rax), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	$16, %edx
	callq	_memcpy
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_12
## %bb.11:
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	shll	$2, %eax
	cltq
	addq	24(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_12:
	addq	24(%r15), %r14
	movq	32(%r15), %rax
	movq	_MAX_EXTRA_MASK@GOTPCREL(%rip), %r8
	movl	(%r8), %edi
	cmpl	$2, %edi
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	jl	LBB0_13
## %bb.14:
	movq	32(%r13), %rdx
	movl	$1, %esi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	(%rdx), %rcx
	movq	%rcx, (%rax)
	addq	$8, %rax
	addq	$8, %rdx
LBB0_21:                                ##   in Loop: Header=BB0_15 Depth=1
	addl	%esi, %esi
	cmpl	%edi, %esi
	jge	LBB0_22
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %esi
	je	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpl	$255, %esi
	jg	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	(%rdx), %edi
	addq	$4, %rdx
	movl	%edi, (%rax)
	addq	$4, %rax
	movl	(%r8), %edi
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	testl	%r12d, %esi
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=1
	xorl	%ecx, %ecx
	cmpl	$256, %esi                      ## imm = 0x100
	setge	%cl
	leaq	(%rdx,%rcx,4), %rdx
	addq	$4, %rdx
	jmp	LBB0_21
LBB0_13:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
LBB0_22:
	xorl	%edi, %edi
	cmpq	%rax, %r14
	sete	%dil
	callq	_assert
	movq	40(%r13), %rdx
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_copy_adjust_text
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_store_new_message              ## TAILCALL
LBB0_7:
	cmpl	$4096, %eax                     ## imm = 0x1000
	jae	LBB0_8
## %bb.9:
	movq	_LEV_TX_ADD_MESSAGE_MF@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_10
LBB0_8:
	movzwl	%ax, %eax
	movl	%eax, 16(%r13)
	movq	_LEV_TX_ADD_MESSAGE_LF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_TEXT_LEN,4,2               ## @MAX_TEXT_LEN
	.comm	_write_extra_mask,4,2           ## @write_extra_mask
	.comm	_LEV_TX_ADD_MESSAGE_EXT_LL,4,2  ## @LEV_TX_ADD_MESSAGE_EXT_LL
	.comm	_MAX_EXTRA_MASK,4,2             ## @MAX_EXTRA_MASK
	.comm	_LEV_TX_ADD_MESSAGE_EXT,4,2     ## @LEV_TX_ADD_MESSAGE_EXT
	.comm	_LEV_TX_ADD_MESSAGE_LF,4,2      ## @LEV_TX_ADD_MESSAGE_LF
	.comm	_LEV_TX_ADD_MESSAGE_MF,4,2      ## @LEV_TX_ADD_MESSAGE_MF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_store_new_message           ; -- Begin function do_store_new_message
	.p2align	2
_do_store_new_message:                  ; @do_store_new_message
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w0, [x0, #48]
	bl	_conv_uid
	tbnz	x0, #63, LBB0_5
; %bb.1:
	ldr	w8, [x21, #40]
Lloh0:
	adrp	x9, _MAX_TEXT_LEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_TEXT_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w8
	b.ls	LBB0_5
; %bb.2:
	mov	x25, x21
	str	x24, [x25, #8]!
	ldursh	w22, [x25, #-6]
Lloh3:
	adrp	x8, _write_extra_mask@GOTPAGE
Lloh4:
	ldr	x8, [x8, _write_extra_mask@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w23, w22, w8
	mov	x0, x24
	bl	_FITS_AN_INT
Lloh6:
	adrp	x27, _MAX_EXTRA_MASK@GOTPAGE
Lloh7:
	ldr	x27, [x27, _MAX_EXTRA_MASK@GOTPAGEOFF]
	cbz	w0, LBB0_6
; %bb.3:
	ldr	w9, [x27]
	ldr	w8, [x21]
	tst	w9, w23
	b.eq	LBB0_19
; %bb.4:
	and	w8, w8, #0xffff
	str	w8, [x21, #16]
Lloh8:
	adrp	x8, _LEV_TX_ADD_MESSAGE_EXT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LEV_TX_ADD_MESSAGE_EXT@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	mov	w0, #-1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldrh	w8, [x21]
	str	w8, [x21, #16]
Lloh10:
	adrp	x8, _LEV_TX_ADD_MESSAGE_EXT_LL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LEV_TX_ADD_MESSAGE_EXT_LL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	orr	w8, w8, w23
LBB0_8:
	str	w8, [x21]
	mov	x0, x22
	bl	_extra_mask_intcount
	mov	x26, x0
	mov	x0, x23
	bl	_extra_mask_intcount
	lsl	w8, w0, #2
	ldr	w0, [x21]
	sxtw	x28, w8
	ldr	x8, [x21, #40]
	add	x8, x28, x8
	add	x1, x8, #57
	ldr	w2, [x21, #48]
	bl	_alloc_log_event
	mov	x24, x0
	add	x0, x0, #8
	mov	x1, x25
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [x24, #24]
	add	x25, x8, x28
	cbnz	x20, LBB0_10
; %bb.9:
	lsl	w8, w26, #2
	ldr	x9, [x21, #24]
	add	x20, x9, w8, sxtw
LBB0_10:
	ldr	x8, [x24, #32]
	ldr	w11, [x27]
	cmp	w11, #2
	b.lt	LBB0_18
; %bb.11:
	ldr	x9, [x21, #32]
	mov	w10, #1
	mov	w12, #8
	mov	w13, #4
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	cmp	w10, #256
	csel	x14, x13, x12, lt
	add	x14, x9, x14
	tst	w10, w22
	csel	x9, x9, x14, eq
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	lsl	w10, w10, #1
	cmp	w10, w11
	b.ge	LBB0_18
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	tst	w10, w23
	b.eq	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	cmp	w10, #255
	b.gt	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w11, [x9], #4
	str	w11, [x8], #4
	ldr	w11, [x27]
	b	LBB0_13
LBB0_17:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x14, [x9], #8
	str	x14, [x8], #8
	b	LBB0_13
LBB0_18:
	cmp	x25, x8
	cset	w0, eq
	bl	_assert
	ldr	x2, [x21, #40]
	mov	x0, x25
	mov	x1, x20
	bl	_copy_adjust_text
	mov	x0, x24
	mov	x1, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_store_new_message
LBB0_19:
	cmp	w8, #1, lsl #12                 ; =4096
	b.hs	LBB0_21
; %bb.20:
Lloh12:
	adrp	x9, _LEV_TX_ADD_MESSAGE_MF@GOTPAGE
Lloh13:
	ldr	x9, [x9, _LEV_TX_ADD_MESSAGE_MF@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	b	LBB0_8
LBB0_21:
	and	w8, w8, #0xffff
	str	w8, [x21, #16]
Lloh15:
	adrp	x8, _LEV_TX_ADD_MESSAGE_LF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LEV_TX_ADD_MESSAGE_LF@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_TEXT_LEN,4,2               ; @MAX_TEXT_LEN
	.comm	_write_extra_mask,4,2           ; @write_extra_mask
	.comm	_LEV_TX_ADD_MESSAGE_EXT_LL,4,2  ; @LEV_TX_ADD_MESSAGE_EXT_LL
	.comm	_MAX_EXTRA_MASK,4,2             ; @MAX_EXTRA_MASK
	.comm	_LEV_TX_ADD_MESSAGE_EXT,4,2     ; @LEV_TX_ADD_MESSAGE_EXT
	.comm	_LEV_TX_ADD_MESSAGE_LF,4,2      ; @LEV_TX_ADD_MESSAGE_LF
	.comm	_LEV_TX_ADD_MESSAGE_MF,4,2      ; @LEV_TX_ADD_MESSAGE_MF
.subsections_via_symbols
