	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb_get_transfer_by_ep_no
_usb_get_transfer_by_ep_no:             ## @usb_get_transfer_by_ep_no
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_LIBUSB20_ENDPOINT_ADDRESS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%esi, %eax
	movq	_LIBUSB20_ENDPOINT_DIR_MASK@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%esi, %ecx
	setne	%dl
	leal	(%rdx,%rax,2), %r15d
	callq	_libusb20_dev_get_speed
	movq	_LIBUSB20_SPEED_LOW@GOTPCREL(%rip), %rcx
	movl	$256, %r12d                     ## imm = 0x100
	cmpl	(%rcx), %eax
	je	LBB0_3
## %bb.1:
	movq	_LIBUSB20_SPEED_FULL@GOTPCREL(%rip), %rcx
	movl	$4096, %r12d                    ## imm = 0x1000
	cmpl	(%rcx), %eax
	je	LBB0_3
## %bb.2:
	movq	_LIBUSB20_SPEED_SUPER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	$65536, %eax                    ## imm = 0x10000
	movl	$16384, %r12d                   ## imm = 0x4000
	cmovel	%eax, %r12d
LBB0_3:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_libusb20_tr_get_pointer
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r12d, %esi
	movl	$1, %edx
	movl	%r14d, %ecx
	callq	_libusb20_tr_open
	movq	_LIBUSB20_ERROR_BUSY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
## %bb.6:
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovneq	%rcx, %rbx
	jmp	LBB0_7
LBB0_4:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LIBUSB20_ENDPOINT_ADDRESS_MASK,4,2 ## @LIBUSB20_ENDPOINT_ADDRESS_MASK
	.comm	_LIBUSB20_ENDPOINT_DIR_MASK,4,2 ## @LIBUSB20_ENDPOINT_DIR_MASK
	.comm	_LIBUSB20_SPEED_LOW,4,2         ## @LIBUSB20_SPEED_LOW
	.comm	_LIBUSB20_SPEED_FULL,4,2        ## @LIBUSB20_SPEED_FULL
	.comm	_LIBUSB20_SPEED_SUPER,4,2       ## @LIBUSB20_SPEED_SUPER
	.comm	_LIBUSB20_ERROR_BUSY,4,2        ## @LIBUSB20_ERROR_BUSY
	.no_dead_strip	_usb_get_transfer_by_ep_no
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb_get_transfer_by_ep_no
_usb_get_transfer_by_ep_no:             ; @usb_get_transfer_by_ep_no
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _LIBUSB20_ENDPOINT_ADDRESS_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LIBUSB20_ENDPOINT_ADDRESS_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w1
Lloh3:
	adrp	x9, _LIBUSB20_ENDPOINT_DIR_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LIBUSB20_ENDPOINT_DIR_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w1
	cset	w21, ne
	bfi	w21, w8, #1, #31
	bl	_libusb20_dev_get_speed
Lloh6:
	adrp	x8, _LIBUSB20_SPEED_LOW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LIBUSB20_SPEED_LOW@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	mov	w22, #256
	b	LBB0_5
LBB0_2:
Lloh9:
	adrp	x8, _LIBUSB20_SPEED_FULL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LIBUSB20_SPEED_FULL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.3:
	mov	w22, #4096
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _LIBUSB20_SPEED_SUPER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LIBUSB20_SPEED_SUPER@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	w9, #16384
	mov	w10, #65536
	cmp	w0, w8
	csel	w22, w10, w9, eq
LBB0_5:
	mov	x0, x20
	mov	x1, x21
	bl	_libusb20_tr_get_pointer
	mov	x20, x0
	cbz	x0, LBB0_8
; %bb.6:
	mov	x0, x20
	mov	x1, x22
	mov	w2, #1
	mov	x3, x19
	bl	_libusb20_tr_open
Lloh15:
	adrp	x8, _LIBUSB20_ERROR_BUSY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LIBUSB20_ERROR_BUSY@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.7:
	cmp	w0, #0
	csel	x20, x20, xzr, eq
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_LIBUSB20_ENDPOINT_ADDRESS_MASK,4,2 ; @LIBUSB20_ENDPOINT_ADDRESS_MASK
	.comm	_LIBUSB20_ENDPOINT_DIR_MASK,4,2 ; @LIBUSB20_ENDPOINT_DIR_MASK
	.comm	_LIBUSB20_SPEED_LOW,4,2         ; @LIBUSB20_SPEED_LOW
	.comm	_LIBUSB20_SPEED_FULL,4,2        ; @LIBUSB20_SPEED_FULL
	.comm	_LIBUSB20_SPEED_SUPER,4,2       ; @LIBUSB20_SPEED_SUPER
	.comm	_LIBUSB20_ERROR_BUSY,4,2        ; @LIBUSB20_ERROR_BUSY
	.no_dead_strip	_usb_get_transfer_by_ep_no
.subsections_via_symbols
