	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_set_flags                   ## -- Begin function do_set_flags
	.p2align	4, 0x90
_do_set_flags:                          ## @do_set_flags
	.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	%edx, %r12d
	movl	%esi, %r14d
	movl	%edi, %r15d
	movq	_verbosity@GOTPCREL(%rip), %r13
	cmpl	$2, (%r13)
	jl	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_fprintf
LBB0_2:
	movl	$-1, %ebx
	cmpl	$65535, %r12d                   ## imm = 0xFFFF
	ja	LBB0_13
## %bb.3:
	movl	%r12d, %edx
	notl	%edx
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	callq	_adjust_message
	movl	%eax, %ebx
	cmpl	$2, (%r13)
	jl	LBB0_5
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_5:
	testl	%ebx, %ebx
	js	LBB0_13
## %bb.6:
	testb	$1, %bl
	jne	LBB0_8
## %bb.7:
	movq	_write_all_events@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
LBB0_8:
	cmpl	$256, %r12d                     ## imm = 0x100
	jae	LBB0_9
## %bb.10:
	movq	_LEV_TX_SET_MESSAGE_FLAGS@GOTPCREL(%rip), %rax
	movl	%r12d, %edi
	addq	(%rax), %rdi
	movl	$4, %esi
	movl	%r15d, %edx
	callq	_alloc_log_event
	movl	%r14d, %r12d
	jmp	LBB0_11
LBB0_9:
	movq	_LEV_TX_SET_MESSAGE_FLAGS_LONG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	$8, %esi
	movl	%r15d, %edx
	callq	_alloc_log_event
	movl	%r14d, (%rax)
	addq	$4, %rax
LBB0_11:
	movl	%r12d, (%rax)
LBB0_12:
	xorl	%eax, %eax
	testl	%ebx, %ebx
	setne	%al
	movl	%eax, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"do_set_flags(%d,%d,%d):\n"

L_.str.1:                               ## @.str.1
	.asciz	"adjust_message returned %d\n"

	.comm	_write_all_events,8,3           ## @write_all_events
	.comm	_LEV_TX_SET_MESSAGE_FLAGS_LONG,8,3 ## @LEV_TX_SET_MESSAGE_FLAGS_LONG
	.comm	_LEV_TX_SET_MESSAGE_FLAGS,8,3   ## @LEV_TX_SET_MESSAGE_FLAGS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_set_flags                   ; -- Begin function do_set_flags
	.p2align	2
_do_set_flags:                          ; @do_set_flags
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _verbosity@GOTPAGE
Lloh1:
	ldr	x23, [x23, _verbosity@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	stp	x19, x20, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_fprintf
LBB0_2:
	lsr	w8, w20, #16
	cbnz	w8, LBB0_10
; %bb.3:
	mvn	w2, w20
	mov	x0, x21
	mov	x1, x19
	mov	x3, x20
	mov	w4, #0
	bl	_adjust_message
	mov	x22, x0
	ldr	w8, [x23]
	cmp	w8, #2
	b.lt	LBB0_5
; %bb.4:
Lloh7:
	adrp	x8, _stderr@GOTPAGE
Lloh8:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_fprintf
LBB0_5:
	tbnz	w22, #31, LBB0_14
; %bb.6:
	tbnz	w22, #0, LBB0_8
; %bb.7:
Lloh12:
	adrp	x8, _write_all_events@GOTPAGE
Lloh13:
	ldr	x8, [x8, _write_all_events@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cbz	x8, LBB0_13
LBB0_8:
	cmp	w20, #256
	b.hs	LBB0_11
; %bb.9:
Lloh15:
	adrp	x8, _LEV_TX_SET_MESSAGE_FLAGS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LEV_TX_SET_MESSAGE_FLAGS@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	add	x0, x8, w20, uxtw
	mov	w1, #4
	mov	x2, x21
	bl	_alloc_log_event
	mov	x20, x19
	b	LBB0_12
LBB0_10:
	mov	w22, #-1
	b	LBB0_14
LBB0_11:
Lloh18:
	adrp	x8, _LEV_TX_SET_MESSAGE_FLAGS_LONG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LEV_TX_SET_MESSAGE_FLAGS_LONG@GOTPAGEOFF]
Lloh20:
	ldr	x0, [x8]
	mov	w1, #8
	mov	x2, x21
	bl	_alloc_log_event
	str	w19, [x0], #4
LBB0_12:
	str	w20, [x0]
LBB0_13:
	cmp	w22, #0
	cset	w22, ne
LBB0_14:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"do_set_flags(%d,%d,%d):\n"

l_.str.1:                               ; @.str.1
	.asciz	"adjust_message returned %d\n"

	.comm	_write_all_events,8,3           ; @write_all_events
	.comm	_LEV_TX_SET_MESSAGE_FLAGS_LONG,8,3 ; @LEV_TX_SET_MESSAGE_FLAGS_LONG
	.comm	_LEV_TX_SET_MESSAGE_FLAGS,8,3   ; @LEV_TX_SET_MESSAGE_FLAGS
.subsections_via_symbols
