	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adjust_message                 ## -- Begin function adjust_message
	.p2align	4, 0x90
_adjust_message:                        ## @adjust_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	%esi, %r15d
	movl	%edi, %ebx
	movl	%ecx, %eax
	andl	%edx, %eax
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	movl	$-1, %r13d
	movl	$-1, %r12d
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.1:
	movzwl	%dx, %r12d
	movzwl	%cx, %r13d
	xorl	%edi, %edi
	testl	%edx, %r13d
	sete	%dil
	callq	_assert
LBB0_2:
	movl	%ebx, %edi
	callq	_conv_uid
	testl	%r15d, %r15d
	jle	LBB0_15
## %bb.3:
	testq	%rax, %rax
	js	LBB0_15
## %bb.4:
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_adjust_message_intermediate
	movl	%eax, %ecx
	andl	$1, %ecx
	orl	%ecx, %r14d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_7
## %bb.5:
	testl	%eax, %eax
	js	LBB0_15
## %bb.6:
	movq	_write_all_events@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_15
LBB0_7:
	movl	%ebx, %edi
	callq	_get_user_f
	movq	%rax, %rbx
	testl	%r12d, %r12d
	js	LBB0_8
## %bb.9:
	movl	%r12d, %eax
	orl	%r13d, %eax
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jne	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	$1, %ecx
	jmp	LBB0_14
LBB0_8:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_14
LBB0_11:
	testl	%r12d, %r12d
	je	LBB0_13
## %bb.12:
	xorl	%edi, %edi
	testl	%r13d, %r13d
	sete	%dil
	callq	_assert
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	$3, %ecx
	jmp	LBB0_14
LBB0_13:
	movl	$1, %edi
	callq	_assert
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	$2, %ecx
LBB0_14:
	callq	_update_history_persistent
LBB0_15:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_write_all_events,8,3           ## @write_all_events
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adjust_message                 ; -- Begin function adjust_message
	.p2align	2
_adjust_message:                        ; @adjust_message
	.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	x24, x4
	mov	x19, x1
	mov	x23, x0
	and	w8, w3, w2
	cmn	w8, #1
	b.eq	LBB0_2
; %bb.1:
	and	w22, w2, #0xffff
	and	w21, w3, #0xffff
	tst	w21, w2
	cset	w0, eq
	bl	_assert
	b	LBB0_3
LBB0_2:
	mov	w21, #-1
	mov	w22, #-1
LBB0_3:
	mov	x0, x23
	bl	_conv_uid
	mov	w20, #-1
	cmp	w19, #1
	b.lt	LBB0_16
; %bb.4:
	tbnz	x0, #63, LBB0_16
; %bb.5:
	mov	x0, x23
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_adjust_message_intermediate
	mov	x20, x0
	and	w8, w0, #0x1
	orr	w8, w24, w8
	cbnz	w8, LBB0_8
; %bb.6:
	tbnz	w20, #31, LBB0_16
; %bb.7:
Lloh0:
	adrp	x8, _write_all_events@GOTPAGE
Lloh1:
	ldr	x8, [x8, _write_all_events@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_16
LBB0_8:
	mov	x0, x23
	bl	_get_user_f
	mov	x23, x0
	tbnz	w22, #31, LBB0_11
; %bb.9:
	orr	w8, w22, w21
	mov	w9, #65535
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.10:
	mov	x0, x23
	mov	x1, x19
	mov	x2, x21
	mov	w3, #1
	b	LBB0_15
LBB0_11:
	mov	x0, x23
	mov	x1, x19
	mov	w2, #0
	mov	w3, #0
	b	LBB0_15
LBB0_12:
	cbz	w22, LBB0_14
; %bb.13:
	cmp	w21, #0
	cset	w0, eq
	bl	_assert
	mov	x0, x23
	mov	x1, x19
	mov	x2, x22
	mov	w3, #3
	b	LBB0_15
LBB0_14:
	mov	w0, #1
	bl	_assert
	mov	x0, x23
	mov	x1, x19
	mov	x2, x21
	mov	w3, #2
LBB0_15:
	bl	_update_history_persistent
LBB0_16:
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_write_all_events,8,3           ; @write_all_events
.subsections_via_symbols
