	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ovs_vport_cmd_new
_ovs_vport_cmd_new:                     ## @ovs_vport_cmd_new
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rsi), %r13
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	movq	_OVS_VPORT_ATTR_NAME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	subl	(%rax), %r12d
	cmpq	$0, (%r13,%rcx,8)
	je	LBB0_20
## %bb.1:
	movq	_OVS_VPORT_ATTR_TYPE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%r13,%rax,8)
	je	LBB0_20
## %bb.2:
	movq	_OVS_VPORT_ATTR_UPCALL_PID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%r13,%rax,8)
	je	LBB0_20
## %bb.3:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rsi), %r15
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_ovs_lock
	movl	(%rbx), %edi
	callq	_sock_net
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_get_dp
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	_OVS_VPORT_ATTR_PORT_NO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.11:
	callq	_nla_get_u32
	movq	%rax, %rbx
	xorl	%r12d, %r12d
	movq	_DP_MAX_PORTS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jle	LBB0_12
## %bb.13:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ovs_vport_ovsl
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_19
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_19
LBB0_6:
	movq	_DP_MAX_PORTS@GOTPCREL(%rip), %r12
	cmpl	$2, (%r12)
	jl	LBB0_10
## %bb.7:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ovs_vport_ovsl
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incl	%ebx
	cmpl	(%r12), %ebx
	jl	LBB0_8
LBB0_10:
	movq	_EFBIG@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_19
LBB0_12:
	movq	_EFBIG@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_19
LBB0_15:
	movq	_OVS_VPORT_ATTR_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	callq	_nla_data
	movl	%eax, -48(%rbp)
	movq	_OVS_VPORT_ATTR_TYPE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	callq	_nla_get_u32
	movq	%rax, -56(%rbp)
	movq	_OVS_VPORT_ATTR_OPTIONS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rax
	movq	%rax, -64(%rbp)
	movq	%r15, -72(%rbp)
	movl	%ebx, -88(%rbp)
	movq	_OVS_VPORT_ATTR_UPCALL_PID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	callq	_nla_get_u32
	movq	%rax, -80(%rbp)
	leaq	-88(%rbp), %rdi
	callq	_new_vport
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PTR_ERR
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_19
## %bb.16:
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movq	_OVS_VPORT_CMD_NEW@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_ovs_vport_cmd_build_info
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_ovs_dp_detach_port
	jmp	LBB0_19
LBB0_18:
	movq	_ovs_dp_vport_multicast_group@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ovs_notify
	xorl	%r12d, %r12d
LBB0_19:
	xorl	%eax, %eax
	callq	_ovs_unlock
LBB0_20:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_OVS_VPORT_ATTR_NAME,8,3        ## @OVS_VPORT_ATTR_NAME
	.comm	_OVS_VPORT_ATTR_TYPE,8,3        ## @OVS_VPORT_ATTR_TYPE
	.comm	_OVS_VPORT_ATTR_UPCALL_PID,8,3  ## @OVS_VPORT_ATTR_UPCALL_PID
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_OVS_VPORT_ATTR_PORT_NO,8,3     ## @OVS_VPORT_ATTR_PORT_NO
	.comm	_EFBIG,4,2                      ## @EFBIG
	.comm	_DP_MAX_PORTS,4,2               ## @DP_MAX_PORTS
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_OVS_VPORT_ATTR_OPTIONS,8,3     ## @OVS_VPORT_ATTR_OPTIONS
	.comm	_OVS_VPORT_CMD_NEW,4,2          ## @OVS_VPORT_CMD_NEW
	.comm	_ovs_dp_vport_multicast_group,4,2 ## @ovs_dp_vport_multicast_group
	.no_dead_strip	_ovs_vport_cmd_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ovs_vport_cmd_new
