	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_output_debug_string
_handle_output_debug_string:            ## @handle_output_debug_string
	.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	%rbx
	subq	$552, %rsp                      ## imm = 0x228
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_current_event@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	cmpl	$255, %eax
	movl	$255, %ebx
	cmovll	%eax, %ebx
	leaq	-288(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	movq	_current_process_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r15), %esi
	leaq	-548(%rbp), %r8
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	_read_process_memory
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	cmpb	$0, -288(%rbp)
	je	LBB0_5
## %bb.2:
	leaq	-544(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$255, %edx
	callq	_memset
	movq	_CP_ACP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-288(%rbp), %rdx
	movl	-548(%rbp), %ecx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%rbx, %r8
	movl	$254, %r9d
	callq	_WideCharToMultiByte
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movw	$0, -1(%rax)
LBB0_4:
	leaq	-544(%rbp), %rdi
	callq	_warning
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$552, %rsp                      ## imm = 0x228
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_current_event,8,2              ## @current_event
	.comm	_current_process_handle,4,2     ## @current_process_handle
	.comm	_CP_ACP,4,2                     ## @CP_ACP
	.no_dead_strip	_handle_output_debug_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_output_debug_string
_handle_output_debug_string:            ; @handle_output_debug_string
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -40
	.cfi_offset w28, -48
	sub	sp, sp, #528
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x20, _current_event@GOTPAGE
Lloh4:
	ldr	x20, [x20, _current_event@GOTPAGEOFF]
	ldr	w8, [x20]
	mov	w9, #255
	cmp	w8, #255
	csel	w19, w8, w9, lt
	add	x0, sp, #264
	mov	w1, #0
	mov	w2, #256
	bl	_memset
Lloh5:
	adrp	x8, _current_process_handle@GOTPAGE
Lloh6:
	ldr	x8, [x8, _current_process_handle@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w1, [x20, #4]
	add	x2, sp, #264
	add	x4, sp, #4
	mov	x3, x19
	bl	_read_process_memory
	ldrb	w8, [sp, #264]
	cmp	w0, #0
	ccmp	w8, #0, #4, ne
	b.eq	LBB0_4
; %bb.1:
	add	x0, sp, #9
	mov	w1, #0
	mov	w2, #255
	bl	_memset
Lloh8:
	adrp	x8, _CP_ACP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CP_ACP@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w3, [sp, #4]
	add	x2, sp, #264
	add	x4, sp, #9
	mov	w1, #0
	mov	w5, #254
	mov	x6, #0
	mov	x7, #0
	bl	_WideCharToMultiByte
	add	x0, sp, #9
	mov	w1, #10
	bl	_strchr
	cbz	x0, LBB0_3
; %bb.2:
	sturh	wzr, [x0, #-1]
LBB0_3:
	add	x0, sp, #9
	bl	_warning
LBB0_4:
	ldur	x8, [x29, #-40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	add	sp, sp, #528
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_current_event,8,2              ; @current_event
	.comm	_current_process_handle,4,2     ; @current_process_handle
	.comm	_CP_ACP,4,2                     ; @CP_ACP
	.no_dead_strip	_handle_output_debug_string
.subsections_via_symbols
