	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdbr_read_registers            ## -- Begin function gdbr_read_registers
	.p2align	4, 0x90
_gdbr_read_registers:                   ## @gdbr_read_registers
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r14d
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.1:
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_18
## %bb.2:
	movq	_reg_cache@GOTPCREL(%rip), %r15
	cmpq	$0, 16(%r15)
	je	LBB0_5
## %bb.3:
	cmpl	$0, (%r15)
	je	LBB0_5
## %bb.4:
	movl	4(%r15), %edx
	movl	%edx, 12(%rbx)
	movl	8(%r15), %esi
	callq	_memcpy
	xorl	%r14d, %r14d
	jmp	LBB0_18
LBB0_5:
	movl	20(%rbx), %edi
	callq	_r_th_lock_check
	testq	%rax, %rax
	jne	LBB0_18
## %bb.6:
	movq	%rbx, %rdi
	callq	_gdbr_lock_enter
	movl	$-1, %r14d
	testl	%eax, %eax
	je	LBB0_17
## %bb.7:
	movq	(%rbx), %rax
	movq	_GDB_REMOTE_TYPE_LLDB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.8:
	cmpl	$0, 16(%rbx)
	je	LBB0_9
LBB0_10:
	movq	_CMD_READREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_send_msg
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_read_packet
	testq	%rax, %rax
	js	LBB0_17
## %bb.13:
	movq	%rbx, %rdi
	callq	_handle_g
	testq	%rax, %rax
	js	LBB0_17
## %bb.14:
	cmpq	$0, 16(%r15)
	je	LBB0_15
## %bb.16:
	movl	12(%rbx), %edx
	movl	%edx, 4(%r15)
	movl	8(%r15), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_memset
	movl	4(%r15), %edx
	movl	8(%r15), %edi
	movl	8(%rbx), %esi
	callq	_memcpy
	movl	$1, (%r15)
	jmp	LBB0_17
LBB0_11:
	movl	%eax, %r14d
	jmp	LBB0_17
LBB0_9:
	movq	%rbx, %rdi
	callq	_gdbr_read_registers_lldb
	movl	%eax, %r14d
	jmp	LBB0_17
LBB0_15:
	xorl	%r14d, %r14d
LBB0_17:
	movq	%rbx, %rdi
	callq	_gdbr_lock_leave
LBB0_18:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_reg_cache,24,3                 ## @reg_cache
	.comm	_GDB_REMOTE_TYPE_LLDB,8,3       ## @GDB_REMOTE_TYPE_LLDB
	.comm	_CMD_READREGS,4,2               ## @CMD_READREGS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdbr_read_registers            ; -- Begin function gdbr_read_registers
	.p2align	2
_gdbr_read_registers:                   ; @gdbr_read_registers
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #8]
	cbz	w0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x21, _reg_cache@GOTPAGE
Lloh1:
	ldr	x21, [x21, _reg_cache@GOTPAGEOFF]
	ldr	x8, [x21, #16]
	ldr	w9, [x21]
	cmp	x8, #0
	ccmp	w9, #0, #4, ne
	b.ne	LBB0_5
; %bb.3:
	ldr	w0, [x19, #20]
	bl	_r_th_lock_check
	cbz	x0, LBB0_6
LBB0_4:
	mov	w20, #-1
	b	LBB0_19
LBB0_5:
	ldp	w2, w1, [x21, #4]
	str	w2, [x19, #12]
	bl	_memcpy
	mov	w20, #0
	b	LBB0_19
LBB0_6:
	mov	x0, x19
	bl	_gdbr_lock_enter
	cbz	w0, LBB0_14
; %bb.7:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _GDB_REMOTE_TYPE_LLDB@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GDB_REMOTE_TYPE_LLDB@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_16
LBB0_9:
Lloh5:
	adrp	x8, _CMD_READREGS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CMD_READREGS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_send_msg
	tbnz	w0, #31, LBB0_15
; %bb.10:
	mov	x0, x19
	mov	w1, #0
	bl	_read_packet
	tbnz	x0, #63, LBB0_14
; %bb.11:
	mov	x0, x19
	bl	_handle_g
	tbnz	x0, #63, LBB0_14
; %bb.12:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_17
; %bb.13:
	ldr	w2, [x19, #12]
	str	w2, [x21, #4]
	ldr	w0, [x21, #8]
	mov	w1, #0
	bl	_memset
	ldr	w1, [x19, #8]
	ldp	w2, w0, [x21, #4]
	bl	_memcpy
	mov	w20, #0
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_18
LBB0_14:
	mov	w20, #-1
	b	LBB0_18
LBB0_15:
	mov	x20, x0
	b	LBB0_18
LBB0_16:
	mov	x0, x19
	bl	_gdbr_read_registers_lldb
	mov	x20, x0
	b	LBB0_18
LBB0_17:
	mov	w20, #0
LBB0_18:
	mov	x0, x19
	bl	_gdbr_lock_leave
LBB0_19:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_reg_cache,24,3                 ; @reg_cache
	.comm	_GDB_REMOTE_TYPE_LLDB,8,3       ; @GDB_REMOTE_TYPE_LLDB
	.comm	_CMD_READREGS,4,2               ; @CMD_READREGS
.subsections_via_symbols
