	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdbr_send_qRcmd                ## -- Begin function gdbr_send_qRcmd
	.p2align	4, 0x90
_gdbr_send_qRcmd:                       ## @gdbr_send_qRcmd
	.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
	movl	$-1, %r14d
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_21
## %bb.2:
	movq	%rdx, %r12
	movq	%rdi, %r13
	movq	%rbx, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %eax
	addl	$8, %eax
	movslq	%eax, %rdi
	movl	$1, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_21
## %bb.3:
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcpy
	movq	%r13, %rdi
	callq	_gdbr_lock_enter
	movl	$-1, %r14d
	testl	%eax, %eax
	je	LBB0_20
## %bb.4:
	movl	$0, 16(%r13)
	movq	_reg_cache@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r15, %rdx
	addq	$6, %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_pack_hex
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_send_msg
	testl	%eax, %eax
	js	LBB0_19
## %bb.5:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_read_packet
	testl	%eax, %eax
	js	LBB0_19
## %bb.6:
	leaq	L_.str.1(%rip), %rbx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_read_packet
	testl	%eax, %eax
	js	LBB0_19
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_send_ack
	testl	%eax, %eax
	js	LBB0_19
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r13), %eax
	cmpl	$3, %eax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	testl	%eax, %eax
	jne	LBB0_13
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r13), %rax
	cmpb	$69, (%rax)
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movsbl	1(%rax), %edi
	callq	_isxdigit
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r13), %rax
	movsbl	2(%rax), %edi
	callq	_isxdigit
	testq	%rax, %rax
	jne	LBB0_20
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r13), %rdi
	movq	%rbx, %rsi
	movl	$2, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r13), %rdi
	cmpb	$79, (%rdi)
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r13), %esi
	movl	%esi, %eax
	andl	$-2147483647, %eax              ## imm = 0x80000001
	cmpl	$1, %eax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=1
	incq	%rdi
	decl	%esi
	movq	%rdi, %rdx
	callq	_unpack_hex
	movq	8(%r13), %rax
	movslq	(%r13), %rcx
	movb	$0, -1(%rcx,%rax)
	movq	8(%r13), %rsi
	incq	%rsi
	leaq	L_.str.2(%rip), %rdi
	callq	*%r12
	jmp	LBB0_18
LBB0_19:
	movl	%eax, %r14d
LBB0_20:
	movq	%r15, %rdi
	callq	_free
	movq	%r13, %rdi
	callq	_gdbr_lock_leave
LBB0_21:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorl	%r14d, %r14d
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"qRcmd,"

	.comm	_reg_cache,4,2                  ## @reg_cache
L_.str.1:                               ## @.str.1
	.asciz	"OK"

L_.str.2:                               ## @.str.2
	.asciz	"%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdbr_send_qRcmd                ; -- Begin function gdbr_send_qRcmd
	.p2align	2
_gdbr_send_qRcmd:                       ; @gdbr_send_qRcmd
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	w24, #-1
	cbz	x0, LBB0_22
; %bb.1:
	mov	x22, x1
	cbz	x1, LBB0_22
; %bb.2:
	mov	x21, x2
	mov	x19, x0
	mov	x0, x22
	bl	_strlen
	lsl	w8, w0, #1
	add	w8, w8, #8
	sxtw	x0, w8
	mov	w1, #1
	bl	_calloc
	cbz	x0, LBB0_18
; %bb.3:
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
	mov	x0, x19
	bl	_gdbr_lock_enter
	cbz	w0, LBB0_20
; %bb.4:
	str	wzr, [x19, #16]
Lloh2:
	adrp	x8, _reg_cache@GOTPAGE
Lloh3:
	ldr	x8, [x8, _reg_cache@GOTPAGEOFF]
Lloh4:
	str	wzr, [x8]
	mov	x0, x22
	bl	_strlen
	mov	x1, x0
	add	x2, x20, #6
	mov	x0, x22
	bl	_pack_hex
	mov	x0, x19
	mov	x1, x20
	bl	_send_msg
	tbnz	w0, #31, LBB0_19
; %bb.5:
	mov	x0, x19
	mov	w1, #0
	bl	_read_packet
	tbnz	w0, #31, LBB0_19
; %bb.6:
Lloh5:
	adrp	x22, l_.str.1@PAGE
Lloh6:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh7:
	adrp	x23, l_.str.2@PAGE
Lloh8:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	w1, #0
	bl	_read_packet
	tbnz	w0, #31, LBB0_19
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_send_ack
	tbnz	w0, #31, LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x19]
	cmp	w8, #3
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	cbnz	w8, LBB0_14
	b	LBB0_20
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #8]
	ldrb	w9, [x8]
	cmp	w9, #69
	b.ne	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldrsb	w0, [x8, #1]
	bl	_isxdigit
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #8]
	ldrsb	w0, [x8, #2]
	bl	_isxdigit
	cbnz	x0, LBB0_20
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x19, #8]
	mov	x1, x22
	mov	w2, #2
	bl	_strncmp
	cbz	w0, LBB0_23
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #8]
	ldrb	w9, [x8]
	cmp	w9, #79
	b.ne	LBB0_7
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x19]
	and	w10, w9, #0x80000001
	cmp	w10, #1
	b.ne	LBB0_7
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x0, x8, #1
	sub	w1, w9, #1
	mov	x2, x0
	bl	_unpack_hex
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x8, x9, x8
	sturb	wzr, [x8, #-1]
	ldr	x8, [x19, #8]
	add	x1, x8, #1
	mov	x0, x23
	blr	x21
	b	LBB0_7
LBB0_18:
	mov	w24, #-1
	b	LBB0_22
LBB0_19:
	mov	x24, x0
	b	LBB0_21
LBB0_20:
	mov	w24, #-1
LBB0_21:
	mov	x0, x20
	bl	_free
	mov	x0, x19
	bl	_gdbr_lock_leave
LBB0_22:
	mov	x0, x24
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_23:
	mov	w24, #0
	b	LBB0_21
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qRcmd,"

	.comm	_reg_cache,4,2                  ; @reg_cache
l_.str.1:                               ; @.str.1
	.asciz	"OK"

l_.str.2:                               ; @.str.2
	.asciz	"%s"

.subsections_via_symbols
