	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ugen20_tr_submit
_ugen20_tr_submit:                      ## @ugen20_tr_submit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	leaq	-24(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	8(%r14), %r8
	movq	16(%r14), %r9
	movq	8(%r8), %rdx
	movl	24(%r14), %eax
	leaq	(%r9,%r9,2), %rsi
	movl	%eax, 8(%rdx,%rsi,4)
	leaq	4(%rdx,%rsi,4), %rdi
	movl	$0, 4(%rdx,%rsi,4)
	movl	(%r14), %eax
	movq	_LIBUSB20_TRANSFER_SINGLE_SHORT_NOT_OK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	_USB_FS_FLAG_SINGLE_SHORT_OK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%ebx, (%rdi)
LBB0_2:
	movq	_LIBUSB20_TRANSFER_MULTI_SHORT_NOT_OK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	_USB_FS_FLAG_MULTI_SHORT_OK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movl	%ebx, (%rdi)
LBB0_4:
	movq	_LIBUSB20_TRANSFER_FORCE_SHORT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_USB_FS_FLAG_FORCE_SHORT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movl	%ebx, (%rdi)
LBB0_6:
	movq	_LIBUSB20_TRANSFER_DO_CLEAR_STALL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	_USB_FS_FLAG_CLEAR_STALL@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, (%rdi)
LBB0_8:
	movl	4(%r14), %eax
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	movl	$65535, %ecx                    ## imm = 0xFFFF
	cmovll	%eax, %ecx
	movl	%ecx, (%rdx,%rsi,4)
	movq	%r9, -24(%rbp)
	movl	(%r8), %ebx
	movq	_USB_FS_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IOUSB
	leaq	-24(%rbp), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ioctl
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LIBUSB20_TRANSFER_SINGLE_SHORT_NOT_OK,4,2 ## @LIBUSB20_TRANSFER_SINGLE_SHORT_NOT_OK
	.comm	_USB_FS_FLAG_SINGLE_SHORT_OK,4,2 ## @USB_FS_FLAG_SINGLE_SHORT_OK
	.comm	_LIBUSB20_TRANSFER_MULTI_SHORT_NOT_OK,4,2 ## @LIBUSB20_TRANSFER_MULTI_SHORT_NOT_OK
	.comm	_USB_FS_FLAG_MULTI_SHORT_OK,4,2 ## @USB_FS_FLAG_MULTI_SHORT_OK
	.comm	_LIBUSB20_TRANSFER_FORCE_SHORT,4,2 ## @LIBUSB20_TRANSFER_FORCE_SHORT
	.comm	_USB_FS_FLAG_FORCE_SHORT,4,2    ## @USB_FS_FLAG_FORCE_SHORT
	.comm	_LIBUSB20_TRANSFER_DO_CLEAR_STALL,4,2 ## @LIBUSB20_TRANSFER_DO_CLEAR_STALL
	.comm	_USB_FS_FLAG_CLEAR_STALL,4,2    ## @USB_FS_FLAG_CLEAR_STALL
	.comm	_USB_FS_START,4,2               ## @USB_FS_START
	.no_dead_strip	_ugen20_tr_submit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ugen20_tr_submit
