	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sds_command
_sds_command:                           ## @sds_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	%rbx
	subq	$1016, %rsp                     ## imm = 0x3F8
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movb	(%rdi), %al
	testb	%al, %al
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rbx
	movsbl	%al, %edi
	callq	_fromhex
	movl	%eax, %r15d
	shll	$4, %r15d
	movsbl	-1(%r14,%rbx,2), %edi
	callq	_fromhex
	addl	%r15d, %eax
	movb	%al, -1041(%rbp,%rbx)
	cmpb	$0, -1(%r14,%rbx,2)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	movzbl	(%r14,%rbx,2), %eax
	leaq	1(%rbx), %rcx
	testb	%al, %al
	jne	LBB0_4
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
LBB0_5:
	leaq	-1040(%rbp), %rdi
	movl	%ebx, %esi
	callq	_sds_send
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf_filtered
	testl	%ebx, %ebx
	jle	LBB0_8
## %bb.6:
	movl	%ebx, %r15d
	leaq	L_.str.1(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-1040(%rbp,%rbx), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf_filtered
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_7
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf_filtered
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	addq	$1016, %rsp                     ## imm = 0x3F8
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reply is "

L_.str.1:                               ## @.str.1
	.asciz	"%02x"

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

	.no_dead_strip	_sds_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sds_command
_sds_command:                           ; @sds_command
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -56
	.cfi_offset w28, -64
	sub	sp, sp, #1024
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldrb	w8, [x0]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x9, #0
	add	x20, x0, #1
	add	x21, sp, #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x9
	sxtb	w0, w8
	bl	_fromhex
	mov	x19, x0
	ldrsb	w0, [x20]
	bl	_fromhex
	add	w8, w0, w19, lsl #4
	strb	w8, [x21, x22]
	ldrb	w8, [x20]
	cbz	w8, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x20, #1]
	add	x20, x20, #2
	add	x9, x22, #1
	cbnz	w8, LBB0_2
LBB0_4:
	add	w1, w22, #1
	b	LBB0_6
LBB0_5:
	mov	w1, #0
LBB0_6:
	add	x0, sp, #16
	bl	_sds_send
	mov	x19, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf_filtered
	cmp	w19, #1
	b.lt	LBB0_9
; %bb.7:
	mov	w20, w19
	add	x21, sp, #16
Lloh5:
	adrp	x19, l_.str.1@PAGE
Lloh6:
	add	x19, x19, l_.str.1@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x21], #1
	str	x8, [sp]
	mov	x0, x19
	bl	_printf_filtered
	subs	x20, x20, #1
	b.ne	LBB0_8
LBB0_9:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf_filtered
	ldur	x8, [x29, #-56]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	add	sp, sp, #1024
	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	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reply is "

l_.str.1:                               ; @.str.1
	.asciz	"%02x"

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

	.no_dead_strip	_sds_command
.subsections_via_symbols
