	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_child_debug_event
_get_child_debug_event:                 ## @get_child_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	_TARGET_SIGNAL_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_last_sig@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_current_event@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_WaitForDebugEvent
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	_event_count@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_DBG_CONTINUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%r15), %eax
	movq	_TARGET_WAITKIND_SPURIOUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%r12)
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_6
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	leaq	L_.str.9(%rip), %rdi
	callq	_DEBUG_EVENTS
	movq	_saw_create@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	$1, (%rax)
	jne	LBB0_39
## %bb.4:
	movq	_handle_unload_dll@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RETURN_MASK_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.8(%rip), %rdx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_catch_errors
	xorl	%eax, %eax
	callq	_registers_changed
	jmp	LBB0_39
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_40
LBB0_6:
	movq	_saw_create@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	$1, (%rax)
	jne	LBB0_39
## %bb.7:
	movl	4(%r15), %edx
	movl	8(%r15), %esi
	leaq	L_.str.12(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_printf_unfiltered
	movl	(%r15), %esi
	leaq	L_.str.13(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf_unfiltered
	jmp	LBB0_39
LBB0_8:
	leaq	L_.str.11(%rip), %rdi
	callq	_DEBUG_EVENTS
	movq	_saw_create@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	$1, (%rax)
	jne	LBB0_39
## %bb.9:
	movq	%r12, %rdi
	callq	_handle_output_debug_string
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_21
## %bb.10:
	movq	_main_thread_id@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_21
LBB0_12:
	leaq	L_.str.7(%rip), %rdi
	callq	_DEBUG_EVENTS
	movl	12(%r15), %edi
	callq	_CloseHandle
	movq	_saw_create@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	$1, (%rax)
	jne	LBB0_39
## %bb.13:
	movq	_handle_load_dll@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RETURN_MASK_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.8(%rip), %rdx
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	callq	_catch_errors
	xorl	%eax, %eax
	callq	_registers_changed
	movq	_TARGET_WAITKIND_LOADED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movl	$0, 4(%r12)
	movq	_main_thread_id@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_re_enable_breakpoints_in_shlibs
	jmp	LBB0_34
LBB0_14:
	leaq	L_.str.4(%rip), %rdi
	callq	_DEBUG_EVENTS
	movl	4(%r15), %edi
	movq	_main_thread_id@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	(%rax), %edi
	je	LBB0_39
## %bb.15:
	callq	_child_delete_thread
	jmp	LBB0_39
LBB0_16:
	leaq	L_.str.6(%rip), %rdi
	callq	_DEBUG_EVENTS
	movq	_saw_create@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	$1, (%rax)
	jne	LBB0_39
## %bb.17:
	movq	_TARGET_WAITKIND_EXITED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movl	16(%r15), %eax
	movl	%eax, 4(%r12)
	movq	_current_process_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CloseHandle
	movq	_main_thread_id@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_34
LBB0_18:
	leaq	L_.str.10(%rip), %rdi
	callq	_DEBUG_EVENTS
	movq	_saw_create@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	$1, (%rax)
	jne	LBB0_39
## %bb.19:
	movq	%r12, %rdi
	callq	_handle_exception
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movl	4(%r15), %ebx
LBB0_21:
	xorl	%r13d, %r13d
	jmp	LBB0_34
LBB0_22:
	leaq	L_.str.1(%rip), %rdi
	callq	_DEBUG_EVENTS
	movq	_saw_create@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	jne	LBB0_28
## %bb.23:
	movl	4(%r15), %edi
	movl	32(%r15), %esi
	callq	_child_add_thread
	movq	%rax, %r13
	movq	_info_verbose@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_25
## %bb.24:
	movl	4(%r15), %edi
	callq	_pid_to_ptid
	movl	%eax, %edi
	callq	_target_pid_to_str
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf_unfiltered
LBB0_25:
	movl	4(%r15), %ebx
	jmp	LBB0_34
LBB0_26:
	leaq	L_.str.5(%rip), %rdi
	callq	_DEBUG_EVENTS
	movl	28(%r15), %edi
	callq	_CloseHandle
	movq	_saw_create@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	movl	24(%r15), %edi
	testl	%ecx, %ecx
	je	LBB0_31
## %bb.27:
	callq	_CloseHandle
	xorl	%ebx, %ebx
	jmp	LBB0_39
LBB0_28:
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_39
## %bb.29:
	movq	_attach_flag@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_39
## %bb.30:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_fake_create_process
	movl	%eax, %ebx
	movl	%eax, (%r12)
	movq	_saw_create@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_34
LBB0_31:
	movq	_current_process_handle@GOTPCREL(%rip), %rax
	movl	%edi, (%rax)
	movq	_main_thread_id@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_33
## %bb.32:
	callq	_child_delete_thread
LBB0_33:
	movl	4(%r15), %edi
	movl	20(%r15), %esi
	movl	%edi, (%rbx)
	callq	_child_add_thread
	movq	%rax, %r13
	movl	4(%r15), %ebx
	movl	%ebx, (%r12)
LBB0_34:
	testl	%ebx, %ebx
	je	LBB0_39
## %bb.35:
	movq	_saw_create@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	jne	LBB0_39
## %bb.36:
	movl	%ebx, %edi
	callq	_pid_to_ptid
	movq	_inferior_ptid@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testq	%r13, %r13
	jne	LBB0_38
## %bb.37:
	movl	4(%r15), %edi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_thread_rec
	movslq	%eax, %r13
LBB0_38:
	movq	_current_thread@GOTPCREL(%rip), %rax
	movl	%r13d, (%rax)
	jmp	LBB0_40
LBB0_39:
	movl	%r14d, %edi
	movl	$-1, %esi
	callq	_child_continue
	movl	%eax, %edi
	callq	_CHECK
LBB0_40:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_8
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_16
	.long	L0_0_set_18
	.long	L0_0_set_22
	.long	L0_0_set_26
	.end_data_region
                                        ## -- End function
	.comm	_TARGET_SIGNAL_0,4,2            ## @TARGET_SIGNAL_0
	.comm	_last_sig,4,2                   ## @last_sig
	.comm	_current_event,36,2             ## @current_event
	.comm	_event_count,4,2                ## @event_count
	.comm	_DBG_CONTINUE,4,2               ## @DBG_CONTINUE
	.comm	_TARGET_WAITKIND_SPURIOUS,4,2   ## @TARGET_WAITKIND_SPURIOUS
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"CREATE_THREAD_DEBUG_EVENT"

	.comm	_saw_create,4,2                 ## @saw_create
	.comm	_attach_flag,4,2                ## @attach_flag
	.comm	_info_verbose,4,2               ## @info_verbose
L_.str.2:                               ## @.str.2
	.asciz	"[New %s]\n"

L_.str.4:                               ## @.str.4
	.asciz	"EXIT_THREAD_DEBUG_EVENT"

	.comm	_main_thread_id,4,2             ## @main_thread_id
L_.str.5:                               ## @.str.5
	.asciz	"CREATE_PROCESS_DEBUG_EVENT"

	.comm	_current_process_handle,4,2     ## @current_process_handle
L_.str.6:                               ## @.str.6
	.asciz	"EXIT_PROCESS_DEBUG_EVENT"

	.comm	_TARGET_WAITKIND_EXITED,4,2     ## @TARGET_WAITKIND_EXITED
L_.str.7:                               ## @.str.7
	.asciz	"LOAD_DLL_DEBUG_EVENT"

	.comm	_handle_load_dll,4,2            ## @handle_load_dll
L_.str.8:                               ## @.str.8
	.space	1

	.comm	_RETURN_MASK_ALL,4,2            ## @RETURN_MASK_ALL
	.comm	_TARGET_WAITKIND_LOADED,4,2     ## @TARGET_WAITKIND_LOADED
L_.str.9:                               ## @.str.9
	.asciz	"UNLOAD_DLL_DEBUG_EVENT"

	.comm	_handle_unload_dll,4,2          ## @handle_unload_dll
L_.str.10:                              ## @.str.10
	.asciz	"EXCEPTION_DEBUG_EVENT"

L_.str.11:                              ## @.str.11
	.asciz	"OUTPUT_DEBUG_STRING_EVENT"

L_.str.12:                              ## @.str.12
	.asciz	"gdb: kernel event for pid=%ld tid=%ld\n"

L_.str.13:                              ## @.str.13
	.asciz	"                 unknown event code %ld\n"

	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_current_thread,4,2             ## @current_thread
	.no_dead_strip	_get_child_debug_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_child_debug_event
_get_child_debug_event:                 ; @get_child_debug_event
	.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	x21, x1
Lloh0:
	adrp	x8, _TARGET_SIGNAL_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TARGET_SIGNAL_0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _last_sig@GOTPAGE
Lloh4:
	ldr	x9, [x9, _last_sig@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
Lloh6:
	adrp	x20, _current_event@GOTPAGE
Lloh7:
	ldr	x20, [x20, _current_event@GOTPAGEOFF]
	mov	x0, x20
	mov	w1, #1000
	bl	_WaitForDebugEvent
	cbz	w0, LBB0_5
; %bb.1:
Lloh8:
	adrp	x8, _event_count@GOTPAGE
Lloh9:
	ldr	x8, [x8, _event_count@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh10:
	adrp	x8, _DBG_CONTINUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DBG_CONTINUE@GOTPAGEOFF]
Lloh12:
	ldr	w19, [x8]
	ldr	w8, [x20]
Lloh13:
	adrp	x9, _TARGET_WAITKIND_SPURIOUS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TARGET_WAITKIND_SPURIOUS@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	str	w9, [x21, #8]
	sub	w8, w8, #128
	cmp	w8, #7
	b.hi	LBB0_6
; %bb.2:
Lloh16:
	adrp	x9, lJTI0_0@PAGE
Lloh17:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh18:
	adrp	x0, l_.str.9@PAGE
Lloh19:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_DEBUG_EVENTS
Lloh20:
	adrp	x8, _saw_create@GOTPAGE
Lloh21:
	ldr	x8, [x8, _saw_create@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_25
; %bb.4:
Lloh23:
	adrp	x8, _handle_unload_dll@GOTPAGE
Lloh24:
	ldr	x8, [x8, _handle_unload_dll@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x8, _RETURN_MASK_ALL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RETURN_MASK_ALL@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
Lloh29:
	adrp	x2, l_.str.8@PAGE
Lloh30:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x1, #0
	bl	_catch_errors
	bl	_registers_changed
	b	LBB0_25
LBB0_5:
	mov	w22, #0
	b	LBB0_27
LBB0_6:
Lloh31:
	adrp	x8, _saw_create@GOTPAGE
Lloh32:
	ldr	x8, [x8, _saw_create@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_25
; %bb.7:
	ldp	w8, w1, [x20, #4]
	str	x8, [sp]
Lloh34:
	adrp	x0, l_.str.12@PAGE
Lloh35:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_printf_unfiltered
	ldr	w1, [x20]
Lloh36:
	adrp	x0, l_.str.13@PAGE
Lloh37:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_printf_unfiltered
	b	LBB0_25
LBB0_8:
Lloh38:
	adrp	x0, l_.str.11@PAGE
Lloh39:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_DEBUG_EVENTS
Lloh40:
	adrp	x8, _saw_create@GOTPAGE
Lloh41:
	ldr	x8, [x8, _saw_create@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_25
; %bb.9:
	mov	x0, x21
	bl	_handle_output_debug_string
	mov	x23, #0
Lloh43:
	adrp	x8, _main_thread_id@GOTPAGE
Lloh44:
	ldr	x8, [x8, _main_thread_id@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	b	LBB0_18
LBB0_10:
Lloh46:
	adrp	x0, l_.str.7@PAGE
Lloh47:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_DEBUG_EVENTS
	ldr	w0, [x20, #12]
	bl	_CloseHandle
Lloh48:
	adrp	x8, _saw_create@GOTPAGE
Lloh49:
	ldr	x8, [x8, _saw_create@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_25
; %bb.11:
Lloh51:
	adrp	x8, _handle_load_dll@GOTPAGE
Lloh52:
	ldr	x8, [x8, _handle_load_dll@GOTPAGEOFF]
Lloh53:
	ldr	w0, [x8]
Lloh54:
	adrp	x8, _RETURN_MASK_ALL@GOTPAGE
Lloh55:
	ldr	x8, [x8, _RETURN_MASK_ALL@GOTPAGEOFF]
Lloh56:
	ldr	w3, [x8]
Lloh57:
	adrp	x2, l_.str.8@PAGE
Lloh58:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x1, #0
	bl	_catch_errors
	bl	_registers_changed
Lloh59:
	adrp	x8, _TARGET_WAITKIND_LOADED@GOTPAGE
Lloh60:
	ldr	x8, [x8, _TARGET_WAITKIND_LOADED@GOTPAGEOFF]
Lloh61:
	ldr	w8, [x8]
	stp	wzr, w8, [x21, #4]
Lloh62:
	adrp	x8, _main_thread_id@GOTPAGE
Lloh63:
	ldr	x8, [x8, _main_thread_id@GOTPAGEOFF]
Lloh64:
	ldr	w22, [x8]
	bl	_re_enable_breakpoints_in_shlibs
	mov	x23, #0
	b	LBB0_34
LBB0_12:
Lloh65:
	adrp	x0, l_.str.4@PAGE
Lloh66:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DEBUG_EVENTS
	ldr	w0, [x20, #4]
Lloh67:
	adrp	x8, _main_thread_id@GOTPAGE
Lloh68:
	ldr	x8, [x8, _main_thread_id@GOTPAGEOFF]
Lloh69:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_25
; %bb.13:
	bl	_child_delete_thread
	b	LBB0_25
LBB0_14:
Lloh70:
	adrp	x0, l_.str.6@PAGE
Lloh71:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_DEBUG_EVENTS
Lloh72:
	adrp	x8, _saw_create@GOTPAGE
Lloh73:
	ldr	x8, [x8, _saw_create@GOTPAGEOFF]
Lloh74:
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_25
; %bb.15:
Lloh75:
	adrp	x8, _TARGET_WAITKIND_EXITED@GOTPAGE
Lloh76:
	ldr	x8, [x8, _TARGET_WAITKIND_EXITED@GOTPAGEOFF]
Lloh77:
	ldr	w8, [x8]
	ldr	w9, [x20, #16]
	stp	w9, w8, [x21, #4]
Lloh78:
	adrp	x8, _current_process_handle@GOTPAGE
Lloh79:
	ldr	x8, [x8, _current_process_handle@GOTPAGEOFF]
Lloh80:
	ldr	w0, [x8]
	bl	_CloseHandle
	mov	x23, #0
Lloh81:
	adrp	x8, _main_thread_id@GOTPAGE
Lloh82:
	ldr	x8, [x8, _main_thread_id@GOTPAGEOFF]
Lloh83:
	ldr	w22, [x8]
	b	LBB0_34
LBB0_16:
Lloh84:
	adrp	x0, l_.str.10@PAGE
Lloh85:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_DEBUG_EVENTS
Lloh86:
	adrp	x8, _saw_create@GOTPAGE
Lloh87:
	ldr	x8, [x8, _saw_create@GOTPAGEOFF]
Lloh88:
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_25
; %bb.17:
	mov	x0, x21
	bl	_handle_exception
	mov	x23, #0
	ldr	w8, [x20, #4]
LBB0_18:
	cmp	w0, #0
	csel	w22, wzr, w8, eq
	b	LBB0_34
LBB0_19:
Lloh89:
	adrp	x0, l_.str.1@PAGE
Lloh90:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DEBUG_EVENTS
Lloh91:
	adrp	x24, _saw_create@GOTPAGE
Lloh92:
	ldr	x24, [x24, _saw_create@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.ne	LBB0_28
; %bb.20:
	ldr	w0, [x20, #4]
	ldr	w1, [x20, #32]
	bl	_child_add_thread
	mov	x23, x0
Lloh93:
	adrp	x8, _info_verbose@GOTPAGE
Lloh94:
	ldr	x8, [x8, _info_verbose@GOTPAGEOFF]
Lloh95:
	ldr	w8, [x8]
	cbz	w8, LBB0_22
; %bb.21:
	ldr	w0, [x20, #4]
	bl	_pid_to_ptid
	bl	_target_pid_to_str
	mov	x1, x0
Lloh96:
	adrp	x0, l_.str.2@PAGE
Lloh97:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf_unfiltered
LBB0_22:
	ldr	w22, [x20, #4]
	b	LBB0_34
LBB0_23:
Lloh98:
	adrp	x0, l_.str.5@PAGE
Lloh99:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DEBUG_EVENTS
	ldr	w0, [x20, #28]
	bl	_CloseHandle
Lloh100:
	adrp	x8, _saw_create@GOTPAGE
Lloh101:
	ldr	x8, [x8, _saw_create@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w10, w9, #1
	str	w10, [x8]
	ldr	w0, [x20, #24]
	cbz	w9, LBB0_31
; %bb.24:
	bl	_CloseHandle
LBB0_25:
	mov	w22, #0
LBB0_26:
	mov	x0, x19
	mov	w1, #-1
	bl	_child_continue
	bl	_CHECK
LBB0_27:
	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
LBB0_28:
	mov	w22, #0
	cbnz	w8, LBB0_26
; %bb.29:
Lloh102:
	adrp	x8, _attach_flag@GOTPAGE
Lloh103:
	ldr	x8, [x8, _attach_flag@GOTPAGEOFF]
Lloh104:
	ldr	w8, [x8]
	cbz	w8, LBB0_26
; %bb.30:
	bl	_fake_create_process
	mov	x22, x0
	mov	x23, #0
	str	w0, [x21]
	ldr	w8, [x24]
	add	w8, w8, #1
	str	w8, [x24]
	b	LBB0_34
LBB0_31:
Lloh105:
	adrp	x8, _current_process_handle@GOTPAGE
Lloh106:
	ldr	x8, [x8, _current_process_handle@GOTPAGEOFF]
Lloh107:
	str	w0, [x8]
Lloh108:
	adrp	x22, _main_thread_id@GOTPAGE
Lloh109:
	ldr	x22, [x22, _main_thread_id@GOTPAGEOFF]
	ldr	w0, [x22]
	cbz	w0, LBB0_33
; %bb.32:
	bl	_child_delete_thread
LBB0_33:
	ldr	w0, [x20, #4]
	str	w0, [x22]
	ldr	w1, [x20, #20]
	bl	_child_add_thread
	mov	x23, x0
	ldr	w22, [x20, #4]
	str	w22, [x21]
LBB0_34:
	cbz	w22, LBB0_26
; %bb.35:
Lloh110:
	adrp	x8, _saw_create@GOTPAGE
Lloh111:
	ldr	x8, [x8, _saw_create@GOTPAGEOFF]
Lloh112:
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_26
; %bb.36:
	mov	x0, x22
	bl	_pid_to_ptid
Lloh113:
	adrp	x8, _inferior_ptid@GOTPAGE
Lloh114:
	ldr	x8, [x8, _inferior_ptid@GOTPAGEOFF]
Lloh115:
	str	w0, [x8]
	cbnz	x23, LBB0_38
; %bb.37:
	ldr	w0, [x20, #4]
Lloh116:
	adrp	x8, _TRUE@GOTPAGE
Lloh117:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh118:
	ldr	w1, [x8]
	bl	_thread_rec
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x23, w0
LBB0_38:
Lloh119:
	adrp	x8, _current_thread@GOTPAGE
Lloh120:
	ldr	x8, [x8, _current_thread@GOTPAGEOFF]
Lloh121:
	str	w23, [x8]
	b	LBB0_27
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpLdrGot	Lloh91, Lloh92
	.loh AdrpAdd	Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpAdd	Lloh96, Lloh97
	.loh AdrpLdrGot	Lloh100, Lloh101
	.loh AdrpAdd	Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGot	Lloh108, Lloh109
	.loh AdrpLdrGotStr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotStr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh116, Lloh117, Lloh118
	.loh AdrpLdrGotStr	Lloh119, Lloh120, Lloh121
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_19-LBB0_3)>>2
	.byte	(LBB0_23-LBB0_3)>>2
                                        ; -- End function
	.comm	_TARGET_SIGNAL_0,4,2            ; @TARGET_SIGNAL_0
	.comm	_last_sig,4,2                   ; @last_sig
	.comm	_current_event,36,2             ; @current_event
	.comm	_event_count,4,2                ; @event_count
	.comm	_DBG_CONTINUE,4,2               ; @DBG_CONTINUE
	.comm	_TARGET_WAITKIND_SPURIOUS,4,2   ; @TARGET_WAITKIND_SPURIOUS
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"CREATE_THREAD_DEBUG_EVENT"

	.comm	_saw_create,4,2                 ; @saw_create
	.comm	_attach_flag,4,2                ; @attach_flag
	.comm	_info_verbose,4,2               ; @info_verbose
l_.str.2:                               ; @.str.2
	.asciz	"[New %s]\n"

l_.str.4:                               ; @.str.4
	.asciz	"EXIT_THREAD_DEBUG_EVENT"

	.comm	_main_thread_id,4,2             ; @main_thread_id
l_.str.5:                               ; @.str.5
	.asciz	"CREATE_PROCESS_DEBUG_EVENT"

	.comm	_current_process_handle,4,2     ; @current_process_handle
l_.str.6:                               ; @.str.6
	.asciz	"EXIT_PROCESS_DEBUG_EVENT"

	.comm	_TARGET_WAITKIND_EXITED,4,2     ; @TARGET_WAITKIND_EXITED
l_.str.7:                               ; @.str.7
	.asciz	"LOAD_DLL_DEBUG_EVENT"

	.comm	_handle_load_dll,4,2            ; @handle_load_dll
l_.str.8:                               ; @.str.8
	.space	1

	.comm	_RETURN_MASK_ALL,4,2            ; @RETURN_MASK_ALL
	.comm	_TARGET_WAITKIND_LOADED,4,2     ; @TARGET_WAITKIND_LOADED
l_.str.9:                               ; @.str.9
	.asciz	"UNLOAD_DLL_DEBUG_EVENT"

	.comm	_handle_unload_dll,4,2          ; @handle_unload_dll
l_.str.10:                              ; @.str.10
	.asciz	"EXCEPTION_DEBUG_EVENT"

l_.str.11:                              ; @.str.11
	.asciz	"OUTPUT_DEBUG_STRING_EVENT"

l_.str.12:                              ; @.str.12
	.asciz	"gdb: kernel event for pid=%ld tid=%ld\n"

l_.str.13:                              ; @.str.13
	.asciz	"                 unknown event code %ld\n"

	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_current_thread,4,2             ; @current_thread
	.no_dead_strip	_get_child_debug_event
.subsections_via_symbols
