	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5dr_action_create_dest_vport ## -- Begin function mlx5dr_action_create_dest_vport
	.p2align	4, 0x90
_mlx5dr_action_create_dest_vport:       ## @mlx5dr_action_create_dest_vport
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	%rdi, %r13
	testl	%edx, %edx
	je	LBB0_3
## %bb.1:
	movq	%rbx, %r13
	cmpq	%rcx, 8(%rbx)
	je	LBB0_6
## %bb.2:
	movq	16(%rbx), %r13
LBB0_3:
	testq	%r13, %r13
	je	LBB0_4
LBB0_6:
	movq	(%r13), %rax
	movq	_MLX5DR_DOMAIN_TYPE_FDB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.8:
	leaq	8(%r13), %rdi
	movl	%r15d, %esi
	callq	_mlx5dr_get_vport_cap
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r12
	movq	_DR_ACTION_TYP_VPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dr_action_create_generic
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %r14
	movq	%r13, 8(%rax)
	movq	%r12, (%rax)
	jmp	LBB0_13
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rsi
LBB0_5:
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_mlx5dr_dbg
LBB0_13:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_mlx5dr_dbg
	jmp	LBB0_13
LBB0_11:
	xorl	%r14d, %r14d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No peer vport domain for given vhca_id\n"

	.comm	_MLX5DR_DOMAIN_TYPE_FDB,8,3     ## @MLX5DR_DOMAIN_TYPE_FDB
L_.str.1:                               ## @.str.1
	.asciz	"Domain doesn't support vport actions\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to get vport %d caps\n"

	.comm	_DR_ACTION_TYP_VPORT,4,2        ## @DR_ACTION_TYP_VPORT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5dr_action_create_dest_vport ; -- Begin function mlx5dr_action_create_dest_vport
	.p2align	2
_mlx5dr_action_create_dest_vport:       ; @mlx5dr_action_create_dest_vport
	.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	x20, x1
	mov	x19, x0
	mov	x22, x0
	cbz	w2, LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	mov	x22, x19
	cmp	x8, x3
	b.eq	LBB0_4
; %bb.2:
	ldr	x22, [x19, #16]
LBB0_3:
	cbz	x22, LBB0_9
LBB0_4:
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _MLX5DR_DOMAIN_TYPE_FDB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX5DR_DOMAIN_TYPE_FDB@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	add	x0, x22, #8
	mov	x1, x20
	bl	_mlx5dr_get_vport_cap
	cbz	x0, LBB0_10
; %bb.6:
	mov	x21, x0
Lloh3:
	adrp	x8, _DR_ACTION_TYP_VPORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DR_ACTION_TYP_VPORT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_dr_action_create_generic
	cbz	x0, LBB0_12
; %bb.7:
	stp	x21, x22, [x0]
	b	LBB0_12
LBB0_8:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_10:
	str	x20, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_mlx5dr_dbg
	mov	x0, #0
LBB0_12:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No peer vport domain for given vhca_id\n"

	.comm	_MLX5DR_DOMAIN_TYPE_FDB,8,3     ; @MLX5DR_DOMAIN_TYPE_FDB
l_.str.1:                               ; @.str.1
	.asciz	"Domain doesn't support vport actions\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to get vport %d caps\n"

	.comm	_DR_ACTION_TYP_VPORT,4,2        ; @DR_ACTION_TYP_VPORT
.subsections_via_symbols
