	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function connect
_connect:                               ## @connect
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	24(%rdi), %rbx
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	$1, %edx
	callq	_xenbus_read_unsigned
	movl	%eax, %r15d
	movq	_xenvif_max_queues@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	cmpl	%r8d, %r15d
	jbe	LBB0_1
## %bb.23:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	subl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xenbus_dev_fatal               ## TAILCALL
LBB0_1:
	movq	8(%r13), %rax
	movl	24(%rax), %esi
	movq	%rbx, %rdi
	callq	_xen_net_read_mac
	testl	%eax, %eax
	je	LBB0_2
## %bb.24:
	movl	(%rbx), %ecx
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xenbus_dev_fatal               ## TAILCALL
LBB0_2:
	leaq	-64(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_xen_net_read_rate
	movq	8(%r13), %rdi
	callq	_xen_unregister_watchers
	movq	8(%r13), %rsi
	movq	%rbx, %rdi
	callq	_xen_register_watchers
	movq	%r13, %rdi
	callq	_read_xenbus_vif_flags
	movq	%r13, %rdi
	callq	_connect_ctrl_ring
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
LBB0_4:
	xorl	%eax, %eax
	callq	_xenbus_dev_fatal
LBB0_22:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%r15d, %edi
	movl	$48, %esi
	callq	_array_size
	movl	%eax, %edi
	callq	_vzalloc
	movq	%rax, %r12
	movq	8(%r13), %rax
	movq	%r12, 8(%rax)
	testq	%r12, %r12
	je	LBB0_6
## %bb.7:
	movl	%r15d, (%rax)
	movl	%r15d, 4(%rax)
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	testl	%r15d, %r15d
	je	LBB0_19
## %bb.8:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	leaq	(%rcx,%rcx,2), %rcx
	shlq	$4, %rcx
	addq	$-48, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r8d, %r8d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r12,%r15), %r13
	movq	%rax, 40(%r12,%r15)
	movl	%r8d, (%r12,%r15)
	movl	32(%r12,%r15), %edi
	movq	16(%rax), %rax
	movq	(%rax), %rcx
	movl	$4, %esi
	leaq	L_.str.5(%rip), %rdx
	movl	%r8d, %r14d
	callq	_snprintf
	movq	%r13, %rdi
	callq	_xenvif_init_queue
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rax
	movq	%rax, 8(%r12,%r15)
	movq	-64(%rbp), %rax
	movq	%rax, 16(%r12,%r15)
	movq	-80(%rbp), %rax
	movq	%rax, 24(%r12,%r15)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_connect_data_rings
	testl	%eax, %eax
	jne	LBB0_11
## %bb.17:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%r15, -72(%rbp)                 ## 8-byte Folded Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%r13), %rax
	movq	8(%rax), %r12
	movl	%r14d, %r8d
	incl	%r8d
	addq	$48, %r15
	jmp	LBB0_9
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	subl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%rbx, %rdi
	jmp	LBB0_4
LBB0_19:
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	8(%r13), %rax
	movq	16(%rax), %rdi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	callq	_netif_set_real_num_tx_queues
	movq	8(%r13), %rax
	movq	16(%rax), %rdi
	movl	%r14d, %esi
	callq	_netif_set_real_num_rx_queues
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	8(%r13), %rdi
	callq	_xenvif_carrier_on
	movq	%r13, %rdi
	callq	_unregister_hotplug_status_watch
	leaq	16(%r13), %rsi
	movq	_hotplug_status_changed@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %r8d
	leaq	L_.str.6(%rip), %rcx
	leaq	L_.str.7(%rip), %r9
	movq	%rbx, %rdi
	callq	_xenbus_watch_pathfmt
	testl	%eax, %eax
	jne	LBB0_21
## %bb.20:
	movl	$1, (%r13)
LBB0_21:
	movq	8(%r13), %rax
	movq	16(%rax), %rdi
	callq	_netif_tx_wake_all_queues
	jmp	LBB0_22