_ovs_vport_cmd_new:                     ; @ovs_vport_cmd_new
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x22, [x1, #16]
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
Lloh3:
	adrp	x25, _OVS_VPORT_ATTR_NAME@GOTPAGE
Lloh4:
	ldr	x25, [x25, _OVS_VPORT_ATTR_NAME@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	x8, [x22, x8, lsl #3]
	cbz	x8, LBB0_16
; %bb.1:
Lloh5:
	adrp	x24, _OVS_VPORT_ATTR_TYPE@GOTPAGE
Lloh6:
	ldr	x24, [x24, _OVS_VPORT_ATTR_TYPE@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x8, [x22, x8, lsl #3]
	cbz	x8, LBB0_16
; %bb.2:
Lloh7:
	adrp	x23, _OVS_VPORT_ATTR_UPCALL_PID@GOTPAGE
Lloh8:
	ldr	x23, [x23, _OVS_VPORT_ATTR_UPCALL_PID@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x8, [x22, x8, lsl #3]
	cbz	x8, LBB0_16
; %bb.3:
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x1, #8]
	bl	_ovs_lock
	ldr	w0, [x21]
	bl	_sock_net
	ldr	w1, [x20]
	bl	_get_dp
	cbz	x0, LBB0_8
; %bb.4:
	mov	x20, x0
Lloh9:
	adrp	x8, _OVS_VPORT_ATTR_PORT_NO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OVS_VPORT_ATTR_PORT_NO@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x0, [x22, x8, lsl #3]
	cbz	x0, LBB0_9
; %bb.5:
	bl	_nla_get_u32
	mov	x21, x0
Lloh12:
	adrp	x8, _DP_MAX_PORTS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DP_MAX_PORTS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w21
	b.le	LBB0_13
; %bb.6:
	mov	x0, x20
	mov	x1, x21
	bl	_ovs_vport_ovsl
	cbz	x0, LBB0_17
; %bb.7:
Lloh15:
	adrp	x8, _EBUSY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_14
LBB0_8:
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_14
LBB0_9:
Lloh19:
	adrp	x26, _DP_MAX_PORTS@GOTPAGE
Lloh20:
	ldr	x26, [x26, _DP_MAX_PORTS@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #2
	b.lt	LBB0_13
; %bb.10:
	mov	w21, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_ovs_vport_ovsl
	cbz	x0, LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	w21, w21, #1
	ldr	w8, [x26]
	cmp	w21, w8
	b.lt	LBB0_11
LBB0_13:
Lloh21:
	adrp	x8, _EFBIG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EFBIG@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_15:
	bl	_ovs_unlock
LBB0_16:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_17:
	ldr	x8, [x25]
	ldr	x0, [x22, x8, lsl #3]
	bl	_nla_data
	str	w0, [sp, #40]
	ldr	x8, [x24]
	ldr	x0, [x22, x8, lsl #3]
	bl	_nla_get_u32
	str	x0, [sp, #32]
Lloh23:
	adrp	x8, _OVS_VPORT_ATTR_OPTIONS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _OVS_VPORT_ATTR_OPTIONS@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	ldr	x8, [x22, x8, lsl #3]
	stp	x20, x8, [sp, #16]
	str	w21, [sp]
	ldr	x8, [x23]
	ldr	x0, [x22, x8, lsl #3]
	bl	_nla_get_u32
	str	x0, [sp, #8]
	mov	x0, sp
	bl	_new_vport
	mov	x21, x0
	bl	_PTR_ERR
	mov	x20, x0
	mov	x0, x21
	bl	_IS_ERR
	cbnz	x0, LBB0_15
; %bb.18:
	ldp	w2, w1, [x19]
Lloh26:
	adrp	x8, _OVS_VPORT_CMD_NEW@GOTPAGE
Lloh27:
	ldr	x8, [x8, _OVS_VPORT_CMD_NEW@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_ovs_vport_cmd_build_info
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_20
; %bb.19:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x20, x0
	mov	x0, x21
	bl	_ovs_dp_detach_port
	b	LBB0_15
LBB0_20:
Lloh29:
	adrp	x2, _ovs_dp_vport_multicast_group@GOTPAGE
Lloh30:
	ldr	x2, [x2, _ovs_dp_vport_multicast_group@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	bl	_ovs_notify
	mov	w20, #0
	b	LBB0_15
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_OVS_VPORT_ATTR_NAME,8,3        ; @OVS_VPORT_ATTR_NAME
	.comm	_OVS_VPORT_ATTR_TYPE,8,3        ; @OVS_VPORT_ATTR_TYPE
	.comm	_OVS_VPORT_ATTR_UPCALL_PID,8,3  ; @OVS_VPORT_ATTR_UPCALL_PID
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_OVS_VPORT_ATTR_PORT_NO,8,3     ; @OVS_VPORT_ATTR_PORT_NO
	.comm	_EFBIG,4,2                      ; @EFBIG
	.comm	_DP_MAX_PORTS,4,2               ; @DP_MAX_PORTS
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_OVS_VPORT_ATTR_OPTIONS,8,3     ; @OVS_VPORT_ATTR_OPTIONS
	.comm	_OVS_VPORT_CMD_NEW,4,2          ; @OVS_VPORT_CMD_NEW
	.comm	_ovs_dp_vport_multicast_group,4,2 ; @ovs_dp_vport_multicast_group
	.no_dead_strip	_ovs_vport_cmd_new
.subsections_via_symbols
