	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adjust_message_intermediate    ## -- Begin function adjust_message_intermediate
	.p2align	4, 0x90
_adjust_message_intermediate:           ## @adjust_message_intermediate
	.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, %ebx
	movl	%edx, %r14d
	movl	%esi, %r12d
	movl	%edi, %r15d
	xorl	%edi, %edi
	testl	%esi, %esi
	setg	%dil
	callq	_assert
	movl	%r15d, %edi
	callq	_get_user
	testq	%rax, %rax
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_1
## %bb.4:
	movq	%rax, %r13
	xorl	%r15d, %r15d
	cmpl	%r12d, (%rax)
	jl	LBB0_38
## %bb.5:
	movq	16(%r13), %r15
	jmp	LBB0_6
LBB0_1:
	movl	%r15d, %edi
	callq	_lookup_user_directory
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_38
## %bb.2:
	cmpl	%r12d, (%rax)
	jl	LBB0_38
## %bb.3:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rax, %r15
	callq	_get_user_f
	movq	%rax, %r13
LBB0_6:
	testl	%r14d, %r14d
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	js	LBB0_7
## %bb.8:
	movl	%ebx, %eax
	orl	%r14d, %eax
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jne	LBB0_10
## %bb.9:
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	$1, %ecx
	jmp	LBB0_14
LBB0_7:
	movq	%r13, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_update_history
	movl	12(%r13), %edi
	movl	%r12d, %esi
	callq	_tree_delete
	movl	%eax, 12(%r13)
	jmp	LBB0_15
LBB0_10:
	testl	%r14d, %r14d
	je	LBB0_12
## %bb.11:
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	$3, %ecx
	callq	_update_history
LBB0_12:
	testl	%ebx, %ebx
	je	LBB0_15
## %bb.13:
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	$2, %ecx
LBB0_14:
	callq	_update_history
LBB0_15:
	movl	%ebx, %r14d
	movl	8(%r13), %edi
	movl	%r12d, %esi
	callq	_tree_lookup
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_19
## %bb.16:
	testq	%r15, %r15
	je	LBB0_19
## %bb.17:
	cmpl	%r12d, (%r15)
	jl	LBB0_19
## %bb.18:
	movq	%r13, %rdi
	callq	_get_user_metafile
	testq	%rax, %rax
	je	LBB0_25
LBB0_19:
	testq	%rbx, %rbx
	je	LBB0_39
## %bb.20:
	movl	(%rbx), %eax
	andl	$7, %eax
	movq	_TF_ZERO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_22
## %bb.21:
	movq	_TF_ZERO_PRIME@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_39
LBB0_22:
	movq	%r13, %rdi
	callq	_get_user_metafile
	testq	%rax, %rax
	je	LBB0_23
LBB0_39:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%r14d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_adjust_message_internal        ## TAILCALL
LBB0_23:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_25
## %bb.24:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %r8d
	andl	$7, %r8d
	leaq	L_.str(%rip), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	callq	_fprintf
LBB0_25:
	movl	$2, %r15d
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %eax
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	orl	%r14d, %eax
	je	LBB0_38
## %bb.26:
	movl	4(%r13), %edi
	movl	%r12d, %esi
	callq	_tree_lookup
	testq	%rax, %rax
	je	LBB0_27
## %bb.31:
	movq	%rax, %rbx
	cmpl	$-1, 4(%rax)
	je	LBB0_32
## %bb.33:
	testl	%r14d, %r14d
	js	LBB0_34
## %bb.35:
	movl	%r14d, %esi
	movl	8(%rbx), %eax
	orl	%r14d, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %edi
	notl	%edi
	andl	%eax, %edi
	orl	12(%rbx), %ecx
	notl	%esi
	andl	%ecx, %esi
	callq	_COMBINE_CLEAR_SET
	cmpl	%eax, 4(%rbx)
	je	LBB0_38
## %bb.36:
	movl	%eax, 4(%rbx)
	jmp	LBB0_37
LBB0_27:
	testl	%r14d, %r14d
	js	LBB0_28
## %bb.29:
	movl	%r14d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_COMBINE_CLEAR_SET
	movslq	%eax, %r14
	jmp	LBB0_30
LBB0_32:
	xorl	%r15d, %r15d
	jmp	LBB0_38
LBB0_34:
	movl	$-1, 4(%rbx)
	jmp	LBB0_37
LBB0_28:
	movq	$-1, %r14
LBB0_30:
	movl	4(%r13), %ebx
	xorl	%eax, %eax
	callq	_lrand48
	movl	%ebx, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	movq	%r14, %rcx
	callq	_tree_insert
	movl	%eax, 4(%r13)
LBB0_37:
	movl	$3, %r15d
LBB0_38:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TF_ZERO,4,2                    ## @TF_ZERO
	.comm	_TF_ZERO_PRIME,4,2              ## @TF_ZERO_PRIME
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"warning: interesting situation for message %d:%d : have ZERO node (type=%d) in memory, no metafile loaded; creating delayed flags operation node.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adjust_message_intermediate    ; -- Begin function adjust_message_intermediate
	.p2align	2
