	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function connect_data_rings
_connect_data_rings:                    ## @connect_data_rings
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rdi), %r14
	movq	8(%rsi), %rax
	movl	(%rax), %r12d
	movq	(%r14), %rdi
	callq	_strlen
	movq	%rax, %rbx
	cmpl	$1, %r12d
	jne	LBB0_4
## %bb.1:
	incq	%rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r12
	movq	(%r14), %rsi
	movq	%rax, %rdi
	callq	_strcpy
	jmp	LBB0_6
LBB0_4:
	addq	$11, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	movq	%rax, %r12
	movq	(%r14), %rcx
	movl	(%r15), %r8d
	leaq	L_.str.1(%rip), %rdx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_snprintf
LBB0_6:
	movq	_XBT_NIL@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	subq	$8, %rsp
	leaq	-56(%rbp), %rbx
	leaq	L_.str.3(%rip), %rcx
	leaq	L_.str.2(%rip), %rdx
	leaq	L_.str.4(%rip), %r9
	leaq	-64(%rbp), %r8
	movq	%r12, %rsi
	xorl	%eax, %eax
	pushq	$0
	pushq	%rbx
	pushq	%rcx
	callq	_xenbus_gather
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rdx
LBB0_8:
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_xenbus_dev_fatal
	jmp	LBB0_17
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	subl	(%r15), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_xenbus_dev_fatal
	subl	(%r15), %ebx
	jmp	LBB0_18
LBB0_9:
	movl	(%r13), %edi
	subq	$8, %rsp
	leaq	-48(%rbp), %rbx
	leaq	L_.str.7(%rip), %rcx
	leaq	L_.str.6(%rip), %rdx
	leaq	L_.str.8(%rip), %r9
	leaq	-44(%rbp), %r8
	movq	%r12, %rsi
	xorl	%eax, %eax
	pushq	$0
	pushq	%rbx
	pushq	%rcx
	callq	_xenbus_gather
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_11
## %bb.10:
	movl	-44(%rbp), %ecx
	movl	-48(%rbp), %r8d
	jmp	LBB0_14
LBB0_11:
	movl	(%r13), %edi
	leaq	L_.str.9(%rip), %rdx
	leaq	L_.str.7(%rip), %rcx
	leaq	-44(%rbp), %r8
	movq	%r12, %rsi
	callq	_xenbus_scanf
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:
	movl	-44(%rbp), %r8d
	movl	%r8d, -48(%rbp)
	movl	%r8d, %ecx
