	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netback_remove
_netback_remove:                        ## @netback_remove
	.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	_dev_get_drvdata
	movq	%rax, %rbx
	movq	_XenbusStateClosed@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_set_backend_state
	movq	%rbx, %rdi
	callq	_unregister_hotplug_status_watch
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_KOBJ_OFFLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_kobject_uevent
	movq	8(%rbx), %rdi
	callq	_xen_unregister_watchers
	movq	_XBT_NIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %esi
	leaq	L_.str(%rip), %rdx
	callq	_xenbus_rm
	movq	8(%rbx), %rdi
	callq	_xenvif_free
	movq	$0, 8(%rbx)
LBB0_2:
	movq	(%rbx), %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_kfree
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_dev_set_drvdata
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XenbusStateClosed,4,2          ## @XenbusStateClosed
	.comm	_KOBJ_OFFLINE,4,2               ## @KOBJ_OFFLINE
	.comm	_XBT_NIL,4,2                    ## @XBT_NIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hotplug-status"

	.no_dead_strip	_netback_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netback_remove
_netback_remove:                        ; @netback_remove
	.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	x19, x0
	bl	_dev_get_drvdata
	mov	x20, x0
Lloh0:
	adrp	x8, _XenbusStateClosed@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XenbusStateClosed@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_set_backend_state
	mov	x0, x20
	bl	_unregister_hotplug_status_watch
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _KOBJ_OFFLINE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KOBJ_OFFLINE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kobject_uevent
	ldr	x0, [x20, #8]
	bl	_xen_unregister_watchers
Lloh6:
	adrp	x8, _XBT_NIL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XBT_NIL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x19, #4]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	bl	_xenbus_rm
	ldr	x0, [x20, #8]
	bl	_xenvif_free
	str	xzr, [x20, #8]
LBB0_2:
	ldr	x0, [x20]
	bl	_kfree
	mov	x0, x20
	bl	_kfree
	mov	x0, x19
	mov	x1, #0
	bl	_dev_set_drvdata
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_XenbusStateClosed,4,2          ; @XenbusStateClosed
	.comm	_KOBJ_OFFLINE,4,2               ; @KOBJ_OFFLINE
	.comm	_XBT_NIL,4,2                    ; @XBT_NIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hotplug-status"

	.no_dead_strip	_netback_remove
.subsections_via_symbols
