	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netdev_create
_netdev_create:                         ## @netdev_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_ovs_netdev_vport_ops@GOTPCREL(%rip), %rsi
	movl	$8, %edi
	movq	%rbx, %rdx
	callq	_ovs_vport_alloc
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_2:
	movq	%r15, %rdi
	callq	_netdev_vport_priv
	movq	%rax, %r14
	movl	(%r15), %edi
	callq	_ovs_dp_get_net
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_dev_get_by_name
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_IFF_LOOPBACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_7
## %bb.5:
	movq	8(%rax), %rcx
	movq	_ARPHRD_ETHER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.6:
	movq	%rax, %rdi
	callq	_ovs_is_internal_dev
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_10:
	movq	(%r14), %rdi
	callq	_dev_put
	jmp	LBB0_11
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_11:
	negl	%ebx
	movq	%r15, %rdi
	callq	_ovs_vport_free
LBB0_12:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_8:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	(%r14), %rax
	cmpq	$0, 24(%rax)
	je	LBB0_13
## %bb.9:
	xorl	%eax, %eax
	callq	_rtnl_unlock
	jmp	LBB0_10
LBB0_13:
	movq	%r15, 24(%rax)
	movq	_nr_bridges@GOTPCREL(%rip), %rdi
	callq	_atomic_inc
	movq	_ovs_netdev_frame_hook@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_openvswitch_handle_frame_hook@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	(%r14), %rdi
	movl	$1, %esi
	callq	_dev_set_promiscuity
	movq	_IFF_OVS_DATAPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	orl	%eax, 16(%rcx)
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ovs_netdev_vport_ops,4,2       ## @ovs_netdev_vport_ops
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IFF_LOOPBACK,4,2               ## @IFF_LOOPBACK
	.comm	_ARPHRD_ETHER,8,3               ## @ARPHRD_ETHER
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_nr_bridges,4,2                 ## @nr_bridges
	.comm	_ovs_netdev_frame_hook,4,2      ## @ovs_netdev_frame_hook
	.comm	_openvswitch_handle_frame_hook,4,2 ## @openvswitch_handle_frame_hook
	.comm	_IFF_OVS_DATAPATH,4,2           ## @IFF_OVS_DATAPATH
	.no_dead_strip	_netdev_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netdev_create
_netdev_create:                         ; @netdev_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, x0
Lloh0:
	adrp	x1, _ovs_netdev_vport_ops@GOTPAGE
Lloh1:
	ldr	x1, [x1, _ovs_netdev_vport_ops@GOTPAGEOFF]
	mov	w0, #8
	mov	x2, x21
	bl	_ovs_vport_alloc
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_10
LBB0_2:
	mov	x0, x19
	bl	_netdev_vport_priv
	mov	x20, x0
	ldr	w0, [x19]
	bl	_ovs_dp_get_net
	ldr	w1, [x21]
	bl	_dev_get_by_name
	str	x0, [x20]
	cbz	x0, LBB0_8
; %bb.3:
	ldr	w8, [x0]
Lloh2:
	adrp	x9, _IFF_LOOPBACK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IFF_LOOPBACK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.4:
	ldr	x8, [x0, #8]
Lloh5:
	adrp	x9, _ARPHRD_ETHER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ARPHRD_ETHER@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	bl	_ovs_is_internal_dev
	cbz	x0, LBB0_11
LBB0_6:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
LBB0_7:
	ldr	x0, [x20]
	bl	_dev_put
	b	LBB0_9
LBB0_8:
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
LBB0_9:
	neg	w20, w21
	mov	x0, x19
	bl	_ovs_vport_free
LBB0_10:
	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
	b	_ERR_PTR
LBB0_11:
Lloh14:
	adrp	x8, _EBUSY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh16:
	ldr	w21, [x8]
	bl	_rtnl_lock
	ldr	x8, [x20]
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_13
; %bb.12:
	bl	_rtnl_unlock
	b	LBB0_7
LBB0_13:
	str	x19, [x8, #24]
Lloh17:
	adrp	x0, _nr_bridges@GOTPAGE
Lloh18:
	ldr	x0, [x0, _nr_bridges@GOTPAGEOFF]
	bl	_atomic_inc
Lloh19:
	adrp	x8, _ovs_netdev_frame_hook@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ovs_netdev_frame_hook@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _openvswitch_handle_frame_hook@GOTPAGE
Lloh23:
	ldr	x9, [x9, _openvswitch_handle_frame_hook@GOTPAGEOFF]
Lloh24:
	str	w8, [x9]
	ldr	x0, [x20]
	mov	w1, #1
	bl	_dev_set_promiscuity
Lloh25:
	adrp	x8, _IFF_OVS_DATAPATH@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IFF_OVS_DATAPATH@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	x9, [x20]
	ldr	w10, [x9, #16]
	orr	w8, w10, w8
	str	w8, [x9, #16]
	bl	_rtnl_unlock
	mov	x0, x19
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ovs_netdev_vport_ops,4,2       ; @ovs_netdev_vport_ops
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IFF_LOOPBACK,4,2               ; @IFF_LOOPBACK
	.comm	_ARPHRD_ETHER,8,3               ; @ARPHRD_ETHER
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_nr_bridges,4,2                 ; @nr_bridges
	.comm	_ovs_netdev_frame_hook,4,2      ; @ovs_netdev_frame_hook
	.comm	_openvswitch_handle_frame_hook,4,2 ; @openvswitch_handle_frame_hook
	.comm	_IFF_OVS_DATAPATH,4,2           ; @IFF_OVS_DATAPATH
	.no_dead_strip	_netdev_create
.subsections_via_symbols
