	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usbnet_suspend                 ## -- Begin function usbnet_suspend
	.p2align	4, 0x90
_usbnet_suspend:                        ## @usbnet_suspend
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	callq	_usb_get_intfdata
	movq	%rax, %rbx
	movl	28(%rax), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 28(%rbx)
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irq
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.2:
	movl	%r12d, %edi
	callq	_PMSG_IS_AUTO
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	decl	28(%rbx)
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_5
LBB0_4:
	movq	_EVENT_DEV_ASLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	addq	$24, %rsi
	callq	_set_bit
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movl	(%rbx), %edi
	callq	_netif_device_detach
	movq	%rbx, %rdi
	callq	_usbnet_terminate_urbs
	movq	%rbx, %rdi
	callq	___usbnet_status_stop_force
	movl	(%rbx), %edi
	callq	_netif_device_attach
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EVENT_DEV_ASLEEP,4,2           ## @EVENT_DEV_ASLEEP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usbnet_suspend                 ; -- Begin function usbnet_suspend
	.p2align	2
_usbnet_suspend:                        ; @usbnet_suspend
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	bl	_usb_get_intfdata
	ldr	w8, [x0, #28]
	add	w9, w8, #1
	str	w9, [x0, #28]
	cbnz	w8, LBB0_5
; %bb.1:
	mov	x19, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_spin_lock_irq
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_PMSG_IS_AUTO
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w8, [x19, #28]
	sub	w8, w8, #1
	str	w8, [x19, #28]
	mov	x0, x20
	bl	_spin_unlock_irq
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _EVENT_DEV_ASLEEP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVENT_DEV_ASLEEP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x19, #24
	bl	_set_bit
	mov	x0, x20
	bl	_spin_unlock_irq
	ldr	w0, [x19]
	bl	_netif_device_detach
	mov	x0, x19
	bl	_usbnet_terminate_urbs
	mov	x0, x19
	bl	___usbnet_status_stop_force
	ldr	w0, [x19]
	bl	_netif_device_attach
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EVENT_DEV_ASLEEP,4,2           ; @EVENT_DEV_ASLEEP
.subsections_via_symbols
