	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usbnet_resume                  ## -- Begin function usbnet_resume
	.p2align	4, 0x90
_usbnet_resume:                         ## @usbnet_resume
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_usb_get_intfdata
	movq	%rax, %r12
	decl	44(%rax)
	jne	LBB0_15
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_GFP_NOIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	___usbnet_status_start_force
	leaq	24(%r12), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irq
	leaq	40(%r12), %rbx
	movq	%rbx, %rdi
	callq	_usb_get_from_anchor
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r15
	leaq	16(%r12), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r12), %edi
	callq	_netif_trans_update
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	___skb_queue_tail
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_usb_get_from_anchor
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %r14
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_usb_submit_urb
	testl	%eax, %eax
	jns	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_dev_kfree_skb_any
	movl	(%r15), %edi
	callq	_kfree
	movq	%r15, %rdi
	callq	_usb_free_urb
	movl	36(%r12), %edi
	callq	_usb_autopm_put_interface_async
	jmp	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	callq	_smp_mb
	movq	_EVENT_DEV_ASLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_clear_bit
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irq
	movq	_EVENT_DEV_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_15
## %bb.8:
	movl	8(%r12), %edi
	callq	_netif_device_present
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	leaq	32(%r12), %rdi
	callq	_timer_pending
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	movq	_EVENT_RX_HALT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	_GFP_NOIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rx_alloc_submit
LBB0_12:
	movq	16(%r12), %r14
	movq	%r12, %rdi
	callq	_TX_QLEN
	cmpq	%rax, %r14
	jge	LBB0_14
## %bb.13:
	movl	8(%r12), %edi
	callq	_netif_tx_wake_all_queues
LBB0_14:
	movq	%r12, %rdi
	addq	$4, %rdi
	callq	_tasklet_schedule
LBB0_15:
	movq	_EVENT_DEVICE_REPORT_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	callq	_usb_autopm_get_interface_no_resume
LBB0_17:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_NOIO,4,2                   ## @GFP_NOIO
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_EVENT_DEV_ASLEEP,4,2           ## @EVENT_DEV_ASLEEP
	.comm	_EVENT_DEV_OPEN,4,2             ## @EVENT_DEV_OPEN
	.comm	_EVENT_RX_HALT,4,2              ## @EVENT_RX_HALT
	.comm	_EVENT_DEVICE_REPORT_IDLE,4,2   ## @EVENT_DEVICE_REPORT_IDLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usbnet_resume                  ; -- Begin function usbnet_resume
	.p2align	2
_usbnet_resume:                         ; @usbnet_resume
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_usb_get_intfdata
	mov	x20, x0
	ldr	w8, [x0, #44]
	subs	w8, w8, #1
	str	w8, [x0, #44]
	b.ne	LBB0_15
; %bb.1:
Lloh0:
	adrp	x26, _GFP_NOIO@GOTPAGE
Lloh1:
	ldr	x26, [x26, _GFP_NOIO@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x20
	bl	___usbnet_status_start_force
	add	x21, x20, #24
	mov	x0, x21
	bl	_spin_lock_irq
	add	x22, x20, #40
	mov	x0, x22
	bl	_usb_get_from_anchor
	cbz	x0, LBB0_7
; %bb.2:
	mov	x24, x0
	add	x23, x20, #16
Lloh2:
	adrp	x27, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x27, [x27, _GFP_ATOMIC@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x20, #8]
	bl	_netif_trans_update
	mov	x0, x23
	mov	x1, x25
	bl	___skb_queue_tail
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_usb_get_from_anchor
	mov	x24, x0
	cbz	x0, LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x24, #8]
	ldr	w1, [x27]
	mov	x0, x24
	bl	_usb_submit_urb
	tbz	w0, #31, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x25
	bl	_dev_kfree_skb_any
	ldr	w0, [x24]
	bl	_kfree
	mov	x0, x24
	bl	_usb_free_urb
	ldr	w0, [x20, #36]
	bl	_usb_autopm_put_interface_async
	b	LBB0_4
LBB0_7:
	bl	_smp_mb
Lloh4:
	adrp	x8, _EVENT_DEV_ASLEEP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EVENT_DEV_ASLEEP@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_clear_bit
	mov	x0, x21
	bl	_spin_unlock_irq
Lloh7:
	adrp	x8, _EVENT_DEV_OPEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EVENT_DEV_OPEN@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_15
; %bb.8:
	ldr	w0, [x20, #8]
	bl	_netif_device_present
	cbz	x0, LBB0_12
; %bb.9:
	add	x0, x20, #32
	bl	_timer_pending
	cbnz	w0, LBB0_12
; %bb.10:
Lloh10:
	adrp	x8, _EVENT_RX_HALT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EVENT_RX_HALT@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbnz	x0, LBB0_12
; %bb.11:
	ldr	w1, [x26]
	mov	x0, x20
	bl	_rx_alloc_submit
LBB0_12:
	ldr	x21, [x20, #16]
	mov	x0, x20
	bl	_TX_QLEN
	cmp	x21, x0
	b.ge	LBB0_14
; %bb.13:
	ldr	w0, [x20, #8]
	bl	_netif_tx_wake_all_queues
LBB0_14:
	add	x0, x20, #4
	bl	_tasklet_schedule
LBB0_15:
Lloh13:
	adrp	x8, _EVENT_DEVICE_REPORT_IDLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EVENT_DEVICE_REPORT_IDLE@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_and_clear_bit
	cbz	x0, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_usb_autopm_get_interface_no_resume
LBB0_17:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_NOIO,4,2                   ; @GFP_NOIO
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_EVENT_DEV_ASLEEP,4,2           ; @EVENT_DEV_ASLEEP
	.comm	_EVENT_DEV_OPEN,4,2             ; @EVENT_DEV_OPEN
	.comm	_EVENT_RX_HALT,4,2              ; @EVENT_RX_HALT
	.comm	_EVENT_DEVICE_REPORT_IDLE,4,2   ; @EVENT_DEVICE_REPORT_IDLE
.subsections_via_symbols
