	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xenvif_connect_ctrl            ## -- Begin function xenvif_connect_ctrl
	.p2align	4, 0x90
_xenvif_connect_ctrl:                   ## @xenvif_connect_ctrl
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rdi, %r14
	movl	%esi, -36(%rbp)
	movq	24(%rdi), %r12
	callq	_xenvif_to_xenbus_device
	leaq	-36(%rbp), %rsi
	leaq	-48(%rbp), %rcx
	movl	%eax, %edi
	movl	$1, %edx
	callq	_xenbus_map_ring_valloc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	-48(%rbp), %rsi
	leaq	8(%r14), %rdi
	movq	_XEN_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_BACK_RING_INIT
	movl	16(%r14), %edi
	movl	%r15d, %esi
	callq	_bind_interdomain_evtchn_to_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	movl	%ebx, (%r14)
	movq	%r14, %rdi
	callq	_xenvif_init_hash
	movl	(%r14), %edi
	movq	_xenvif_ctrl_irq_fn@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %r8
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movq	%r14, %r9
	callq	_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %r15d
	movl	(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_warn
	movq	%r14, %rdi
	callq	_xenvif_deinit_hash
	movl	(%r14), %edi
	movq	%r14, %rsi
	callq	_unbind_from_irqhandler
	movl	$0, (%r14)
	movl	%r15d, %ebx
LBB0_4:
	movq	%r14, %rdi
	callq	_xenvif_to_xenbus_device
	movq	8(%r14), %rsi
	movl	%eax, %edi
	callq	_xenbus_unmap_ring_vfree
	movq	$0, 8(%r14)
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XEN_PAGE_SIZE,4,2              ## @XEN_PAGE_SIZE
	.comm	_xenvif_ctrl_irq_fn,4,2         ## @xenvif_ctrl_irq_fn
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xen-netback-ctrl"

L_.str.1:                               ## @.str.1
	.asciz	"Could not setup irq handler for %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xenvif_connect_ctrl            ; -- Begin function xenvif_connect_ctrl
	.p2align	2
_xenvif_connect_ctrl:                   ; @xenvif_connect_ctrl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x19, x0
	str	w1, [sp, #12]
	ldr	x22, [x0, #24]
	bl	_xenvif_to_xenbus_device
	add	x1, sp, #12
	mov	x3, sp
	mov	w2, #1
	bl	_xenbus_map_ring_valloc
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x1, [sp]
	add	x0, x19, #8
Lloh0:
	adrp	x8, _XEN_PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XEN_PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_BACK_RING_INIT
	ldr	w0, [x19, #16]
	mov	x1, x21
	bl	_bind_interdomain_evtchn_to_irq
	mov	x20, x0
	tbnz	w0, #31, LBB0_4
; %bb.2:
	str	w20, [x19]
	mov	x0, x19
	bl	_xenvif_init_hash
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _xenvif_ctrl_irq_fn@GOTPAGE
Lloh4:
	ldr	x8, [x8, _xenvif_ctrl_irq_fn@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x4, l_.str@PAGE
Lloh10:
	add	x4, x4, l_.str@PAGEOFF
	mov	x1, #0
	mov	x5, x19
	bl	_request_threaded_irq
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.3:
	ldr	w1, [x22]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warn
	mov	x0, x19
	bl	_xenvif_deinit_hash
	ldr	w0, [x19]
	mov	x1, x19
	bl	_unbind_from_irqhandler
	str	wzr, [x19]
LBB0_4:
	mov	x0, x19
	bl	_xenvif_to_xenbus_device
	ldr	x1, [x19, #8]
	bl	_xenbus_unmap_ring_vfree
	str	xzr, [x19, #8]
LBB0_5:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_XEN_PAGE_SIZE,4,2              ; @XEN_PAGE_SIZE
	.comm	_xenvif_ctrl_irq_fn,4,2         ; @xenvif_ctrl_irq_fn
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xen-netback-ctrl"

l_.str.1:                               ; @.str.1
	.asciz	"Could not setup irq handler for %s\n"

.subsections_via_symbols
