	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nsim_create                    ## -- Begin function nsim_create
	.p2align	4, 0x90
_nsim_create:                           ## @nsim_create
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_NET_NAME_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_nsim_setup@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movl	$32, %edi
	callq	_alloc_netdev
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rbx, 24(%rax)
	movq	%r15, 16(%rax)
	movq	%r12, 8(%rax)
	movq	(%r15), %rsi
	movq	%rsi, (%rax)
	movq	%rbx, %rdi
	callq	_SET_NETDEV_DEV
	movq	_nsim_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	%r14, %rdi
	callq	_nsim_bpf_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	callq	_nsim_ipsec_init
	movq	%rbx, %rdi
	callq	_register_netdevice
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_nsim_ipsec_teardown
	movq	%r14, %rdi
	callq	_nsim_bpf_uninit
	xorl	%eax, %eax
	callq	_rtnl_unlock
LBB0_6:
	movq	%rbx, %rdi
	callq	_free_netdev
	movl	%r15d, %edi
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_7:
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"eth%d"

	.comm	_NET_NAME_UNKNOWN,4,2           ## @NET_NAME_UNKNOWN
	.comm	_nsim_setup,4,2                 ## @nsim_setup
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_nsim_netdev_ops,4,2            ## @nsim_netdev_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nsim_create                    ; -- Begin function nsim_create
	.p2align	2
_nsim_create:                           ; @nsim_create
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _NET_NAME_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NET_NAME_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _nsim_setup@GOTPAGE
Lloh4:
	ldr	x8, [x8, _nsim_setup@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #32
	bl	_alloc_netdev
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	stp	x22, x19, [x0, #16]
	ldr	x1, [x22]
	stp	x1, x21, [x0]
	mov	x0, x19
	bl	_SET_NETDEV_DEV
Lloh8:
	adrp	x8, _nsim_netdev_ops@GOTPAGE
Lloh9:
	ldr	x8, [x8, _nsim_netdev_ops@GOTPAGEOFF]
	str	x8, [x19]
	bl	_rtnl_lock
	mov	x0, x20
	bl	_nsim_bpf_init
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_nsim_ipsec_init
	mov	x0, x19
	bl	_register_netdevice
	cbz	w0, LBB0_7
; %bb.3:
	mov	x21, x0
	mov	x0, x20
	bl	_nsim_ipsec_teardown
	mov	x0, x20
	bl	_nsim_bpf_uninit
	bl	_rtnl_unlock
LBB0_4:
	mov	x0, x19
	bl	_free_netdev
	mov	x0, x21
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_7:
	bl	_rtnl_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"eth%d"

	.comm	_NET_NAME_UNKNOWN,4,2           ; @NET_NAME_UNKNOWN
	.comm	_nsim_setup,4,2                 ; @nsim_setup
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_nsim_netdev_ops,4,2            ; @nsim_netdev_ops
.subsections_via_symbols