LBB0_11:
	movq	%r13, %rdi
	callq	_xenvif_deinit_queue
LBB0_12:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	8(%r12), %rdi
	movl	%r14d, (%rdi)
	testl	%r14d, %r14d
	je	LBB0_16
## %bb.13:
	callq	_xenvif_disconnect_data
	movq	8(%r12), %rdi
	cmpl	$0, (%rdi)
	je	LBB0_16
## %bb.14:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rdi), %rdi
	addq	%r15, %rdi
	callq	_xenvif_deinit_queue
	incq	%rbx
	movq	8(%r12), %rdi
	movl	(%rdi), %eax
	addq	$48, %r15
	cmpq	%rax, %rbx
	jb	LBB0_15
LBB0_16:
	movq	8(%rdi), %rdi
	callq	_vfree
	movq	8(%r12), %rdi
	movq	$0, 8(%rdi)
	movl	$0, (%rdi)
	callq	_xenvif_disconnect_ctrl
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"multi-queue-num-queues"

	.comm	_xenvif_max_queues,4,2          ## @xenvif_max_queues
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"guest requested %u queues, exceeding the maximum of %u."

L_.str.2:                               ## @.str.2
	.asciz	"parsing %s/mac"

L_.str.3:                               ## @.str.3
	.asciz	"connecting control ring"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.4:                               ## @.str.4
	.asciz	"allocating queues"

L_.str.5:                               ## @.str.5
	.asciz	"%s-q%u"

	.comm	_hotplug_status_changed,4,2     ## @hotplug_status_changed
L_.str.6:                               ## @.str.6
	.asciz	"%s/%s"

L_.str.7:                               ## @.str.7
	.asciz	"hotplug-status"

	.no_dead_strip	_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function connect