_ugen20_tr_submit:                      ; @ugen20_tr_submit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	w11, #0
	ldp	x8, x9, [x19, #8]
	ldr	x10, [x8, #8]
	ldr	w13, [x19, #24]
	mov	w12, #12
	madd	x12, x9, x12, x10
	stp	wzr, w13, [x12, #4]!
	ldr	w13, [x19]
Lloh0:
	adrp	x14, _LIBUSB20_TRANSFER_SINGLE_SHORT_NOT_OK@GOTPAGE
Lloh1:
	ldr	x14, [x14, _LIBUSB20_TRANSFER_SINGLE_SHORT_NOT_OK@GOTPAGEOFF]
Lloh2:
	ldr	w14, [x14]
	tst	w14, w13
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x11, _USB_FS_FLAG_SINGLE_SHORT_OK@GOTPAGE
Lloh4:
	ldr	x11, [x11, _USB_FS_FLAG_SINGLE_SHORT_OK@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	str	w11, [x12]
LBB0_2:
Lloh6:
	adrp	x14, _LIBUSB20_TRANSFER_MULTI_SHORT_NOT_OK@GOTPAGE
Lloh7:
	ldr	x14, [x14, _LIBUSB20_TRANSFER_MULTI_SHORT_NOT_OK@GOTPAGEOFF]
Lloh8:
	ldr	w14, [x14]
	tst	w14, w13
	b.ne	LBB0_4
; %bb.3:
Lloh9:
	adrp	x14, _USB_FS_FLAG_MULTI_SHORT_OK@GOTPAGE
Lloh10:
	ldr	x14, [x14, _USB_FS_FLAG_MULTI_SHORT_OK@GOTPAGEOFF]
Lloh11:
	ldr	w14, [x14]
	orr	w11, w11, w14
	str	w11, [x12]
LBB0_4:
Lloh12:
	adrp	x14, _LIBUSB20_TRANSFER_FORCE_SHORT@GOTPAGE
Lloh13:
	ldr	x14, [x14, _LIBUSB20_TRANSFER_FORCE_SHORT@GOTPAGEOFF]
Lloh14:
	ldr	w14, [x14]
	tst	w14, w13
	b.eq	LBB0_6
; %bb.5:
Lloh15:
	adrp	x14, _USB_FS_FLAG_FORCE_SHORT@GOTPAGE
Lloh16:
	ldr	x14, [x14, _USB_FS_FLAG_FORCE_SHORT@GOTPAGEOFF]
Lloh17:
	ldr	w14, [x14]
	orr	w11, w11, w14
	str	w11, [x12]
LBB0_6:
Lloh18:
	adrp	x14, _LIBUSB20_TRANSFER_DO_CLEAR_STALL@GOTPAGE
Lloh19:
	ldr	x14, [x14, _LIBUSB20_TRANSFER_DO_CLEAR_STALL@GOTPAGEOFF]
Lloh20:
	ldr	w14, [x14]
	tst	w14, w13
	b.eq	LBB0_8
; %bb.7:
Lloh21:
	adrp	x13, _USB_FS_FLAG_CLEAR_STALL@GOTPAGE
Lloh22:
	ldr	x13, [x13, _USB_FS_FLAG_CLEAR_STALL@GOTPAGEOFF]
Lloh23:
	ldr	w13, [x13]
	orr	w11, w11, w13
	str	w11, [x12]
LBB0_8:
	ldr	w11, [x19, #4]
	mov	w12, #65535
	cmp	w11, w12
	csel	w11, w11, w12, lt
	mov	w12, #12
	mul	x12, x9, x12
	str	w11, [x10, x12]
	str	x9, [sp, #8]
	ldr	w19, [x8]
Lloh24:
	adrp	x8, _USB_FS_START@GOTPAGE
Lloh25:
	ldr	x8, [x8, _USB_FS_START@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_IOUSB
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x19
	bl	_ioctl
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_LIBUSB20_TRANSFER_SINGLE_SHORT_NOT_OK,4,2 ; @LIBUSB20_TRANSFER_SINGLE_SHORT_NOT_OK
	.comm	_USB_FS_FLAG_SINGLE_SHORT_OK,4,2 ; @USB_FS_FLAG_SINGLE_SHORT_OK
	.comm	_LIBUSB20_TRANSFER_MULTI_SHORT_NOT_OK,4,2 ; @LIBUSB20_TRANSFER_MULTI_SHORT_NOT_OK
	.comm	_USB_FS_FLAG_MULTI_SHORT_OK,4,2 ; @USB_FS_FLAG_MULTI_SHORT_OK
	.comm	_LIBUSB20_TRANSFER_FORCE_SHORT,4,2 ; @LIBUSB20_TRANSFER_FORCE_SHORT
	.comm	_USB_FS_FLAG_FORCE_SHORT,4,2    ; @USB_FS_FLAG_FORCE_SHORT
	.comm	_LIBUSB20_TRANSFER_DO_CLEAR_STALL,4,2 ; @LIBUSB20_TRANSFER_DO_CLEAR_STALL
	.comm	_USB_FS_FLAG_CLEAR_STALL,4,2    ; @USB_FS_FLAG_CLEAR_STALL
	.comm	_USB_FS_START,4,2               ; @USB_FS_START
	.no_dead_strip	_ugen20_tr_submit
.subsections_via_symbols