_adjust_message_intermediate:           ; @adjust_message_intermediate
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x23, x0
	cmp	w1, #0
	cset	w0, gt
	bl	_assert
	mov	x0, x23
	bl	_get_user
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x0
	ldr	w8, [x0]
	cmp	w8, w19
	b.lt	LBB0_7
; %bb.2:
	ldr	x24, [x22, #16]
	tbnz	w21, #31, LBB0_15
LBB0_3:
	orr	w8, w20, w21
	mov	w9, #65535
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.4:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x20
	mov	w3, #1
	b	LBB0_13
LBB0_5:
	mov	x0, x23
	bl	_lookup_user_directory
	cbz	x0, LBB0_8
; %bb.6:
	mov	x24, x0
	ldr	w8, [x0]
	cmp	w8, w19
	b.ge	LBB0_14
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	cbz	w21, LBB0_11
; %bb.10:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	mov	w3, #3
	bl	_update_history
LBB0_11:
	cbz	w20, LBB0_16
; %bb.12:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x20
	mov	w3, #2
LBB0_13:
	bl	_update_history
	b	LBB0_16
LBB0_14:
	mov	x0, x23
	bl	_get_user_f
	mov	x22, x0
	tbz	w21, #31, LBB0_3
LBB0_15:
	mov	x0, x22
	mov	x1, x19
	mov	w2, #0
	mov	w3, #0
	bl	_update_history
	ldr	w0, [x22, #12]
	mov	x1, x19
	bl	_tree_delete
	str	w0, [x22, #12]
LBB0_16:
	ldr	w0, [x22, #8]
	mov	x1, x19
	bl	_tree_lookup
	mov	x25, x0
	cbnz	x0, LBB0_20
; %bb.17:
	cbz	x24, LBB0_20
; %bb.18:
	ldr	w8, [x24]
	cmp	w8, w19
	b.lt	LBB0_20
; %bb.19:
	mov	x0, x22
	bl	_get_user_metafile
	cbz	x0, LBB0_26
LBB0_20:
	cbz	x25, LBB0_23
; %bb.21:
	ldr	w8, [x25]
	and	w8, w8, #0x7
Lloh0:
	adrp	x9, _TF_ZERO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TF_ZERO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _TF_ZERO_PRIME@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TF_ZERO_PRIME@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_23
; %bb.22:
	mov	x0, x22
	bl	_get_user_metafile
	cbz	x0, LBB0_24
LBB0_23:
	mov	x0, x22
	mov	x1, x25
	mov	x2, x19
	mov	x3, x21
	mov	x4, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_adjust_message_internal
LBB0_24:
Lloh6:
	adrp	x8, _verbosity@GOTPAGE
Lloh7:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_26
; %bb.25:
Lloh9:
	adrp	x8, _stderr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w8, [x25]
	and	w4, w8, #0x7
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	mov	x3, x19
	bl	_fprintf
LBB0_26:
	orr	w8, w20, w21
	cbz	w8, LBB0_31
; %bb.27:
	ldr	w0, [x22, #4]
	mov	x1, x19
	bl	_tree_lookup
	cbz	x0, LBB0_32
; %bb.28:
	mov	x23, x0
	ldr	w8, [x0, #4]
	cmn	w8, #1
	b.eq	LBB0_7
; %bb.29:
	tbnz	w21, #31, LBB0_34
; %bb.30:
	ldp	w8, w9, [x23, #8]
	orr	w8, w8, w21
	bic	w0, w8, w20
	orr	w8, w9, w20
	bic	w1, w8, w21
	bl	_COMBINE_CLEAR_SET
	ldr	w8, [x23, #4]
	cmp	w8, w0
	b.ne	LBB0_37
LBB0_31:
	mov	w0, #2
	b	LBB0_8
LBB0_32:
	tbnz	w21, #31, LBB0_35
; %bb.33:
	mov	x0, x21
	mov	x1, x20
	bl	_COMBINE_CLEAR_SET
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x20, w0
	b	LBB0_36
LBB0_34:
	mov	w8, #-1
	str	w8, [x23, #4]
	b	LBB0_38
LBB0_35:
	mov	x20, #-1
LBB0_36:
	ldr	w21, [x22, #4]
	bl	_lrand48
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	mov	x3, x20
	bl	_tree_insert
	str	w0, [x22, #4]
	b	LBB0_38
LBB0_37:
	str	w0, [x23, #4]
LBB0_38:
	mov	w0, #3
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_TF_ZERO,4,2                    ; @TF_ZERO
	.comm	_TF_ZERO_PRIME,4,2              ; @TF_ZERO_PRIME
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"warning: interesting situation for message %d:%d : have ZERO node (type=%d) in memory, no metafile loaded; creating delayed flags operation node.\n"

.subsections_via_symbols
