	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usb_urb_init                   ## -- Begin function usb_urb_init
	.p2align	4, 0x90
_usb_urb_init:                          ## @usb_urb_init
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.2:
	movq	%rdi, %rbx
	movl	$4, %edx
	callq	_memcpy
	movl	4(%rbx), %esi
	movl	16(%rbx), %r14d
	movl	%r14d, %edi
	callq	_usb_rcvbulkpipe
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_usb_clear_halt
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.4:
	movl	(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_7
## %bb.5:
	cmpl	$129, %eax
	jne	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_usb_bulk_urb_init              ## TAILCALL
LBB0_3:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_9
LBB0_7:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_usb_isoc_urb_init              ## TAILCALL
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
LBB0_9:
	callq	_err
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"there is no data callback - this doesn't make sense."

L_.str.1:                               ## @.str.1
	.asciz	"unknown URB-type for data transfer."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usb_urb_init                   ; -- Begin function usb_urb_init
	.p2align	2
_usb_urb_init:                          ; @usb_urb_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_10
; %bb.1:
	cbz	x1, LBB0_10
; %bb.2:
	mov	x19, x0
	mov	w2, #4
	bl	_memcpy
	ldr	w20, [x19, #16]
	ldr	w1, [x19, #4]
	mov	x0, x20
	bl	_usb_rcvbulkpipe
	mov	x1, x0
	mov	x0, x20
	bl	_usb_clear_halt
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #129
	b.ne	LBB0_8
; %bb.5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_usb_bulk_urb_init
LBB0_6:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_usb_isoc_urb_init
LBB0_8:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_9:
	bl	_err
LBB0_10:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"there is no data callback - this doesn't make sense."

l_.str.1:                               ; @.str.1
	.asciz	"unknown URB-type for data transfer."

.subsections_via_symbols
