	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_binary_download
_check_binary_download:                 ## @check_binary_download
	.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	%edi, %r15d
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_get_remote_state
	movq	_remote_protocol_binary_download@GOTPCREL(%rip), %r13
	cmpl	$128, (%r13)
	jne	LBB0_4
## %bb.1:
	movq	%rax, %r14
	movl	(%rax), %edi
	callq	_alloca
	movq	%rax, %rbx
	leaq	1(%rax), %rdi
	movb	$88, (%rax)
	movl	%r15d, %esi
	callq	_hexnumstr
	cltq
	leaq	(%rbx,%rax), %r15
	incq	%r15
	leaq	(%rbx,%rax), %rdi
	addq	$2, %rdi
	movb	$44, 1(%rbx,%rax)
	xorl	%esi, %esi
	callq	_hexnumstr
	cltq
	leaq	(%rax,%r15), %rsi
	incq	%rsi
	movw	$58, 1(%rax,%r15)
	subl	%ebx, %esi
	incl	%esi
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_putpkt_binary
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_getpkt
	movb	(%rbx), %al
	movq	_remote_debug@GOTPCREL(%rip), %rcx
	cmpb	$1, %al
	adcl	$129, %r12d
	cmpl	$0, (%rcx)
	je	LBB0_3
## %bb.2:
	testb	%al, %al
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	_gdb_stdlog@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fprintf_unfiltered
LBB0_3:
	movl	%r12d, (%r13)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_remote_protocol_binary_download,4,2 ## @remote_protocol_binary_download
	.comm	_remote_debug,4,2               ## @remote_debug
	.comm	_gdb_stdlog,4,2                 ## @gdb_stdlog
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"binary downloading NOT suppported by target\n"

L_.str.1:                               ## @.str.1
	.asciz	"binary downloading suppported by target\n"

	.no_dead_strip	_check_binary_download
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_binary_download
_check_binary_download:                 ; @check_binary_download
	.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	x20, x0
	bl	_get_remote_state
Lloh0:
	adrp	x23, _remote_protocol_binary_download@GOTPAGE
Lloh1:
	ldr	x23, [x23, _remote_protocol_binary_download@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0]
	bl	_alloca
	mov	x21, x0
	add	x22, x0, #1
	mov	w8, #88
	strb	w8, [x0]
	mov	x0, x22
	mov	x1, x20
	bl	_hexnumstr
	add	x20, x22, w0, sxtw
	mov	w8, #44
	strb	w8, [x20], #1
	mov	x0, x20
	mov	w1, #0
	bl	_hexnumstr
	add	x8, x20, w0, sxtw
	mov	w9, #58
	strh	w9, [x8]
	sub	w8, w8, w21
	add	w1, w8, #1
	mov	x0, x21
	bl	_putpkt_binary
	ldr	w1, [x19]
	mov	x0, x21
	mov	w2, #0
	bl	_getpkt
	ldrb	w8, [x21]
Lloh2:
	adrp	x9, _remote_debug@GOTPAGE
Lloh3:
	ldr	x9, [x9, _remote_debug@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, #0
	mov	w10, #129
	cinc	w19, w10, eq
	cbz	w9, LBB0_3
; %bb.2:
Lloh5:
	adrp	x9, l_.str.1@PAGE
Lloh6:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh7:
	adrp	x10, l_.str@PAGE
Lloh8:
	add	x10, x10, l_.str@PAGEOFF
	cmp	w8, #0
	csel	x1, x10, x9, eq
Lloh9:
	adrp	x8, _gdb_stdlog@GOTPAGE
Lloh10:
	ldr	x8, [x8, _gdb_stdlog@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_fprintf_unfiltered
LBB0_3:
	str	w19, [x23]
LBB0_4:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_remote_protocol_binary_download,4,2 ; @remote_protocol_binary_download
	.comm	_remote_debug,4,2               ; @remote_debug
	.comm	_gdb_stdlog,4,2                 ; @gdb_stdlog
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"binary downloading NOT suppported by target\n"

l_.str.1:                               ; @.str.1
	.asciz	"binary downloading suppported by target\n"

	.no_dead_strip	_check_binary_download
.subsections_via_symbols
