	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usbnet_terminate_urbs
_usbnet_terminate_urbs:                 ## @usbnet_terminate_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, %rbx
	movq	_wait@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DECLARE_WAITQUEUE
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_add_wait_queue
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	leaq	12(%rbx), %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_unlink_urbs
	movl	%eax, %r15d
	leaq	16(%rbx), %r13
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_unlink_urbs
	addl	%eax, %r15d
	movq	%r13, %rdi
	callq	_wait_skb_queue_empty
	movq	%r12, %rdi
	callq	_wait_skb_queue_empty
	leaq	8(%rbx), %rdi
	callq	_wait_skb_queue_empty
	movq	_ifdown@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r15d, %r8d
	callq	_netif_dbg
	movq	_TASK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_remove_wait_queue              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_wait,4,2                       ## @wait
	.comm	_current,4,2                    ## @current
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ## @TASK_UNINTERRUPTIBLE
	.comm	_ifdown,4,2                     ## @ifdown
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"waited for %d urb completions\n"

	.comm	_TASK_RUNNING,4,2               ## @TASK_RUNNING
	.no_dead_strip	_usbnet_terminate_urbs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usbnet_terminate_urbs
_usbnet_terminate_urbs:                 ; @usbnet_terminate_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
Lloh0:
	adrp	x20, _wait@GOTPAGE
Lloh1:
	ldr	x20, [x20, _wait@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _current@GOTPAGE
Lloh3:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_DECLARE_WAITQUEUE
	mov	x0, x19
	mov	x1, x20
	bl	_add_wait_queue
Lloh5:
	adrp	x8, _TASK_UNINTERRUPTIBLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TASK_UNINTERRUPTIBLE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_set_current_state
	add	x21, x19, #12
	mov	x0, x19
	mov	x1, x21
	bl	_unlink_urbs
	mov	x22, x0
	add	x23, x19, #16
	mov	x0, x19
	mov	x1, x23
	bl	_unlink_urbs
	add	w22, w0, w22
	mov	x0, x23
	bl	_wait_skb_queue_empty
	mov	x0, x21
	bl	_wait_skb_queue_empty
	add	x0, x19, #8
	bl	_wait_skb_queue_empty
Lloh8:
	adrp	x8, _ifdown@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ifdown@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
Lloh11:
	adrp	x3, l_.str@PAGE
Lloh12:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x4, x22
	bl	_netif_dbg
Lloh13:
	adrp	x8, _TASK_RUNNING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TASK_RUNNING@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_set_current_state
	mov	x0, x19
	mov	x1, x20
	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
	b	_remove_wait_queue
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_wait,4,2                       ; @wait
	.comm	_current,4,2                    ; @current
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ; @TASK_UNINTERRUPTIBLE
	.comm	_ifdown,4,2                     ; @ifdown
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"waited for %d urb completions\n"

	.comm	_TASK_RUNNING,4,2               ; @TASK_RUNNING
	.no_dead_strip	_usbnet_terminate_urbs
.subsections_via_symbols
