	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fbsd_wait_for_event
_fbsd_wait_for_event:                   ## @fbsd_wait_for_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
	movq	%rdi, %r14
	testq	%rdi, %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.4:
	movq	%r14, %rdi
	callq	_get_thread_process
	movq	%rax, -48(%rbp)
	cmpq	$0, 56(%rax)
	je	LBB0_7
## %bb.5:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_check_removed_breakpoint
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	$0, -48(%rbp)
	jmp	LBB0_7
LBB0_1:
	movq	_status_pending_p@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_all_processes@GOTPCREL(%rip), %rdi
	xorl	%edx, %edx
	callq	_find_inferior
	movq	%rax, %rbx
	movq	%rax, -48(%rbp)
	movq	_debug_threads@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.2:
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_10
LBB0_9:
	testq	%rbx, %rbx
	je	LBB0_7
LBB0_10:
	cmpq	$0, 56(%rbx)
	je	LBB0_7
## %bb.11:
	movq	_debug_threads@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.12:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	movl	4(%rbx), %ecx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_13:
	movl	4(%rbx), %eax
	movl	%eax, -52(%rbp)
	movq	$0, 56(%rbx)
	movl	$0, 4(%rbx)
	movq	%rbx, %rdi
	callq	_get_process_thread
	movq	_current_inferior@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_54:
	movl	-52(%rbp), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	testq	%r14, %r14
	je	LBB0_8
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	callq	_get_thread_process
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	-48(%rbp), %r15
	leaq	-52(%rbp), %r13
	movq	_all_threads@GOTPCREL(%rip), %rbx
	movq	_current_inferior@GOTPCREL(%rip), %r14
	movq	_using_threads@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rax, -48(%rbp)
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_fbsd_wait_for_process
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	leaq	L_.str.2(%rip), %rdi
	callq	_error
	movq	-48(%rbp), %rax
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=2
	movl	8(%rax), %esi
	movq	%rbx, %rdi
	callq	_find_inferior_id
	movq	%rax, (%r14)
	cmpq	$0, (%r12)
	je	LBB0_34
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=2
	movl	-52(%rbp), %edi
	callq	_WIFSTOPPED
	testq	%rax, %rax
	jne	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	_debug_threads@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rax
	movl	8(%rax), %edx
	movl	40(%rax), %ecx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=2
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	je	LBB0_54
## %bb.23:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	-48(%rbp), %rax
	movl	8(%rax), %edi
	callq	_dead_thread_notify
	movq	-48(%rbp), %rsi
	addq	$40, %rsi
	movq	_all_processes@GOTPCREL(%rip), %rdi
	callq	_remove_inferior
	movq	-48(%rbp), %rdi
	callq	_free
	movq	(%r14), %rdi
	callq	_remove_thread
	movq	(%rbx), %rax
	movq	%rax, (%r14)
	movl	$0, %eax
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_16
	jmp	LBB0_54
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	-52(%rbp), %edi
	callq	_WIFSTOPPED
	testq	%rax, %rax
	je	LBB0_30
## %bb.25:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	-52(%rbp), %edi
	callq	_WSTOPSIG
	movq	_SIGSTOP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_30
## %bb.26:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rdi
	cmpq	$0, 48(%rdi)
	je	LBB0_30
## %bb.27:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_debug_threads@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	-48(%rbp), %rdi
LBB0_29:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	$0, 48(%rdi)
	movl	12(%rdi), %esi
	addq	$40, %rdi
	xorl	%edx, %edx
	callq	_fbsd_resume_one_process
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	-52(%rbp), %edi
	callq	_WIFSTOPPED
	testq	%rax, %rax
	je	LBB0_34
