	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wait_for_debug_event
_wait_for_debug_event:                  ## @wait_for_debug_event
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %esi
	movq	_GDB_WAITFORDEBUGEVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	l_.str(%rip), %rdi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_getdword
	movl	%eax, %r12d
	leaq	-64(%rbp), %rdi
	movl	%eax, %esi
	callq	_WaitForDebugEvent
	movl	%eax, %ebx
	movq	-64(%rbp), %rax
	movq	_OUTPUT_DEBUG_STRING_EVENT@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_6
## %bb.1:
	leaq	-64(%rbp), %r15
	movq	_DBG_CONTINUE@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	decl	%eax
	movl	%eax, _wait_for_debug_event.skip_next(%rip)
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-56(%rbp), %esi
	movl	-52(%rbp), %edi
	movl	(%r14), %edx
	callq	_ContinueDebugEvent
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_WaitForDebugEvent
	movl	%eax, %ebx
	movq	-64(%rbp), %rax
	cmpq	(%r13), %rax
	jne	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	_wait_for_debug_event.skip_next(%rip), %eax
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_skip_message
	movl	%eax, _wait_for_debug_event.skip_next(%rip)
	testl	%eax, %eax
	jne	LBB0_5
LBB0_6:
	movq	_GDB_WAITFORDEBUGEVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	l_.str.1(%rip), %rdi
	leaq	-64(%rbp), %r8
	movl	%ebx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	$16, %r9d
	callq	_putresult
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.long	87                              ## 0x57
	.long	97                              ## 0x61
	.long	105                             ## 0x69
	.long	116                             ## 0x74
	.long	70                              ## 0x46
	.long	111                             ## 0x6f
	.long	114                             ## 0x72
	.long	68                              ## 0x44
	.long	101                             ## 0x65
	.long	98                              ## 0x62
	.long	117                             ## 0x75
	.long	103                             ## 0x67
	.long	69                              ## 0x45
	.long	118                             ## 0x76
	.long	101                             ## 0x65
	.long	110                             ## 0x6e
	.long	116                             ## 0x74
	.long	32                              ## 0x20
	.long	109                             ## 0x6d
	.long	115                             ## 0x73
	.long	0                               ## 0x0

	.comm	_GDB_WAITFORDEBUGEVENT,4,2      ## @GDB_WAITFORDEBUGEVENT
.zerofill __DATA,__bss,_wait_for_debug_event.skip_next,4,2 ## @wait_for_debug_event.skip_next
	.comm	_OUTPUT_DEBUG_STRING_EVENT,8,3  ## @OUTPUT_DEBUG_STRING_EVENT
	.p2align	2                               ## @.str.1
l_.str.1:
	.long	87                              ## 0x57
	.long	97                              ## 0x61
	.long	105                             ## 0x69
	.long	116                             ## 0x74
	.long	70                              ## 0x46
	.long	111                             ## 0x6f
	.long	114                             ## 0x72
	.long	68                              ## 0x44
	.long	101                             ## 0x65
	.long	98                              ## 0x62
	.long	117                             ## 0x75
	.long	103                             ## 0x67
	.long	69                              ## 0x45
	.long	118                             ## 0x76
	.long	101                             ## 0x65
	.long	110                             ## 0x6e
	.long	116                             ## 0x74
	.long	32                              ## 0x20
	.long	101                             ## 0x65
	.long	118                             ## 0x76
	.long	101                             ## 0x65
	.long	110                             ## 0x6e
	.long	116                             ## 0x74
	.long	0                               ## 0x0

	.comm	_DBG_CONTINUE,4,2               ## @DBG_CONTINUE
	.no_dead_strip	_wait_for_debug_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wait_for_debug_event
_wait_for_debug_event:                  ; @wait_for_debug_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
Lloh0:
	adrp	x22, _GDB_WAITFORDEBUGEVENT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GDB_WAITFORDEBUGEVENT@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_getdword
	mov	x20, x0
	mov	x0, sp
	mov	x1, x20
	bl	_WaitForDebugEvent
	mov	x21, x0
	ldr	x8, [sp]
Lloh4:
	adrp	x23, _OUTPUT_DEBUG_STRING_EVENT@GOTPAGE
Lloh5:
	ldr	x23, [x23, _OUTPUT_DEBUG_STRING_EVENT@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	adrp	x24, _wait_for_debug_event.skip_next@PAGE
Lloh6:
	adrp	x25, _DBG_CONTINUE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _DBG_CONTINUE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w8, #1
	str	w8, [x24, _wait_for_debug_event.skip_next@PAGEOFF]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	w1, w0, [sp, #8]
	ldr	w2, [x25]
	bl	_ContinueDebugEvent
	mov	x0, sp
	mov	x1, x20
	bl	_WaitForDebugEvent
	mov	x21, x0
	ldr	x8, [sp]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24, _wait_for_debug_event.skip_next@PAGEOFF]
	cbnz	w8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, sp
	bl	_skip_message
	str	w0, [x24, _wait_for_debug_event.skip_next@PAGEOFF]
	cbnz	w0, LBB0_3
LBB0_6:
	ldr	w3, [x22]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x4, sp
	mov	x1, x21
	mov	x2, x19
	mov	w5, #16
	bl	_putresult
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.long	87                              ; 0x57
	.long	97                              ; 0x61
	.long	105                             ; 0x69
	.long	116                             ; 0x74
	.long	70                              ; 0x46
	.long	111                             ; 0x6f
	.long	114                             ; 0x72
	.long	68                              ; 0x44
	.long	101                             ; 0x65
	.long	98                              ; 0x62
	.long	117                             ; 0x75
	.long	103                             ; 0x67
	.long	69                              ; 0x45
	.long	118                             ; 0x76
	.long	101                             ; 0x65
	.long	110                             ; 0x6e
	.long	116                             ; 0x74
	.long	32                              ; 0x20
	.long	109                             ; 0x6d
	.long	115                             ; 0x73
	.long	0                               ; 0x0

	.comm	_GDB_WAITFORDEBUGEVENT,4,2      ; @GDB_WAITFORDEBUGEVENT
.zerofill __DATA,__bss,_wait_for_debug_event.skip_next,4,2 ; @wait_for_debug_event.skip_next
	.comm	_OUTPUT_DEBUG_STRING_EVENT,8,3  ; @OUTPUT_DEBUG_STRING_EVENT
	.p2align	2                               ; @.str.1
l_.str.1:
	.long	87                              ; 0x57
	.long	97                              ; 0x61
	.long	105                             ; 0x69
	.long	116                             ; 0x74
	.long	70                              ; 0x46
	.long	111                             ; 0x6f
	.long	114                             ; 0x72
	.long	68                              ; 0x44
	.long	101                             ; 0x65
	.long	98                              ; 0x62
	.long	117                             ; 0x75
	.long	103                             ; 0x67
	.long	69                              ; 0x45
	.long	118                             ; 0x76
	.long	101                             ; 0x65
	.long	110                             ; 0x6e
	.long	116                             ; 0x74
	.long	32                              ; 0x20
	.long	101                             ; 0x65
	.long	118                             ; 0x76
	.long	101                             ; 0x65
	.long	110                             ; 0x6e
	.long	116                             ; 0x74
	.long	0                               ; 0x0

	.comm	_DBG_CONTINUE,4,2               ; @DBG_CONTINUE
	.no_dead_strip	_wait_for_debug_event
.subsections_via_symbols