_connect:                               ; @connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	ldr	x20, [x0, #24]
	ldr	w0, [x20, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #1
	bl	_xenbus_read_unsigned
	mov	x21, x0
Lloh2:
	adrp	x8, _xenvif_max_queues@GOTPAGE
Lloh3:
	ldr	x8, [x8, _xenvif_max_queues@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ls	LBB0_2
; %bb.1:
Lloh5:
	adrp	x9, _EINVAL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	neg	w1, w9
	stp	x21, x8, [sp]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #24]
	mov	x0, x20
	bl	_xen_net_read_mac
	cbz	w0, LBB0_4
; %bb.3:
	mov	x1, x0
	ldr	w8, [x20]
	str	x8, [sp]
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_4:
	add	x1, sp, #24
	add	x2, sp, #16
	mov	x0, x20
	bl	_xen_net_read_rate
	ldr	x0, [x19, #8]
	bl	_xen_unregister_watchers
	ldr	x1, [x19, #8]
	mov	x0, x20
	bl	_xen_register_watchers
	mov	x0, x19
	bl	_read_xenbus_vif_flags
	mov	x0, x19
	bl	_connect_ctrl_ring
	cbz	w0, LBB0_8
; %bb.5:
	mov	x1, x0
Lloh12:
	adrp	x2, l_.str.3@PAGE
Lloh13:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_6:
	mov	x0, x20
	bl	_xenbus_dev_fatal
LBB0_7:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_8:
	mov	x0, x21
	mov	w1, #48
	bl	_array_size
	bl	_vzalloc
	ldr	x8, [x19, #8]
	str	x0, [x8, #8]
	cbz	x0, LBB0_15
; %bb.9:
	stp	w21, w21, [x8]
	cbz	w21, LBB0_16
; %bb.10:
	mov	x23, x0
	mov	x26, #0
	mov	w22, #0
	mov	w9, #48
	mov	x10, #-48
	umaddl	x27, w21, w9, x10
Lloh14:
	adrp	x24, l_.str.5@PAGE
Lloh15:
	add	x24, x24, l_.str.5@PAGEOFF
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x25, x23, x26
	str	x8, [x25, #40]
	str	w22, [x25]
	ldr	w0, [x25, #32]
	ldr	x8, [x8, #16]
	ldr	x3, [x8]
	mov	w1, #4
	mov	x2, x24
	mov	x4, x22
	bl	_snprintf
	mov	x0, x25
	bl	_xenvif_init_queue
	cbnz	w0, LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [sp, #24]
	str	x8, [x25, #8]
	ldr	x8, [sp, #24]
	str	x8, [x25, #16]
	ldr	x8, [sp, #16]
	str	x8, [x25, #24]
	mov	x0, x19
	mov	x1, x25
	bl	_connect_data_rings
	cbnz	w0, LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	x27, x26
	b.eq	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x19, #8]
	ldr	x23, [x8, #8]
	add	w22, w22, #1
	add	x26, x26, #48
	b	LBB0_11
LBB0_15:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w1, w8
Lloh19:
	adrp	x2, l_.str.4@PAGE
Lloh20:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_6
LBB0_16:
	bl	_rtnl_lock
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #16]
	mov	x1, x21
	bl	_netif_set_real_num_tx_queues
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #16]
	mov	x1, x21
	bl	_netif_set_real_num_rx_queues
	bl	_rtnl_unlock
	ldr	x0, [x19, #8]
	bl	_xenvif_carrier_on
	mov	x0, x19
	bl	_unregister_hotplug_status_watch
	add	x1, x19, #16
Lloh21:
	adrp	x8, _hotplug_status_changed@GOTPAGE
Lloh22:
	ldr	x8, [x8, _hotplug_status_changed@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	ldr	w4, [x20]
Lloh24:
	adrp	x3, l_.str.6@PAGE
Lloh25:
	add	x3, x3, l_.str.6@PAGEOFF
Lloh26:
	adrp	x5, l_.str.7@PAGE
Lloh27:
	add	x5, x5, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_xenbus_watch_pathfmt
	cbnz	w0, LBB0_18
; %bb.17:
	mov	w8, #1
	str	w8, [x19]
LBB0_18:
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #16]
	bl	_netif_tx_wake_all_queues
	b	LBB0_7
LBB0_19:
	add	x0, x23, x26
	bl	_xenvif_deinit_queue
LBB0_20:
	ldr	x0, [x19, #8]
	str	w22, [x0]
	cbz	w22, LBB0_24
; %bb.21:
	bl	_xenvif_disconnect_data
	ldr	x0, [x19, #8]
	ldr	w8, [x0]
	cbz	w8, LBB0_24
; %bb.22:
	mov	x20, #0
	mov	x21, #0
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0, #8]
	add	x0, x8, x20
	bl	_xenvif_deinit_queue
	add	x21, x21, #1
	ldr	x0, [x19, #8]
	ldr	w8, [x0]
	add	x20, x20, #48
	cmp	x21, x8
	b.lo	LBB0_23
LBB0_24:
	ldr	x0, [x0, #8]
	bl	_vfree
	ldr	x0, [x19, #8]
	str	xzr, [x0, #8]
	str	wzr, [x0]
	bl	_xenvif_disconnect_ctrl
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"multi-queue-num-queues"

	.comm	_xenvif_max_queues,4,2          ; @xenvif_max_queues
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"guest requested %u queues, exceeding the maximum of %u."

l_.str.2:                               ; @.str.2
	.asciz	"parsing %s/mac"

l_.str.3:                               ; @.str.3
	.asciz	"connecting control ring"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.4:                               ; @.str.4
	.asciz	"allocating queues"

l_.str.5:                               ; @.str.5
	.asciz	"%s-q%u"

	.comm	_hotplug_status_changed,4,2     ; @hotplug_status_changed
l_.str.6:                               ; @.str.6
	.asciz	"%s/%s"

l_.str.7:                               ; @.str.7
	.asciz	"hotplug-status"

	.no_dead_strip	_connect
.subsections_via_symbols
