	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function connect_ctrl_ring
_connect_ctrl_ring:                     ## @connect_ctrl_ring
	.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), %r13
	movq	8(%rdi), %r12
	movq	_XBT_NIL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	leaq	-44(%rbp), %r8
	callq	_xenbus_scanf
	xorl	%r14d, %r14d
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movl	-44(%rbp), %r15d
	movl	(%rbx), %edi
	movl	(%r12), %esi
	leaq	L_.str.2(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	leaq	-44(%rbp), %r8
	callq	_xenbus_scanf
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	%r13, %rdi
	movl	-44(%rbp), %r13d
	movl	%r15d, %ebx
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	_xenvif_connect_ctrl
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%ebx, %ecx
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_xenbus_dev_fatal
	movl	%r15d, %r14d
	jmp	LBB0_5
LBB0_2:
	movl	%eax, %ebx
	movl	(%r12), %ecx
	leaq	L_.str.3(%rip), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_xenbus_dev_fatal
	movl	%ebx, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XBT_NIL,4,2                    ## @XBT_NIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ctrl-ring-ref"

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

L_.str.2:                               ## @.str.2
	.asciz	"event-channel-ctrl"

L_.str.3:                               ## @.str.3
	.asciz	"reading %s/event-channel-ctrl"

L_.str.4:                               ## @.str.4
	.asciz	"mapping shared-frame %u port %u"

	.no_dead_strip	_connect_ctrl_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function connect_ctrl_ring
_connect_ctrl_ring:                     ; @connect_ctrl_ring
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldp	x20, x19, [x0]
Lloh0:
	adrp	x22, _XBT_NIL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _XBT_NIL@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	w1, [x19]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
Lloh4:
	adrp	x3, l_.str.1@PAGE
Lloh5:
	add	x3, x3, l_.str.1@PAGEOFF
	add	x4, sp, #12
	bl	_xenbus_scanf
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w21, [sp, #12]
	ldr	w0, [x22]
	ldr	w1, [x19]
Lloh6:
	adrp	x2, l_.str.2@PAGE
Lloh7:
	add	x2, x2, l_.str.2@PAGEOFF
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
	add	x4, sp, #12
	bl	_xenbus_scanf
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	w23, [sp, #12]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	bl	_xenvif_connect_ctrl
	mov	x22, x0
	cbz	w0, LBB0_7
; %bb.3:
	str	x23, [sp]
Lloh10:
	adrp	x2, l_.str.4@PAGE
Lloh11:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	mov	x3, x21
	b	LBB0_6
LBB0_4:
	mov	w22, #0
	b	LBB0_7
LBB0_5:
	mov	x22, x0
	ldr	w3, [x19]
Lloh12:
	adrp	x2, l_.str.3@PAGE
Lloh13:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x1, x22
LBB0_6:
	bl	_xenbus_dev_fatal
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_XBT_NIL,4,2                    ; @XBT_NIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ctrl-ring-ref"

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

l_.str.2:                               ; @.str.2
	.asciz	"event-channel-ctrl"

l_.str.3:                               ; @.str.3
	.asciz	"reading %s/event-channel-ctrl"

l_.str.4:                               ; @.str.4
	.asciz	"mapping shared-frame %u port %u"

	.no_dead_strip	_connect_ctrl_ring
.subsections_via_symbols
