	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pegasus_disconnect
_pegasus_disconnect:                    ## @pegasus_disconnect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_usb_get_intfdata
	movq	%rax, %rbx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_usb_set_intfdata
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	movq	_PEGASUS_UNPLUG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%rbx)
	movq	%rbx, %rdi
	addq	$16, %rdi
	callq	_cancel_delayed_work
	movl	(%rbx), %edi
	callq	_unregister_netdev
	movq	%rbx, %rdi
	callq	_unlink_all_urbs
	movq	%rbx, %rdi
	callq	_free_all_urbs
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_dev_kfree_skb
	movq	$0, 8(%rbx)
LBB0_3:
	movl	(%rbx), %edi
	callq	_free_netdev
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pegasus_dec_workqueue          ## TAILCALL
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unregistering non-bound device?\n"

	.comm	_PEGASUS_UNPLUG,4,2             ## @PEGASUS_UNPLUG
	.no_dead_strip	_pegasus_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pegasus_disconnect
_pegasus_disconnect:                    ; @pegasus_disconnect
	.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	x20, x0
	bl	_usb_get_intfdata
	mov	x19, x0
	mov	x0, x20
	mov	x1, #0
	bl	_usb_set_intfdata
	cbz	x19, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _PEGASUS_UNPLUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PEGASUS_UNPLUG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #20]
	orr	w8, w9, w8
	str	w8, [x19, #20]
	add	x0, x19, #16
	bl	_cancel_delayed_work
	ldr	w0, [x19]
	bl	_unregister_netdev
	mov	x0, x19
	bl	_unlink_all_urbs
	mov	x0, x19
	bl	_free_all_urbs
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_dev_kfree_skb
	str	xzr, [x19, #8]
LBB0_3:
	ldr	w0, [x19]
	bl	_free_netdev
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pegasus_dec_workqueue
LBB0_4:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_dbg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unregistering non-bound device?\n"

	.comm	_PEGASUS_UNPLUG,4,2             ; @PEGASUS_UNPLUG
	.no_dead_strip	_pegasus_disconnect
.subsections_via_symbols
