	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gdbr_connect_lldb
_gdbr_connect_lldb:                     ## @gdbr_connect_lldb
	.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	_gdbr_lock_enter
	movl	$-1, %r14d
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movq	%rbx, %rdi
	callq	_reg_cache_init
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_gdbr_read_target_xml
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_send_msg
	testq	%rax, %rax
	js	LBB0_10
## %bb.4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_read_packet
	testq	%rax, %rax
	js	LBB0_10
## %bb.5:
	movq	%rbx, %rdi
	callq	_send_ack
	testq	%rax, %rax
	js	LBB0_10
## %bb.6:
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	cmpl	$3, %eax
	jne	LBB0_9
## %bb.8:
	movq	8(%rbx), %rax
	cmpb	$69, (%rax)
	je	LBB0_10
LBB0_9:
	movl	$1, 16(%rbx)
	xorl	%r14d, %r14d
LBB0_10:
	movq	%rbx, %rdi
	callq	_gdbr_lock_leave
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"g"

	.no_dead_strip	_gdbr_connect_lldb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gdbr_connect_lldb
_gdbr_connect_lldb:                     ; @gdbr_connect_lldb
	.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	_gdbr_lock_enter
	cbz	w0, LBB0_9
; %bb.1:
	mov	x0, x19
	bl	_reg_cache_init
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_gdbr_read_target_xml
LBB0_3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_send_msg
	tbnz	x0, #63, LBB0_9
; %bb.4:
	mov	x0, x19
	mov	w1, #0
	bl	_read_packet
	tbnz	x0, #63, LBB0_9
; %bb.5:
	mov	x0, x19
	bl	_send_ack
	tbnz	x0, #63, LBB0_9
; %bb.6:
	ldr	w8, [x19]
	cbz	w8, LBB0_9
; %bb.7:
	cmp	w8, #3
	b.ne	LBB0_11
; %bb.8:
	ldr	x8, [x19, #8]
	ldrb	w8, [x8]
	cmp	w8, #69
	b.ne	LBB0_11
LBB0_9:
	mov	w20, #-1
LBB0_10:
	mov	x0, x19
	bl	_gdbr_lock_leave
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	w20, #0
	mov	w8, #1
	str	w8, [x19, #16]
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"g"

	.no_dead_strip	_gdbr_connect_lldb
.subsections_via_symbols
