	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unlink_all_urbs
_unlink_all_urbs:                       ## @unlink_all_urbs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	20(%rdi), %edi
	callq	_usb_unlink_urb
	leaq	16(%rbx), %rdi
	callq	_usb_kill_anchored_urbs
	leaq	12(%rbx), %rdi
	callq	_usb_kill_anchored_urbs
	leaq	8(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	_MAX_TX_URBS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_3
## %bb.1:
	movq	(%rbx), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, (%rdx,%rsi,4)
	incq	%rsi
	movslq	(%rax), %rcx
	cmpq	%rcx, %rsi
	jl	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_TX_URBS,4,2                ## @MAX_TX_URBS
	.no_dead_strip	_unlink_all_urbs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unlink_all_urbs
_unlink_all_urbs:                       ; @unlink_all_urbs
	.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
	mov	x19, x0
	ldr	w0, [x0, #20]
	bl	_usb_unlink_urb
	add	x0, x19, #16
	bl	_usb_kill_anchored_urbs
	add	x0, x19, #12
	bl	_usb_kill_anchored_urbs
	add	x0, x19, #8
	mov	w1, #0
	bl	_atomic_set
Lloh0:
	adrp	x8, _MAX_TX_URBS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_TX_URBS@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x10, #0
	ldr	x11, [x19]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	w9, [x11, x10, lsl #2]
	add	x10, x10, #1
	ldrsw	x9, [x8]
	cmp	x10, x9
	b.lt	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_TX_URBS,4,2                ; @MAX_TX_URBS
	.no_dead_strip	_unlink_all_urbs
.subsections_via_symbols
