	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function backend_create_xenvif
_backend_create_xenvif:                 ## @backend_create_xenvif
	.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
	xorl	%r15d, %r15d
	cmpq	$0, (%rdi)
	jne	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	_XBT_NIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	leaq	-40(%rbp), %r8
	callq	_xenbus_scanf
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.3:
	movl	4(%r14), %esi
	movq	-40(%rbp), %rdx
	movq	%r14, %rdi
	callq	_xenvif_alloc
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_xenbus_dev_fatal
	jmp	LBB0_6
LBB0_2:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_xenbus_dev_fatal
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	testl	%r12d, %r12d
	cmovsl	%r12d, %r15d
	jmp	LBB0_6
LBB0_5:
	movq	%r12, (%rbx)
	movq	%rbx, (%r12)
	movq	_KOBJ_ONLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_kobject_uevent
LBB0_6:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	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	"handle"

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

L_.str.2:                               ## @.str.2
	.asciz	"reading handle"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"creating interface"

	.comm	_KOBJ_ONLINE,4,2                ## @KOBJ_ONLINE
	.no_dead_strip	_backend_create_xenvif
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function backend_create_xenvif
_backend_create_xenvif:                 ; @backend_create_xenvif
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_2
LBB0_1:
	mov	w20, #0
	b	LBB0_6
LBB0_2:
	mov	x20, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x8, _XBT_NIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XBT_NIL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
Lloh5:
	adrp	x3, l_.str.1@PAGE
Lloh6:
	add	x3, x3, l_.str.1@PAGEOFF
	add	x4, sp, #8
	bl	_xenbus_scanf
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.3:
	ldr	w1, [x19, #4]
	ldr	x2, [sp, #8]
	mov	x0, x19
	bl	_xenvif_alloc
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.4:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x20, x0
Lloh7:
	adrp	x2, l_.str.3@PAGE
Lloh8:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_xenbus_dev_fatal
	b	LBB0_6
LBB0_5:
	mov	x21, x0
Lloh9:
	adrp	x2, l_.str.2@PAGE
Lloh10:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_xenbus_dev_fatal
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w21, #0
	csneg	w20, w21, w8, lt
LBB0_6:
	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
LBB0_7:
	str	x21, [x20]
	str	x20, [x21]
Lloh14:
	adrp	x8, _KOBJ_ONLINE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _KOBJ_ONLINE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kobject_uevent
	b	LBB0_1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_XBT_NIL,4,2                    ; @XBT_NIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"handle"

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

l_.str.2:                               ; @.str.2
	.asciz	"reading handle"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"creating interface"

	.comm	_KOBJ_ONLINE,4,2                ; @KOBJ_ONLINE
	.no_dead_strip	_backend_create_xenvif
.subsections_via_symbols
