	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_flower_spawn_vnic_reprs
_nfp_flower_spawn_vnic_reprs:           ## @nfp_flower_spawn_vnic_reprs
	.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
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movl	%esi, -72(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movl	8(%rax), %edi
	callq	_nfp_cppcore_pcie_unit
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	_NFP_REPR_TYPE_PF@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	jne	LBB0_1
## %bb.2:
	movq	_NFP_PORT_PF_PORT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_NFP_PORT_VF_PORT@GOTPCREL(%rip), %rax
LBB0_3:
	movq	%rbx, %r13
	movq	16(%rbx), %r14
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	_nfp_reprs_alloc
	testq	%rax, %rax
	je	LBB0_25
## %bb.4:
	movq	%rax, %r12
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	testl	%r15d, %r15d
	movq	%r13, %r14
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_19
## %bb.5:
	movl	%r15d, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_nfp_repr_alloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_netdev_priv
	movq	%rbx, (%rax)
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, (%rbx)
	movq	%r14, %rbx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	_NFP_REPR_TYPE_PF@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	sete	%al
	testq	%r13, %r13
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_WARN_ON
	movq	%rbx, %r12
	movq	%rbx, %rdi
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	movq	%r15, %rdx
	callq	_nfp_port_alloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_NFP_REPR_TYPE_PF@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%r13d, (%rbx)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rax
	movq	8(%rax), %rax
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$0, (%rbx)
	movl	%r13d, 4(%rbx)
	movq	8(%r12), %rcx
	movq	_NFP_NET_CFG_BAR_SZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	movslq	%r13d, %rax
	imulq	%rdx, %rax
	addq	(%rcx), %rax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, 8(%rbx)
	movq	%r15, %rdi
	callq	_eth_hw_addr_random
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	callq	_nfp_flower_cmsg_pcie_port
	movq	(%r14), %rcx
	movl	(%rcx), %r8d
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	movq	%rbx, %rcx
	callq	_nfp_repr_init
	testl	%eax, %eax
	jne	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax,%r13,4), %edi
	movq	%r15, %rsi
	callq	_RCU_INIT_POINTER
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	_NFP_REPR_TYPE_PF@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rdx
	leaq	L_.str.1(%rip), %rax
	cmoveq	%rax, %rdx
	movl	(%r15), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %ecx
	callq	_nfp_info
	incq	%r13
	cmpq	%r13, -96(%rbp)                 ## 8-byte Folded Reload
	movq	%r12, %r14
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_6
LBB0_19:
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	addq	$8, %r13
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_nfp_app_reprs_set
	movq	%r14, %r12
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_nfp_flower_reprs_reify
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_20
## %bb.21:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_nfp_flower_wait_repr_reify
	movl	%eax, %r15d
	testl	%eax, %eax
	movq	%r12, %rbx
	jne	LBB0_22
	jmp	LBB0_24
LBB0_25:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_24
LBB0_20:
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_nfp_warn
	movq	%r12, %rbx
LBB0_22:
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	callq	_nfp_app_reprs_set
	movq	%rax, %r12
	movl	%r15d, %r14d
	jmp	LBB0_23
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	%r14, %rbx
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_23
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	%r14, %rbx
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_10
LBB0_12:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movq	%r12, %rbx
	movl	%eax, %r14d
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
LBB0_10:
	movq	%r15, %rdi
	callq	_nfp_repr_free
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_17:
	movl	%eax, %r14d
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	movq	%rbx, %rdi
	callq	_nfp_port_free
	movq	%r15, %rdi
	callq	_nfp_repr_free
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, %rbx
	movq	%rax, %r12
LBB0_23:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_nfp_reprs_clean_and_free
LBB0_24:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_REPR_TYPE_PF,4,2           ## @NFP_REPR_TYPE_PF
	.comm	_NFP_PORT_PF_PORT,4,2           ## @NFP_PORT_PF_PORT
	.comm	_NFP_PORT_VF_PORT,4,2           ## @NFP_PORT_VF_PORT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_NFP_NET_CFG_BAR_SZ,4,2         ## @NFP_NET_CFG_BAR_SZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%d Representor(%s) created\n"

L_.str.1:                               ## @.str.1
	.asciz	"PF"

L_.str.2:                               ## @.str.2
	.asciz	"VF"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to notify firmware about repr creation\n"

	.no_dead_strip	_nfp_flower_spawn_vnic_reprs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_flower_spawn_vnic_reprs
