	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function xennet_disconnect_backend
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_xennet_disconnect_backend:             ## @xennet_disconnect_backend
	.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, %r14
	movq	(%rdi), %rdi
	movl	(%rdi), %ebx
	callq	_netif_carrier_off
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.1:
	imulq	$88, %rbx, %r15
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_xennet_release_tx_bufs
	movq	%r12, %rdi
	callq	_xennet_release_rx_bufs
	movl	52(%r13,%rbx), %edi
	callq	_gnttab_free_grant_references
	movl	48(%r13,%rbx), %edi
	callq	_gnttab_free_grant_references
	movq	24(%r13,%rbx), %rsi
	movq	40(%r13,%rbx), %rdi
	callq	_xennet_end_access
	movq	16(%r13,%rbx), %rsi
	movq	32(%r13,%rbx), %rdi
	callq	_xennet_end_access
	movq	_GRANT_INVALID_REF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	%rax, 40(%r13,%rbx)
	movq	(%rcx), %rax
	movq	%rax, 32(%r13,%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r13,%rbx)
	addq	$88, %rbx
	cmpq	%rbx, %r15
	je	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %r13
	testq	%r13, %r13
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rbx,%r13), %r12
	leaq	(%rbx,%r13), %rdi
	addq	$80, %rdi
	callq	_del_timer_sync
	movq	(%r13,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	8(%r13,%rbx), %rdi
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rsi
	callq	_unbind_from_irqhandler
	movq	(%r13,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	8(%r13,%rbx), %rdi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rsi
	callq	_unbind_from_irqhandler
	movq	8(%r13,%rbx), %rdi
	movq	%r12, %rsi
	callq	_unbind_from_irqhandler
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r13,%rbx)
	movups	%xmm0, 64(%r13,%rbx)
	movq	(%r14), %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rbx,%r13), %rdi
	addq	$56, %rdi
	callq	_napi_synchronize
	jmp	LBB0_10
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRANT_INVALID_REF,8,3          ## @GRANT_INVALID_REF
	.no_dead_strip	_xennet_disconnect_backend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xennet_disconnect_backend
_xennet_disconnect_backend:             ; @xennet_disconnect_backend
	.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
	ldr	x0, [x0]
	ldr	w20, [x0]
	bl	_netif_carrier_off
	cbz	w20, LBB0_11
; %bb.1:
	mov	x21, #0
	mov	w8, #88
	mul	x22, x20, x8
Lloh0:
	adrp	x23, _GRANT_INVALID_REF@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GRANT_INVALID_REF@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_xennet_release_tx_bufs
	mov	x0, x20
	bl	_xennet_release_rx_bufs
	add	x20, x24, x21
	ldr	w0, [x20, #52]
	bl	_gnttab_free_grant_references
	ldr	w0, [x20, #48]
	bl	_gnttab_free_grant_references
	ldr	x0, [x20, #40]
	ldr	x1, [x20, #24]
	bl	_xennet_end_access
	ldr	x0, [x20, #32]
	ldr	x1, [x20, #16]
	bl	_xennet_end_access
	ldr	x8, [x23]
	str	x8, [x20, #40]
	ldr	x8, [x23]
	stp	xzr, x8, [x20, #24]
	str	xzr, [x20, #16]
	add	x21, x21, #88
	cmp	x22, x21
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x19, #8]
	cbz	x24, LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x24, x21
	add	x0, x20, #80
	bl	_del_timer_sync
	ldr	x0, [x20]
	cbz	x0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x20
	bl	_unbind_from_irqhandler
	ldr	x0, [x24, x21]
	cbz	x0, LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x20
	bl	_unbind_from_irqhandler
	ldr	x0, [x20, #8]
	mov	x1, x20
	bl	_unbind_from_irqhandler
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	stp	xzr, xzr, [x20]
	stp	xzr, xzr, [x20, #64]
	ldr	x0, [x19]
	bl	_netif_running
	cbz	x0, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x24, x21
	add	x0, x8, #56
	bl	_napi_synchronize
	b	LBB0_2
LBB0_11:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GRANT_INVALID_REF,8,3          ; @GRANT_INVALID_REF
	.no_dead_strip	_xennet_disconnect_backend
.subsections_via_symbols
