	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usb_sendbuffer_ex              ## -- Begin function usb_sendbuffer_ex
	.p2align	4, 0x90
_usb_sendbuffer_ex:                     ## @usb_sendbuffer_ex
	.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	%ecx, %r12d
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movslq	%edx, %r13
	callq	___usbgecko_exi_wait
	testl	%r13d, %r13d
	jg	LBB0_1
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	decq	%r13
	leaq	1(%r13), %rax
	cmpq	$1, %rax
	jle	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%rbx), %esi
	movq	%r15, %rdi
	callq	___usb_sendbyte
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%r12d, %r12d
	js	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	decl	%r12d
	jne	LBB0_4
## %bb.6:
	decq	%r13
	jmp	LBB0_7
LBB0_5:
	xorl	%r13d, %r13d
LBB0_7:
	movq	%r15, %rdi
	callq	_EXI_Unlock
	subl	%r13d, %r14d
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usb_sendbuffer_ex              ; -- Begin function usb_sendbuffer_ex
	.p2align	2
_usb_sendbuffer_ex:                     ; @usb_sendbuffer_ex
	.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	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	sxtw	x23, w19
	bl	___usbgecko_exi_wait
	cmp	w19, #1
	b.ge	LBB0_2
	b	LBB0_6
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	add	x8, x23, #1
	cmp	x8, #1
	b.le	LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w1, [x22]
	mov	x0, x20
	bl	___usb_sendbyte
	cbz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x23, x23, #1
	tbnz	w21, #31, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	subs	w21, w21, #1
	b.ne	LBB0_1
	b	LBB0_6
LBB0_5:
	mov	x23, #0
LBB0_6:
	mov	x0, x20
	bl	_EXI_Unlock
	sub	w0, w19, w23
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
