	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdb_packet_read                ## -- Begin function gdb_packet_read
	.p2align	4, 0x90
_gdb_packet_read:                       ## @gdb_packet_read
	.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
	testq	%rdx, %rdx
	je	LBB0_18
## %bb.1:
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%r12d, %r12d
	leaq	-44(%rbp), %r13
	jmp	LBB0_2
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rcx
	movq	24(%rbx), %rdx
	leaq	1(%rcx), %rsi
	movq	%rsi, 8(%rbx)
	movb	%al, (%rdx,%rcx)
	addb	%al, 16(%rbx)
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	cmpq	%r12, %r15
	je	LBB0_18
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14,%r12), %eax
	movl	(%rbx), %ecx
	cmpl	$2, %ecx
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, %ecx
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%ecx, %ecx
	jne	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$3, %al
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$36, %al
	jne	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, (%rbx)
	movq	$0, 8(%rbx)
	movb	$0, 16(%rbx)
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$35, %al
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$2, (%rbx)
	movl	$0, 20(%rbx)
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rbx), %rcx
	movslq	20(%rbx), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 20(%rbx)
	movb	%al, (%rcx,%rdx)
	cmpl	$2, 20(%rbx)
	jne	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	callq	_sscanf
	movq	8(%rbx), %rax
	movq	24(%rbx), %rcx
	movb	$0, (%rcx,%rax)
	movsbl	16(%rbx), %eax
	movl	40(%rbx), %edi
	cmpl	%eax, -44(%rbp)
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rsi
	callq	_gdb_client_received
	jmp	LBB0_16
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	40(%rbx), %edi
	callq	_gdb_client_break
	jmp	LBB0_17
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_gdb_client_error
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, (%rbx)
	jmp	LBB0_17
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%2x"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdb_packet_read                ; -- Begin function gdb_packet_read
	.p2align	2
_gdb_packet_read:                       ; @gdb_packet_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x2, LBB0_18
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
	mov	w23, #2
	mov	w24, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x21, #24]
	ldr	x10, [x21, #8]
	add	x11, x10, #1
	str	x11, [x21, #8]
	strb	w8, [x9, x10]
	ldrb	w9, [x21, #16]
	add	w8, w9, w8
	strb	w8, [x21, #16]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	subs	x19, x19, #1
	b.eq	LBB0_18
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20]
	ldr	w9, [x21]
	cmp	w9, #2
	b.eq	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, #1
	b.eq	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w9, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #3
	b.eq	LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #36
	b.ne	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w24, [x21]
	str	xzr, [x21, #8]
	strb	wzr, [x21, #16]
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #35
	b.ne	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	str	w23, [x21]
	str	wzr, [x21, #20]
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x21, #32]
	ldrsw	x10, [x21, #20]
	add	w11, w10, #1
	str	w11, [x21, #20]
	strb	w8, [x9, x10]
	ldr	w8, [x21, #20]
	cmp	w8, #2
	b.ne	LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x21, #32]
	add	x2, sp, #12
	mov	x1, x22
	bl	_sscanf
	ldr	x8, [x21, #24]
	ldr	x9, [x21, #8]
	strb	wzr, [x8, x9]
	ldrsb	w8, [x21, #16]
	ldr	w9, [sp, #12]
	ldr	w0, [x21, #40]
	cmp	w9, w8
	b.ne	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x21
	bl	_gdb_client_received
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x21, #40]
	bl	_gdb_client_break
	b	LBB0_3
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_gdb_client_error
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	str	wzr, [x21]
	b	LBB0_3
LBB0_18:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%2x"

.subsections_via_symbols