## %bb.31:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_debug_threads@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	-52(%rbp), %edi
	callq	_WSTOPSIG
	movq	-48(%rbp), %rdx
	movl	8(%rdx), %ecx
	movl	40(%rdx), %r8d
	leaq	L_.str.5(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_33:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rbx
	movl	12(%rbx), %r14d
	addq	$40, %rbx
	movl	-52(%rbp), %edi
	callq	_WSTOPSIG
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	jmp	LBB0_43
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	-52(%rbp), %edi
	callq	_WIFSTOPPED
	testq	%rax, %rax
	je	LBB0_54
## %bb.35:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	-52(%rbp), %edi
	callq	_WSTOPSIG
	movq	_SIGTRAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_54
## %bb.36:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_the_low_target@GOTPCREL(%rip), %rbx
	cmpq	$0, 16(%rbx)
	je	LBB0_54
## %bb.37:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	callq	_get_stop_pc
	movq	%rax, %r14
	movq	-48(%rbp), %rax
	movq	16(%rax), %rdi
	movq	_debug_threads@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rdi, %rdi
	je	LBB0_44
## %bb.38:                              ##   in Loop: Header=BB0_7 Depth=1
	testq	%rax, %rax
	je	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	-48(%rbp), %rax
	movq	16(%rax), %rdi
LBB0_40:                                ##   in Loop: Header=BB0_7 Depth=1
	callq	_reinsert_breakpoint
	movq	-48(%rbp), %rdi
	movq	$0, 16(%rdi)
	jmp	LBB0_41
LBB0_44:                                ##   in Loop: Header=BB0_7 Depth=1
	testq	%rax, %rax
	je	LBB0_46
## %bb.45:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_46:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	callq	_check_breakpoints
	movq	-48(%rbp), %rcx
	testq	%rax, %rax
	je	LBB0_50
## %bb.47:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$1, 24(%rcx)
	movq	%r14, 32(%rcx)
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_48
## %bb.49:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	callq	*%rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_reinsert_breakpoint_by_bp
	movq	-48(%rbp), %rdi
LBB0_41:                                ##   in Loop: Header=BB0_7 Depth=1
	addq	$40, %rdi
	xorl	%esi, %esi
LBB0_42:                                ##   in Loop: Header=BB0_7 Depth=1
	xorl	%edx, %edx
LBB0_43:                                ##   in Loop: Header=BB0_7 Depth=1
	callq	_fbsd_resume_one_process
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_48:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, 16(%rcx)
	movq	%r14, %rdi
	callq	_uninsert_breakpoint
	movq	-48(%rbp), %rdi
	addq	$40, %rdi
	movl	$1, %esi
	jmp	LBB0_42
LBB0_50:
	cmpl	$0, 12(%rcx)
	je	LBB0_52
## %bb.51:
	movl	$0, 12(%rcx)
	jmp	LBB0_54
LBB0_52:
	movq	%r14, %rdi
	callq	*(%rbx)
	testq	%rax, %rax
	je	LBB0_54
## %bb.53:
	movq	-48(%rbp), %rax
	movl	$1, 24(%rax)
	movq	%r14, 32(%rax)
	jmp	LBB0_54
	.cfi_endproc
                                        ## -- End function
	.comm	_all_processes,4,2              ## @all_processes
	.comm	_status_pending_p,4,2           ## @status_pending_p
	.comm	_debug_threads,8,3              ## @debug_threads
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Got a pending child %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Got an event from pending child %d (%04x)\n"

	.comm	_current_inferior,8,3           ## @current_inferior
L_.str.2:                               ## @.str.2
	.asciz	"event from unknown child"

	.comm	_all_threads,16,3               ## @all_threads
	.comm	_using_threads,8,3              ## @using_threads
L_.str.3:                               ## @.str.3
	.asciz	"Thread %d (LWP %d) exiting\n"

	.comm	_SIGSTOP,8,3                    ## @SIGSTOP
L_.str.4:                               ## @.str.4
	.asciz	"Expected stop.\n"

L_.str.5:                               ## @.str.5
	.asciz	"Ignored signal %d for %d (LWP %d).\n"

	.comm	_SIGTRAP,8,3                    ## @SIGTRAP
	.comm	_the_low_target,24,3            ## @the_low_target
L_.str.6:                               ## @.str.6
	.asciz	"Reinserted breakpoint.\n"

L_.str.7:                               ## @.str.7
	.asciz	"Hit a (non-reinsert) breakpoint.\n"

	.no_dead_strip	_fbsd_wait_for_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fbsd_wait_for_event
_fbsd_wait_for_event:                   ; @fbsd_wait_for_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x24, _current_inferior@GOTPAGE
Lloh1:
	ldr	x24, [x24, _current_inferior@GOTPAGEOFF]
Lloh2:
	adrp	x26, _debug_threads@GOTPAGE
Lloh3:
	ldr	x26, [x26, _debug_threads@GOTPAGEOFF]
Lloh4:
	adrp	x25, _stderr@GOTPAGE
Lloh5:
	ldr	x25, [x25, _stderr@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_get_thread_process
	str	x0, [sp, #40]
	ldr	x8, [x0, #56]
	cbz	x8, LBB0_12
; %bb.2:
	mov	x20, x0
	bl	_check_removed_breakpoint
	cbz	x0, LBB0_6
; %bb.3:
	str	xzr, [sp, #40]
	b	LBB0_12
LBB0_4:
Lloh6:
	adrp	x8, _status_pending_p@GOTPAGE
Lloh7:
	ldr	x8, [x8, _status_pending_p@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x0, _all_processes@GOTPAGE
Lloh10:
	ldr	x0, [x0, _all_processes@GOTPAGEOFF]
	mov	x2, #0
	bl	_find_inferior
	mov	x20, x0
	str	x0, [sp, #40]
	ldr	x8, [x26]
	cmp	x8, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_11
; %bb.5:
	cbz	x20, LBB0_12
LBB0_6:
	ldr	x8, [x20, #56]
	cbz	x8, LBB0_12
LBB0_7:
	ldr	x8, [x26]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w0, [x25]
	ldp	w8, w9, [x20]
	stp	x8, x9, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_9:
	ldr	w8, [x20, #4]
	str	w8, [sp, #36]
	str	xzr, [x20, #56]
	str	wzr, [x20, #4]
	mov	x0, x20
	bl	_get_process_thread
	str	x0, [x24]
LBB0_10:
	ldr	w0, [sp, #36]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_11:
	ldr	w0, [x25]
	ldr	w8, [x20]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	x8, [x20, #56]
	cbnz	x8, LBB0_7
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	cbz	x19, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	bl	_get_thread_process
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, #0
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
Lloh15:
	adrp	x20, l_.str.2@PAGE
Lloh16:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh17:
	adrp	x21, _all_threads@GOTPAGE
Lloh18:
	ldr	x21, [x21, _all_threads@GOTPAGEOFF]
Lloh19:
	adrp	x27, _using_threads@GOTPAGE
Lloh20:
	ldr	x27, [x27, _using_threads@GOTPAGEOFF]
Lloh21:
	adrp	x22, _all_processes@GOTPAGE
Lloh22:
	ldr	x22, [x22, _all_processes@GOTPAGEOFF]
Lloh23:
	adrp	x23, l_.str.3@PAGE
Lloh24:
	add	x23, x23, l_.str.3@PAGEOFF
LBB0_16:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	x0, [sp, #40]
	add	x0, sp, #40
	add	x1, sp, #36
	bl	_fbsd_wait_for_process
	ldr	x8, [sp, #40]
	cbnz	x8, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	mov	x0, x20
	bl	_error
	ldr	x8, [sp, #40]
LBB0_18:                                ;   in Loop: Header=BB0_16 Depth=2
	ldr	w1, [x8, #8]
	mov	x0, x21
	bl	_find_inferior_id
	str	x0, [x24]
	ldr	x8, [x27]
	cbz	x8, LBB0_34
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	w0, [sp, #36]
	bl	_WIFSTOPPED
	cbnz	x0, LBB0_24
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	x8, [x26]
	cbz	x8, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	w0, [x25]
	ldr	x8, [sp, #40]
	ldr	w9, [x8, #8]
	ldr	w8, [x8, #40]
	stp	x9, x8, [sp]
	mov	x1, x23
	bl	_fprintf
LBB0_22:                                ;   in Loop: Header=BB0_16 Depth=2
	ldp	x8, x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.23:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	x8, [sp, #40]
	ldr	w0, [x8, #8]
	bl	_dead_thread_notify
	ldr	x8, [sp, #40]
	add	x1, x8, #40
	mov	x0, x22
	bl	_remove_inferior
	ldr	x0, [sp, #40]
	bl	_free
	ldr	x0, [x24]
	bl	_remove_thread
	mov	x0, #0
	ldr	x8, [x21]
	str	x8, [x24]
	cbz	x19, LBB0_16
	b	LBB0_10
LBB0_24:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [sp, #36]
	bl	_WIFSTOPPED
	cbz	x0, LBB0_30
; %bb.25:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [sp, #36]
	bl	_WSTOPSIG
Lloh25:
	adrp	x8, _SIGSTOP@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SIGSTOP@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_30
; %bb.26:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [sp, #40]
	ldr	x9, [x8, #48]
	cbz	x9, LBB0_30
; %bb.27:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x9, [x26]
	cbz	x9, LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [x25]
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	ldr	x8, [sp, #40]
LBB0_29:                                ;   in Loop: Header=BB0_12 Depth=1
	str	xzr, [x8, #48]
	add	x0, x8, #40
	ldr	w1, [x8, #12]
	b	LBB0_46
LBB0_30:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [sp, #36]
	bl	_WIFSTOPPED
	cbz	x0, LBB0_34
; %bb.31:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x26]
	cbz	x8, LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w20, [x25]
	ldr	w0, [sp, #36]
	bl	_WSTOPSIG
	ldr	x8, [sp, #40]
	ldr	w9, [x8, #8]
	ldr	w8, [x8, #40]
	stp	x9, x8, [sp, #8]
	str	x0, [sp]
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_fprintf
LBB0_33:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [sp, #40]
	add	x20, x8, #40
	ldr	w21, [x8, #12]
	ldr	w0, [sp, #36]
	bl	_WSTOPSIG
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_fbsd_resume_one_process
	b	LBB0_12
LBB0_34:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [sp, #36]
	bl	_WIFSTOPPED
	cbz	x0, LBB0_10
; %bb.35:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [sp, #36]
	bl	_WSTOPSIG
Lloh32:
	adrp	x8, _SIGTRAP@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SIGTRAP@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
Lloh35:
	adrp	x21, _the_low_target@GOTPAGE
Lloh36:
	ldr	x21, [x21, _the_low_target@GOTPAGEOFF]
	ldr	x9, [x21, #16]
	cmp	x0, x8
	ccmp	x9, #0, #4, eq
	b.eq	LBB0_10
; %bb.36:                               ;   in Loop: Header=BB0_12 Depth=1
	bl	_get_stop_pc
	mov	x20, x0
	ldr	x8, [sp, #40]
	ldr	x0, [x8, #16]
	ldr	x8, [x26]
	cbz	x0, LBB0_40
; %bb.37:                               ;   in Loop: Header=BB0_12 Depth=1
	cbz	x8, LBB0_39
; %bb.38:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [x25]
Lloh37:
	adrp	x1, l_.str.6@PAGE
Lloh38:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf
	ldr	x8, [sp, #40]
	ldr	x0, [x8, #16]
LBB0_39:                                ;   in Loop: Header=BB0_12 Depth=1
	bl	_reinsert_breakpoint
	ldr	x8, [sp, #40]
	str	xzr, [x8, #16]
	b	LBB0_45
LBB0_40:                                ;   in Loop: Header=BB0_12 Depth=1
	cbz	x8, LBB0_42
; %bb.41:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [x25]
Lloh39:
	adrp	x1, l_.str.7@PAGE
Lloh40:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_fprintf
LBB0_42:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x20
	bl	_check_breakpoints
	ldr	x8, [sp, #40]
	cbz	x0, LBB0_48
; %bb.43:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w9, #1
	str	w9, [x8, #24]
	str	x20, [x8, #32]
	ldr	x9, [x21, #8]
	cbz	x9, LBB0_47
; %bb.44:                               ;   in Loop: Header=BB0_12 Depth=1
	blr	x9
	mov	x1, x0
	mov	x0, x20
	bl	_reinsert_breakpoint_by_bp
	ldr	x8, [sp, #40]
LBB0_45:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x0, x8, #40
	mov	w1, #0
LBB0_46:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x2, #0
	bl	_fbsd_resume_one_process
	b	LBB0_12
LBB0_47:                                ;   in Loop: Header=BB0_12 Depth=1
	str	x20, [x8, #16]
	mov	x0, x20
	bl	_uninsert_breakpoint
	ldr	x8, [sp, #40]
	add	x0, x8, #40
	mov	w1, #1
	b	LBB0_46
LBB0_48:
	ldr	w9, [x8, #12]
	cbz	w9, LBB0_50
; %bb.49:
	str	wzr, [x8, #12]
	b	LBB0_10
LBB0_50:
	ldr	x8, [x21]
	mov	x0, x20
	blr	x8
	cbz	x0, LBB0_10
; %bb.51:
	ldr	x8, [sp, #40]
	mov	w9, #1
	str	w9, [x8, #24]
	str	x20, [x8, #32]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_all_processes,4,2              ; @all_processes
	.comm	_status_pending_p,4,2           ; @status_pending_p
	.comm	_debug_threads,8,3              ; @debug_threads
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Got a pending child %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Got an event from pending child %d (%04x)\n"

	.comm	_current_inferior,8,3           ; @current_inferior
l_.str.2:                               ; @.str.2
	.asciz	"event from unknown child"

	.comm	_all_threads,16,3               ; @all_threads
	.comm	_using_threads,8,3              ; @using_threads
l_.str.3:                               ; @.str.3
	.asciz	"Thread %d (LWP %d) exiting\n"

	.comm	_SIGSTOP,8,3                    ; @SIGSTOP
l_.str.4:                               ; @.str.4
	.asciz	"Expected stop.\n"

l_.str.5:                               ; @.str.5
	.asciz	"Ignored signal %d for %d (LWP %d).\n"

	.comm	_SIGTRAP,8,3                    ; @SIGTRAP
	.comm	_the_low_target,24,3            ; @the_low_target
l_.str.6:                               ; @.str.6
	.asciz	"Reinserted breakpoint.\n"

l_.str.7:                               ; @.str.7
	.asciz	"Hit a (non-reinsert) breakpoint.\n"

	.no_dead_strip	_fbsd_wait_for_event
.subsections_via_symbols
