	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function packet_command
_packet_command:                        ## @packet_command
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_get_remote_state
	movq	%rax, %r15
	movl	(%rax), %edi
	callq	_alloca
	movq	%rax, %r14
	movq	_remote_desc@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	testq	%rbx, %rbx
	je	LBB0_3
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	callq	_puts_filtered
	movq	%rbx, %rdi
	callq	_print_packet
	leaq	L_.str.3(%rip), %r12
	movq	%r12, %rdi
	callq	_puts_filtered
	movq	%rbx, %rdi
	callq	_putpkt
	movl	(%r15), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_getpkt
	leaq	L_.str.4(%rip), %rdi
	callq	_puts_filtered
	movq	%r14, %rdi
	callq	_print_packet
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_puts_filtered                  ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_error
	testq	%rbx, %rbx
	jne	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_error
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_remote_desc,4,2                ## @remote_desc
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"command can only be used with remote target"

L_.str.1:                               ## @.str.1
	.asciz	"remote-packet command requires packet text as argument"

L_.str.2:                               ## @.str.2
	.asciz	"sending: "

L_.str.3:                               ## @.str.3
	.asciz	"\n"

L_.str.4:                               ## @.str.4
	.asciz	"received: "

	.no_dead_strip	_packet_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function packet_command
_packet_command:                        ; @packet_command
	.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
	mov	x20, x0
	bl	_get_remote_state
	mov	x21, x0
	ldr	w0, [x0]
	bl	_alloca
	mov	x19, x0
Lloh0:
	adrp	x8, _remote_desc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _remote_desc@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
	cbz	x20, LBB0_4
LBB0_2:
Lloh3:
	adrp	x0, l_.str.2@PAGE
Lloh4:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_puts_filtered
	mov	x0, x20
	bl	_print_packet
Lloh5:
	adrp	x22, l_.str.3@PAGE
Lloh6:
	add	x22, x22, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_puts_filtered
	mov	x0, x20
	bl	_putpkt
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_getpkt
Lloh7:
	adrp	x0, l_.str.4@PAGE
Lloh8:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_puts_filtered
	mov	x0, x19
	bl	_print_packet
	mov	x0, x22
	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
	b	_puts_filtered
LBB0_3:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
	cbnz	x20, LBB0_2
LBB0_4:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_remote_desc,4,2                ; @remote_desc
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"command can only be used with remote target"

l_.str.1:                               ; @.str.1
	.asciz	"remote-packet command requires packet text as argument"

l_.str.2:                               ; @.str.2
	.asciz	"sending: "

l_.str.3:                               ; @.str.3
	.asciz	"\n"

l_.str.4:                               ; @.str.4
	.asciz	"received: "

	.no_dead_strip	_packet_command
.subsections_via_symbols