_nfp_flower_spawn_vnic_reprs:           ; @nfp_flower_spawn_vnic_reprs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x20, x2
	str	w1, [sp, #24]                   ; 4-byte Folded Spill
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8, #8]
	bl	_nfp_cppcore_pcie_unit
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	ldr	x23, [x19, #16]
Lloh0:
	adrp	x24, _NFP_REPR_TYPE_PF@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NFP_REPR_TYPE_PF@GOTPAGEOFF]
Lloh2:
	adrp	x8, _NFP_PORT_PF_PORT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NFP_PORT_PF_PORT@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh4:
	adrp	x10, _NFP_PORT_VF_PORT@GOTPAGE
Lloh5:
	ldr	x10, [x10, _NFP_PORT_VF_PORT@GOTPAGEOFF]
	cmp	w9, w20
	csel	x8, x8, x10, eq
	ldr	w8, [x8]
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	mov	x0, x22
	bl	_nfp_reprs_alloc
	cbz	x0, LBB0_13
; %bb.1:
	mov	x21, x0
	cbz	w22, LBB0_11
; %bb.2:
	mov	x25, #0
	mov	w8, w22
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_nfp_repr_alloc
	cbz	x0, LBB0_16
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, x0
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_17
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, x0
	mov	x0, x26
	bl	_netdev_priv
	str	x28, [x0]
	str	x0, [x28]
	ldr	w8, [x24]
	cmp	w8, w20
	ccmp	x25, #0, #4, eq
	cset	w0, ne
	bl	_WARN_ON
	mov	x0, x19
	ldr	w1, [sp, #28]                   ; 4-byte Folded Reload
	mov	x2, x26
	bl	_nfp_port_alloc
	mov	x22, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_18
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x24]
	cmp	w8, w20
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w25, [x22]
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	stp	wzr, w25, [x22]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _NFP_NET_CFG_BAR_SZ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NFP_NET_CFG_BAR_SZ@GOTPAGEOFF]
Lloh11:
	ldrsw	x9, [x9]
	sxtw	x10, w25
	madd	x8, x9, x10, x8
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	x8, [x22, #8]
	mov	x0, x26
	bl	_eth_hw_addr_random
	ldp	w0, w1, [sp, #20]               ; 8-byte Folded Reload
	mov	x2, x25
	mov	w3, #0
	bl	_nfp_flower_cmsg_pcie_port
	mov	x2, x0
	ldr	x8, [x23]
	ldr	w4, [x8]
	mov	x0, x19
	mov	x1, x26
	mov	x3, x22
	bl	_nfp_repr_init
	cbnz	w0, LBB0_19
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, x25, lsl #2]
	mov	x1, x26
	bl	_RCU_INIT_POINTER
	ldr	w0, [x19]
	ldr	w8, [x24]
	cmp	w8, w20
Lloh12:
	adrp	x8, l_.str.2@PAGE
Lloh13:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh14:
	adrp	x9, l_.str.1@PAGE
Lloh15:
	add	x9, x9, l_.str.1@PAGEOFF
	csel	x2, x9, x8, eq
	ldr	w4, [x26]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x25
	bl	_nfp_info
	add	x25, x25, #1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x8, x25
	b.ne	LBB0_3
LBB0_11:
	add	x22, x23, #8
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_nfp_app_reprs_set
	mov	x0, x22
	mov	w1, #0
	bl	_atomic_set
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_nfp_flower_reprs_reify
	mov	x27, x0
	tbnz	w0, #31, LBB0_14
; %bb.12:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x27
	bl	_nfp_flower_wait_repr_reify
	mov	x27, x0
	cbnz	w0, LBB0_15
	b	LBB0_22
LBB0_13:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w27, w8
	b	LBB0_22
LBB0_14:
	ldr	w0, [x19]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_nfp_warn
LBB0_15:
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	bl	_nfp_app_reprs_set
	mov	x21, x0
	b	LBB0_21
LBB0_16:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w27, w8
	b	LBB0_21
LBB0_17:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w27, w8
	b	LBB0_20
LBB0_18:
	mov	x0, x22
	bl	_PTR_ERR
	mov	x27, x0
	mov	x0, x28
	bl	_kfree
	b	LBB0_20
LBB0_19:
	mov	x27, x0
	mov	x0, x28
	bl	_kfree
	mov	x0, x22
	bl	_nfp_port_free
LBB0_20:
	mov	x0, x26
	bl	_nfp_repr_free
LBB0_21:
	mov	x0, x19
	mov	x1, x21
	bl	_nfp_reprs_clean_and_free
LBB0_22:
	mov	x0, x27
	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
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_REPR_TYPE_PF,4,2           ; @NFP_REPR_TYPE_PF
	.comm	_NFP_PORT_PF_PORT,4,2           ; @NFP_PORT_PF_PORT
	.comm	_NFP_PORT_VF_PORT,4,2           ; @NFP_PORT_VF_PORT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_NFP_NET_CFG_BAR_SZ,4,2         ; @NFP_NET_CFG_BAR_SZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%d Representor(%s) created\n"

l_.str.1:                               ; @.str.1
	.asciz	"PF"

l_.str.2:                               ; @.str.2
	.asciz	"VF"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to notify firmware about repr creation\n"

	.no_dead_strip	_nfp_flower_spawn_vnic_reprs
.subsections_via_symbols
