	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_msc_shorter_cmd
_do_msc_shorter_cmd:                    ## @do_msc_shorter_cmd
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	leaq	-68(%rbp), %r15
	leaq	L_.str(%rip), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_xfer_out@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-64(%rbp), %rsi
	movl	%ebx, %edx
	movq	%r15, %rcx
	movl	$250, %r8d
	callq	_libusb20_tr_bulk_intr_sync
	movl	%eax, %r14d
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$15, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_printf
	movl	%r13d, %edi
	callq	_do_msc_reset
	testl	%r14d, %r14d
	jne	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	$15, %ebx
	jne	LBB0_2
	jmp	LBB0_4
LBB0_3:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_stats@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_xfer_out,4,2                   ## @xfer_out
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sent short %d of %d bytes wrapper block, status = %d\n"

	.comm	_stats,4,2                      ## @stats
L_str:                                  ## @str
	.asciz	"ERROR: Too short command wrapper was not accepted"

	.no_dead_strip	_do_msc_shorter_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_msc_shorter_cmd
_do_msc_shorter_cmd:                    ; @do_msc_shorter_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	w20, #0
Lloh3:
	adrp	x23, _xfer_out@GOTPAGE
Lloh4:
	ldr	x23, [x23, _xfer_out@GOTPAGEOFF]
	mov	w24, #15
Lloh5:
	adrp	x21, l_.str@PAGE
Lloh6:
	add	x21, x21, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	add	x1, sp, #40
	add	x3, sp, #36
	mov	x2, x20
	mov	w4, #250
	bl	_libusb20_tr_bulk_intr_sync
	mov	x22, x0
	stp	x24, x22, [sp, #8]
	str	x20, [sp]
	mov	x0, x21
	bl	_printf
	mov	x0, x19
	bl	_do_msc_reset
	cbnz	w22, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w20, w20, #1
	cmp	w20, #15
	b.ne	LBB0_1
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x0, l_str@PAGE
Lloh8:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh9:
	adrp	x8, _stats@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stats@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_4:
	ldr	x8, [sp, #56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_xfer_out,4,2                   ; @xfer_out
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sent short %d of %d bytes wrapper block, status = %d\n"

	.comm	_stats,4,2                      ; @stats
l_str:                                  ; @str
	.asciz	"ERROR: Too short command wrapper was not accepted"

	.no_dead_strip	_do_msc_shorter_cmd
.subsections_via_symbols
