	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_debug_gdb_wait
_r_debug_gdb_wait:                      ## @r_debug_gdb_wait
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_check_connection
	movq	_desc@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	cmpl	$0, 48(%rdi)
	je	LBB0_3
## %bb.6:
	cmpq	$0, 40(%rdi)
	jne	LBB0_7
	jmp	LBB0_10
LBB0_1:
	movq	_R_DEBUG_REASON_UNKNOWN@GOTPCREL(%rip), %rdi
	jmp	LBB0_12
LBB0_3:
	callq	_gdbr_stop_reason
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	movq	(%r14), %rdi
	cmpq	$0, 40(%rdi)
	je	LBB0_10
LBB0_7:
	movq	24(%rdi), %rdx
	movq	%rdx, 16(%rbx)
	movq	32(%rdi), %rsi
	movq	%rsi, (%rbx)
	movq	%rdx, 8(%rbx)
	cmpq	(%rdi), %rsi
	jne	LBB0_9
## %bb.8:
	cmpq	8(%rdi), %rdx
	je	LBB0_10
LBB0_9:
	callq	_gdbr_select
	movq	(%r14), %rdi
LBB0_10:
	movl	20(%rdi), %eax
	addq	$16, %rdi
	movl	%eax, 28(%rbx)
LBB0_11:
	movl	(%rdi), %eax
	movl	%eax, 24(%rbx)
LBB0_12:
	movl	(%rdi), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_R_DEBUG_REASON_UNKNOWN@GOTPCREL(%rip), %rdi
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_desc,8,3                       ## @desc
	.comm	_R_DEBUG_REASON_UNKNOWN,4,2     ## @R_DEBUG_REASON_UNKNOWN
	.no_dead_strip	_r_debug_gdb_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_debug_gdb_wait
_r_debug_gdb_wait:                      ; @r_debug_gdb_wait
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_check_connection
Lloh0:
	adrp	x20, _desc@GOTPAGE
Lloh1:
	ldr	x20, [x20, _desc@GOTPAGEOFF]
	ldr	x0, [x20]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x0, #48]
	cbz	w8, LBB0_4
; %bb.2:
	ldr	x8, [x0, #40]
	cbnz	x8, LBB0_6
	b	LBB0_9
LBB0_3:
Lloh2:
	adrp	x8, _R_DEBUG_REASON_UNKNOWN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _R_DEBUG_REASON_UNKNOWN@GOTPAGEOFF]
	b	LBB0_11
LBB0_4:
	bl	_gdbr_stop_reason
	tbnz	x0, #63, LBB0_12
; %bb.5:
	ldr	x0, [x20]
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_9
LBB0_6:
	ldp	x2, x1, [x0, #24]
	stp	x2, x2, [x19, #8]
	str	x1, [x19]
	ldr	x8, [x0]
	cmp	x1, x8
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x0, #8]
	cmp	x2, x8
	b.eq	LBB0_9
LBB0_8:
	bl	_gdbr_select
	ldr	x0, [x20]
LBB0_9:
	add	x8, x0, #16
	ldr	w9, [x0, #20]
	str	w9, [x19, #28]
LBB0_10:
	ldr	w9, [x8]
	str	w9, [x19, #24]
LBB0_11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh4:
	adrp	x8, _R_DEBUG_REASON_UNKNOWN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _R_DEBUG_REASON_UNKNOWN@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_desc,8,3                       ; @desc
	.comm	_R_DEBUG_REASON_UNKNOWN,4,2     ; @R_DEBUG_REASON_UNKNOWN
	.no_dead_strip	_r_debug_gdb_wait
.subsections_via_symbols
