	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function deactivate_urbs
_deactivate_urbs:                       ## @deactivate_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	testl	%esi, %esi
	je	LBB0_1
LBB0_3:
	testl	%edx, %edx
	je	LBB0_5
## %bb.4:
	xorl	%r13d, %r13d
	jmp	LBB0_6
LBB0_1:
	movq	48(%r14), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.2:
	movq	_EBADFD@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_5:
	movq	48(%r14), %rax
	cmpq	$0, (%rax)
	setne	%r13b
LBB0_6:
	movq	_EP_FLAG_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	44(%r14), %rsi
	callq	_clear_bit
	leaq	40(%r14), %rdi
	callq	_INIT_LIST_HEAD
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r14)
	testb	%r13b, %r13b
	jne	LBB0_8
## %bb.7:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_in_interrupt
	testq	%rax, %rax
	jne	LBB0_17
LBB0_8:
	cmpl	$0, (%r14)
	je	LBB0_16
## %bb.9:
	leaq	20(%r14), %r12
	leaq	16(%r14), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	callq	_usb_kill_urb
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	movl	(%r14), %eax
	cmpq	%rax, %rbx
	jae	LBB0_16
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	testb	%r13b, %r13b
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	callq	_usb_unlink_urb
	jmp	LBB0_15
LBB0_16:
	xorl	%ebx, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBADFD,4,2                     ## @EBADFD
	.comm	_EP_FLAG_RUNNING,4,2            ## @EP_FLAG_RUNNING
	.no_dead_strip	_deactivate_urbs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function deactivate_urbs
_deactivate_urbs:                       ; @deactivate_urbs
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	cbz	w1, LBB0_3
LBB0_1:
	cbz	w2, LBB0_5
; %bb.2:
	mov	w23, #0
	b	LBB0_6
LBB0_3:
	ldr	x8, [x19, #48]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_1
; %bb.4:
Lloh0:
	adrp	x8, _EBADFD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBADFD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_5:
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w23, ne
LBB0_6:
Lloh3:
	adrp	x8, _EP_FLAG_RUNNING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EP_FLAG_RUNNING@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x19, #44
	bl	_clear_bit
	add	x0, x19, #40
	bl	_INIT_LIST_HEAD
	stp	xzr, xzr, [x19, #24]
	tbnz	w23, #0, LBB0_8
; %bb.7:
	bl	_in_interrupt
	cbnz	x0, LBB0_16
LBB0_8:
	ldr	w8, [x19]
	cbz	w8, LBB0_16
; %bb.9:
	mov	x20, #0
	add	x21, x19, #20
	add	x22, x19, #16
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	bl	_usb_kill_urb
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x20, x20, #1
	ldr	w8, [x19]
	cmp	x20, x8
	b.hs	LBB0_16
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_test_and_set_bit
	cbnz	w0, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x20, lsl #3]
	cbz	w23, LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	bl	_usb_unlink_urb
	b	LBB0_11
LBB0_16:
	mov	w0, #0
LBB0_17:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EBADFD,4,2                     ; @EBADFD
	.comm	_EP_FLAG_RUNNING,4,2            ; @EP_FLAG_RUNNING
	.no_dead_strip	_deactivate_urbs
.subsections_via_symbols
