	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dump_string_by_index           ## -- Begin function dump_string_by_index
	.p2align	4, 0x90
_dump_string_by_index:                  ## @dump_string_by_index
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	$256, %edi                      ## imm = 0x100
	callq	_malloc
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	movq	%r14, %rdi
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.11:
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movl	$256, %ecx                      ## imm = 0x100
	callq	_libusb20_dev_req_string_simple_sync
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	jmp	LBB0_5
LBB0_3:
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r15, %rcx
	movl	$256, %r8d                      ## imm = 0x100
	callq	_libusb20_dev_req_string_sync
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%esi, %esi
LBB0_5:
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_14
LBB0_13:
	leaq	L_.str.7(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_14
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_printf
	movsbq	(%r15), %r14
	testq	%r14, %r14
	je	LBB0_10
## %bb.7:
	cmpq	$1, %r14
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_printf
	cmpb	$1, %r14b
	je	LBB0_10
## %bb.8:
	leaq	-2(%r14), %r12
	decq	%r14
	leaq	L_.str.3(%rip), %rbx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movsbq	1(%r15,%r13), %rsi
	cmpq	%r13, %r12
	leaq	L_.str.4(%rip), %rdx
	leaq	L_.str.5(%rip), %rax
	cmoveq	%rax, %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	incq	%r13
	cmpq	%r13, %r14
	jne	LBB0_9
LBB0_10:
	movl	$10, %edi
	callq	_putchar
LBB0_14:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory"

L_.str.1:                               ## @.str.1
	.asciz	"STRING_0x%02x = <read error>\n"

L_.str.2:                               ## @.str.2
	.asciz	"STRING_0x%02x = "

L_.str.3:                               ## @.str.3
	.asciz	"0x%02x%s"

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

L_.str.5:                               ## @.str.5
	.space	1

L_.str.7:                               ## @.str.7
	.asciz	"STRING_0x%02x = <%s>\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dump_string_by_index           ; -- Begin function dump_string_by_index
	.p2align	2
_dump_string_by_index:                  ; @dump_string_by_index
	.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
	mov	x20, x1
	mov	x21, x0
	mov	w0, #256
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x21
	cbz	x20, LBB0_5
LBB0_2:
	mov	x1, x20
	mov	x2, x19
	mov	w3, #256
	bl	_libusb20_dev_req_string_simple_sync
	cbz	x0, LBB0_8
; %bb.3:
	str	x20, [sp]
	b	LBB0_7
LBB0_4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
	mov	x0, x21
	cbnz	x20, LBB0_2
LBB0_5:
	mov	x1, #0
	mov	w2, #0
	mov	x3, x19
	mov	w4, #256
	bl	_libusb20_dev_req_string_sync
	cbz	x0, LBB0_11
; %bb.6:
	str	xzr, [sp]
LBB0_7:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
	stp	x20, x19, [sp]
Lloh4:
	adrp	x0, l_.str.7@PAGE
Lloh5:
	add	x0, x0, l_.str.7@PAGEOFF
LBB0_9:
	bl	_printf
LBB0_10:
	mov	x0, x19
	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
	b	_free
LBB0_11:
	str	xzr, [sp]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	ldrsb	x20, [x19]
	cbz	x20, LBB0_15
; %bb.12:
	subs	x21, x20, #1
Lloh8:
	adrp	x22, l_.str.4@PAGE
Lloh9:
	add	x22, x22, l_.str.4@PAGEOFF
Lloh10:
	adrp	x23, l_.str.5@PAGE
Lloh11:
	add	x23, x23, l_.str.5@PAGEOFF
	csel	x8, x23, x22, eq
	stp	x20, x8, [sp]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	cmp	w20, #1
	b.eq	LBB0_15
; %bb.13:
	add	x24, x19, #1
Lloh14:
	adrp	x20, l_.str.3@PAGE
Lloh15:
	add	x20, x20, l_.str.3@PAGEOFF
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldrsb	x8, [x24], #1
	subs	x21, x21, #1
	csel	x9, x23, x22, eq
	stp	x8, x9, [sp]
	mov	x0, x20
	bl	_printf
	cbnz	x21, LBB0_14
LBB0_15:
	mov	w0, #10
	bl	_putchar
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

l_.str.1:                               ; @.str.1
	.asciz	"STRING_0x%02x = <read error>\n"

l_.str.2:                               ; @.str.2
	.asciz	"STRING_0x%02x = "

l_.str.3:                               ; @.str.3
	.asciz	"0x%02x%s"

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

l_.str.5:                               ; @.str.5
	.space	1

l_.str.7:                               ; @.str.7
	.asciz	"STRING_0x%02x = <%s>\n"

.subsections_via_symbols
