	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_set_color                   ## -- Begin function do_set_color
	.p2align	4, 0x90
_do_set_color:                          ## @do_set_color
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edi, %edi
	js	LBB0_4
## %bb.1:
	movl	%edx, %ebx
	testl	%edx, %edx
	jle	LBB0_4
## %bb.2:
	movq	_FN@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jle	LBB0_4
## %bb.3:
	movq	_MAX_COLOR_CNT@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jle	LBB0_4
## %bb.5:
	movl	%r8d, %r14d
	movl	%ecx, %r15d
	movq	%rsi, %r12
	movq	_LEV_LOGS_SET_COLOR@GOTPCREL(%rip), %rax
	movl	%edi, %edi
	addq	(%rax), %rdi
	movl	$24, %esi
	xorl	%edx, %edx
	callq	_alloc_log_event
	movq	%r12, (%rax)
	movl	%ebx, 8(%rax)
	movl	%r15d, 12(%rax)
	movl	%r14d, 16(%rax)
	movq	%rax, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_color                      ## TAILCALL
LBB0_4:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FN,4,2                         ## @FN
	.comm	_MAX_COLOR_CNT,4,2              ## @MAX_COLOR_CNT
	.comm	_LEV_LOGS_SET_COLOR,8,3         ## @LEV_LOGS_SET_COLOR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_set_color                   ; -- Begin function do_set_color
	.p2align	2
_do_set_color:                          ; @do_set_color
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x21, x2
	cmp	w2, #1
	b.lt	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _FN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MAX_COLOR_CNT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_COLOR_CNT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w0
	ccmp	w9, w21, #4, gt
	b.le	LBB0_4
; %bb.3:
	mov	x19, x4
	mov	x20, x3
	mov	x22, x1
Lloh6:
	adrp	x8, _LEV_LOGS_SET_COLOR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LEV_LOGS_SET_COLOR@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x0, x8, w0, uxtw
	mov	w1, #24
	mov	w2, #0
	bl	_alloc_log_event
	str	x22, [x0]
	stp	w21, w20, [x0, #8]
	str	w19, [x0, #16]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_set_color
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FN,4,2                         ; @FN
	.comm	_MAX_COLOR_CNT,4,2              ; @MAX_COLOR_CNT
	.comm	_LEV_LOGS_SET_COLOR,8,3         ; @LEV_LOGS_SET_COLOR
.subsections_via_symbols