LBB0_14:
	movq	-64(%rbp), %rsi
	movq	-56(%rbp), %rdx
	movq	%r15, %rdi
	callq	_xenvif_connect_data
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movl	%eax, %ebx
	movq	-64(%rbp), %rcx
	movq	-56(%rbp), %r8
	movl	-44(%rbp), %r9d
	movl	-48(%rbp), %r10d
	subq	$8, %rsp
	leaq	L_.str.11(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	pushq	%r10
	callq	_xenbus_dev_fatal
	addq	$16, %rsp
	jmp	LBB0_17
LBB0_15:
	xorl	%ebx, %ebx
LBB0_17:
	movq	%r12, %rdi
	callq	_kfree
LBB0_18:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	%eax, %ebx
	leaq	L_.str.10(%rip), %rdx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reading ring references"

L_.str.1:                               ## @.str.1
	.asciz	"%s/queue-%u"

	.comm	_XBT_NIL,4,2                    ## @XBT_NIL
L_.str.2:                               ## @.str.2
	.asciz	"tx-ring-ref"

L_.str.3:                               ## @.str.3
	.asciz	"%lu"

L_.str.4:                               ## @.str.4
	.asciz	"rx-ring-ref"

L_.str.5:                               ## @.str.5
	.asciz	"reading %s/ring-ref"

L_.str.6:                               ## @.str.6
	.asciz	"event-channel-tx"

L_.str.7:                               ## @.str.7
	.asciz	"%u"

L_.str.8:                               ## @.str.8
	.asciz	"event-channel-rx"

L_.str.9:                               ## @.str.9
	.asciz	"event-channel"

L_.str.10:                              ## @.str.10
	.asciz	"reading %s/event-channel(-tx/rx)"

L_.str.11:                              ## @.str.11
	.asciz	"mapping shared-frames %lu/%lu port tx %u rx %u"

	.no_dead_strip	_connect_data_rings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function connect_data_rings
_connect_data_rings:                    ; @connect_data_rings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x21, x1
	ldr	x19, [x0]
	ldr	x8, [x1, #8]
	ldr	w20, [x8]
	ldr	x0, [x19]
	bl	_strlen
	cmp	w20, #1
	b.ne	LBB0_3
; %bb.1:
	add	x0, x0, #1
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x20, x0
	ldr	x1, [x19]
	bl	_strcpy
	b	LBB0_5
LBB0_3:
	add	x22, x0, #11
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.4:
	mov	x20, x0
	ldr	x3, [x19]
	ldr	w4, [x21]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_snprintf
LBB0_5:
Lloh8:
	adrp	x23, _XBT_NIL@GOTPAGE
Lloh9:
	ldr	x23, [x23, _XBT_NIL@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x8, sp, #48
Lloh10:
	adrp	x3, l_.str.3@PAGE
Lloh11:
	add	x3, x3, l_.str.3@PAGEOFF
	stp	x8, xzr, [sp, #24]
Lloh12:
	adrp	x8, l_.str.4@PAGE
Lloh13:
	add	x8, x8, l_.str.4@PAGEOFF
	add	x9, sp, #56
	stp	x8, x3, [sp, #8]
	str	x9, [sp]
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_xenbus_gather
	cbz	w0, LBB0_8
; %bb.6:
	mov	x22, x0
	str	x20, [sp]
Lloh16:
	adrp	x2, l_.str.5@PAGE
Lloh17:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_15
LBB0_7:
Lloh18:
	adrp	x20, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x20, [x20, _ENOMEM@GOTPAGEOFF]
	ldr	w8, [x20]
	neg	w1, w8
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_xenbus_dev_fatal
	ldr	w8, [x20]
	neg	w22, w8
	b	LBB0_17
LBB0_8:
	ldr	w0, [x23]
	add	x8, sp, #40
Lloh22:
	adrp	x3, l_.str.7@PAGE
Lloh23:
	add	x3, x3, l_.str.7@PAGEOFF
	stp	x8, xzr, [sp, #24]
Lloh24:
	adrp	x8, l_.str.8@PAGE
Lloh25:
	add	x8, x8, l_.str.8@PAGEOFF
	add	x9, sp, #44
	stp	x8, x3, [sp, #8]
	str	x9, [sp]
Lloh26:
	adrp	x2, l_.str.6@PAGE
Lloh27:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x1, x20
	bl	_xenbus_gather
	tbnz	w0, #31, LBB0_10
; %bb.9:
	ldp	w4, w3, [sp, #40]
	b	LBB0_12
LBB0_10:
	ldr	w0, [x23]
Lloh28:
	adrp	x2, l_.str.9@PAGE
Lloh29:
	add	x2, x2, l_.str.9@PAGEOFF
Lloh30:
	adrp	x3, l_.str.7@PAGE
Lloh31:
	add	x3, x3, l_.str.7@PAGEOFF
	add	x4, sp, #44
	mov	x1, x20
	bl	_xenbus_scanf
	tbnz	w0, #31, LBB0_14
; %bb.11:
	ldr	w4, [sp, #44]
	str	w4, [sp, #40]
	mov	x3, x4
LBB0_12:
	ldp	x2, x1, [sp, #48]
	mov	x0, x21
	bl	_xenvif_connect_data
	mov	x22, x0
	cbz	w0, LBB0_16
; %bb.13:
	ldp	x9, x8, [sp, #48]
	ldp	w11, w10, [sp, #40]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh32:
	adrp	x2, l_.str.11@PAGE
Lloh33:
	add	x2, x2, l_.str.11@PAGEOFF
	b	LBB0_15
LBB0_14:
	mov	x22, x0
	str	x20, [sp]
Lloh34:
	adrp	x2, l_.str.10@PAGE
Lloh35:
	add	x2, x2, l_.str.10@PAGEOFF
LBB0_15:
	mov	x0, x19
	mov	x1, x22
	bl	_xenbus_dev_fatal
LBB0_16:
	mov	x0, x20
	bl	_kfree
LBB0_17:
	mov	x0, x22
	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
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reading ring references"

l_.str.1:                               ; @.str.1
	.asciz	"%s/queue-%u"

	.comm	_XBT_NIL,4,2                    ; @XBT_NIL
l_.str.2:                               ; @.str.2
	.asciz	"tx-ring-ref"

l_.str.3:                               ; @.str.3
	.asciz	"%lu"

l_.str.4:                               ; @.str.4
	.asciz	"rx-ring-ref"

l_.str.5:                               ; @.str.5
	.asciz	"reading %s/ring-ref"

l_.str.6:                               ; @.str.6
	.asciz	"event-channel-tx"

l_.str.7:                               ; @.str.7
	.asciz	"%u"

l_.str.8:                               ; @.str.8
	.asciz	"event-channel-rx"

l_.str.9:                               ; @.str.9
	.asciz	"event-channel"

l_.str.10:                              ; @.str.10
	.asciz	"reading %s/event-channel(-tx/rx)"

l_.str.11:                              ; @.str.11
	.asciz	"mapping shared-frames %lu/%lu port tx %u rx %u"

	.no_dead_strip	_connect_data_rings
.subsections_via_symbols
