	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libusb20_tr_bulk_intr_sync     ## -- Begin function libusb20_tr_bulk_intr_sync
	.p2align	4, 0x90
_libusb20_tr_bulk_intr_sync:            ## @libusb20_tr_bulk_intr_sync
	.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
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	(%rdi), %r14
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movq	$0, (%rcx)
LBB0_2:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_libusb20_tr_pending
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_LIBUSB20_ERROR_OTHER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%r13, %rdi
	callq	_libusb20_tr_get_max_total_length
	movq	%rax, %r15
	cmpq	%rbx, %rax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	cmovgeq	%rbx, %r15
	movq	%r13, %rdi
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_libusb20_tr_setup_bulk
	movq	%r13, %rdi
	callq	_libusb20_tr_start
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	callq	_libusb20_dev_process
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%r13, %rdi
	callq	_libusb20_tr_pending
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_libusb20_dev_wait_process
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_libusb20_tr_get_actual_length
	movq	%rax, %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	%r12, (%rax)
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_libusb20_tr_get_status
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r15, %r12
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	leaq	(%r12,%r15,4), %r12
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	subq	%r15, %rbx
	jne	LBB0_4
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LIBUSB20_ERROR_OTHER,4,2       ## @LIBUSB20_ERROR_OTHER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libusb20_tr_bulk_intr_sync     ; -- Begin function libusb20_tr_bulk_intr_sync
	.p2align	2
_libusb20_tr_bulk_intr_sync:            ; @libusb20_tr_bulk_intr_sync
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	ldr	x24, [x0]
	cbz	x3, LBB0_2
; %bb.1:
	str	xzr, [x20]
LBB0_2:
	mov	x0, x23
	bl	_libusb20_tr_pending
	cbz	x0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _LIBUSB20_ERROR_OTHER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LIBUSB20_ERROR_OTHER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	x0, x23
	bl	_libusb20_tr_get_max_total_length
	cmp	x0, x21
	csel	x25, x0, x21, lt
	mov	x0, x23
	mov	x1, x22
	mov	x2, x25
	mov	x3, x19
	bl	_libusb20_tr_setup_bulk
	mov	x0, x23
	bl	_libusb20_tr_start
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x24
	bl	_libusb20_dev_process
	cbnz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, x23
	bl	_libusb20_tr_pending
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, x24
	mov	w1, #-1
	bl	_libusb20_dev_wait_process
	b	LBB0_5
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_libusb20_tr_get_actual_length
	mov	x26, x0
	cbz	x20, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	add	x8, x8, x26
	str	x8, [x20]
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_libusb20_tr_get_status
	cbnz	w0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	x26, x25
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, x25, lsl #2
	sub	x21, x21, x25
	cbnz	x21, LBB0_4
LBB0_13:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LIBUSB20_ERROR_OTHER,4,2       ; @LIBUSB20_ERROR_OTHER
.subsections_via_symbols
