	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dr_domain_caps_init
_dr_domain_caps_init:                   ## @dr_domain_caps_init
	.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, %r14
	movq	%rdi, %rbx
	movq	_port_type@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_GEN
	movq	_MLX5_CAP_PORT_TYPE_ETH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_mlx5_eswitch_get_total_vports
	leaq	12(%r14), %r15
	movl	%eax, 48(%r14)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mlx5dr_cmd_query_device
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_dr_domain_query_fdb_caps
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.4:
	movl	(%r14), %eax
	cmpl	$128, %eax
	je	LBB0_10
## %bb.5:
	cmpl	$130, %eax
	je	LBB0_12
## %bb.6:
	cmpl	$129, %eax
	jne	LBB0_17
## %bb.7:
	cmpl	$0, 44(%r14)
	je	LBB0_8
## %bb.9:
	movl	$1, 8(%r14)
	movq	_MLX5DR_STE_TYPE_RX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 80(%r14)
	movl	40(%r14), %eax
	movl	%eax, 76(%r14)
	movl	%eax, 72(%r14)
	xorl	%r12d, %r12d
	jmp	LBB0_19
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_mlx5dr_dbg
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_18:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_19:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	cmpl	$0, 36(%r14)
	je	LBB0_8
## %bb.11:
	movl	$1, 8(%r14)
	movq	_MLX5DR_STE_TYPE_TX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 64(%r14)
	movq	28(%r14), %rax
	movq	%rax, 56(%r14)
	xorl	%r12d, %r12d
	jmp	LBB0_19
LBB0_12:
	cmpl	$0, 24(%r14)
	je	LBB0_8
## %bb.13:
	cmpl	$0, 20(%r14)
	je	LBB0_8
## %bb.14:
	movq	_MLX5DR_STE_TYPE_RX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 80(%r14)
	movq	_MLX5DR_STE_TYPE_TX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 64(%r14)
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mlx5dr_get_vport_cap
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	movl	$1, 8(%r14)
	movl	4(%rax), %ecx
	movl	%ecx, 60(%r14)
	movl	(%rax), %eax
	movl	%eax, 76(%r14)
	movl	12(%r14), %eax
	movl	16(%r14), %ecx
	movl	%ecx, 72(%r14)
	movl	%eax, 56(%r14)
	jmp	LBB0_19
LBB0_8:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_17:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_mlx5dr_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_15:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_mlx5dr_dbg
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_port_type,4,2                  ## @port_type
	.comm	_MLX5_CAP_PORT_TYPE_ETH,8,3     ## @MLX5_CAP_PORT_TYPE_ETH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate domain, bad link type\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_MLX5DR_STE_TYPE_RX,8,3         ## @MLX5DR_STE_TYPE_RX
	.comm	_MLX5DR_STE_TYPE_TX,8,3         ## @MLX5DR_STE_TYPE_TX
L_.str.1:                               ## @.str.1
	.asciz	"Failed to get esw manager vport\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.2:                               ## @.str.2
	.asciz	"Invalid domain\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_dr_domain_caps_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dr_domain_caps_init
_dr_domain_caps_init:                   ; @dr_domain_caps_init
	.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	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _port_type@GOTPAGE
Lloh1:
	ldr	x8, [x8, _port_type@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_MLX5_CAP_GEN
Lloh3:
	adrp	x8, _MLX5_CAP_PORT_TYPE_ETH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX5_CAP_PORT_TYPE_ETH@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.1:
	mov	x0, x21
	bl	_mlx5_eswitch_get_total_vports
	add	x20, x19, #12
	str	w0, [x19, #48]
	mov	x0, x21
	mov	x1, x20
	bl	_mlx5dr_cmd_query_device
	cbnz	w0, LBB0_10
; %bb.2:
	mov	x0, x21
	mov	x1, x19
	bl	_dr_domain_query_fdb_caps
	cbnz	w0, LBB0_10
; %bb.3:
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_11
; %bb.4:
	cmp	w8, #130
	b.eq	LBB0_13
; %bb.5:
	cmp	w8, #129
	b.ne	LBB0_18
; %bb.6:
	ldr	w8, [x19, #44]
	cbz	w8, LBB0_17
; %bb.7:
	mov	w0, #0
	mov	w8, #1
Lloh6:
	adrp	x9, _MLX5DR_STE_TYPE_RX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MLX5DR_STE_TYPE_RX@GOTPAGEOFF]
	str	w8, [x19, #8]
Lloh8:
	ldr	x8, [x9]
	str	x8, [x19, #80]
	ldr	w8, [x19, #40]
	stp	w8, w8, [x19, #72]
	b	LBB0_10
LBB0_8:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mlx5dr_dbg
Lloh11:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
LBB0_11:
	ldr	w8, [x19, #36]
	cbz	w8, LBB0_17
; %bb.12:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19, #8]
Lloh13:
	adrp	x8, _MLX5DR_STE_TYPE_TX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MLX5DR_STE_TYPE_TX@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x8, [x19, #64]
	ldur	d0, [x19, #28]
	str	d0, [x19, #56]
	b	LBB0_10
LBB0_13:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_17
; %bb.14:
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_17
; %bb.15:
Lloh16:
	adrp	x8, _MLX5DR_STE_TYPE_RX@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MLX5DR_STE_TYPE_RX@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	str	x8, [x19, #80]
Lloh19:
	adrp	x8, _MLX5DR_STE_TYPE_TX@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MLX5DR_STE_TYPE_TX@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	x8, [x19, #64]
	mov	x0, x20
	mov	w1, #0
	bl	_mlx5dr_get_vport_cap
	cbz	x0, LBB0_19
; %bb.16:
	mov	x8, x0
	mov	w0, #0
	mov	w9, #1
	str	w9, [x19, #8]
	ldp	w8, w9, [x8]
	ldp	w11, w10, [x19, #12]
	stp	w10, w8, [x19, #72]
	stp	w11, w9, [x19, #56]
	b	LBB0_10
LBB0_17:
Lloh22:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_9
LBB0_18:
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_mlx5dr_dbg
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_19:
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mlx5dr_dbg
Lloh30:
	adrp	x8, _ENOENT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_port_type,4,2                  ; @port_type
	.comm	_MLX5_CAP_PORT_TYPE_ETH,8,3     ; @MLX5_CAP_PORT_TYPE_ETH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate domain, bad link type\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_MLX5DR_STE_TYPE_RX,8,3         ; @MLX5DR_STE_TYPE_RX
	.comm	_MLX5DR_STE_TYPE_TX,8,3         ; @MLX5DR_STE_TYPE_TX
l_.str.1:                               ; @.str.1
	.asciz	"Failed to get esw manager vport\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.2:                               ; @.str.2
	.asciz	"Invalid domain\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_dr_domain_caps_init
.subsections_via_symbols
