	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_flower_spawn_phy_reprs
_nfp_flower_spawn_phy_reprs:            ## @nfp_flower_spawn_phy_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	(%rax), %r13
	movl	(%r13), %esi
	callq	_nfp_flower_cmsg_mac_repr_start
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %r12
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	16(%r13), %rdi
	incq	%rdi
	callq	_nfp_reprs_alloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.2:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r13)
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movl	(%rax,%rbx), %ebx
	movq	%r15, %rdi
	callq	_nfp_repr_alloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_18
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	movq	%rax, %rbx
	callq	_netdev_priv
	movq	%rbx, (%rax)
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, (%rbx)
	movq	_NFP_PORT_PHYS_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdx
	callq	_nfp_port_alloc
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_19
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r15), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_nfp_port_init_phy_port
	testl	%eax, %eax
	jne	LBB0_20
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movq	8(%rax), %rsi
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_SET_NETDEV_DEV
	movq	8(%r13), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_nfp_net_get_mac_addr
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movl	%r14d, %edi
	callq	_nfp_flower_cmsg_phys_port
	movq	(%rbx), %rcx
	movq	%r13, %rdi
	movl	(%rcx), %r8d
	movq	%r15, %rsi
	movl	%eax, %edx
	movq	%r12, %rcx
	callq	_nfp_repr_init
	testl	%eax, %eax
	jne	LBB0_22
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rax
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movl	4(%rax,%rbx), %ecx
	movl	8(%rax,%rbx), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%r14d, %r8d
	callq	_nfp_flower_cmsg_mac_repr_add
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %edi
	movq	%r15, %rsi
	callq	_RCU_INIT_POINTER
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	4(%r13), %edi
	movl	(%r15), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_nfp_info
	incq	%r12
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movl	(%rdx), %eax
	addq	$12, %rbx
	movq	%r12, %rcx
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %r12
	movq	%r13, %r15
	movq	%rdx, %r13
	jb	LBB0_4
LBB0_10:
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	addq	$8, %r12
	movq	_NFP_REPR_TYPE_PHYS_PORT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_nfp_app_reprs_set
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_nfp_flower_reprs_reify
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_15
## %bb.11:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_nfp_flower_wait_repr_reify
	movl	%eax, %r13d
	testl	%eax, %eax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_16
## %bb.12:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_nfp_ctrl_tx
	xorl	%r13d, %r13d
	jmp	LBB0_28
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_28
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_27
LBB0_15:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_nfp_warn
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_16:
	movl	(%r14), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_nfp_app_reprs_set
	movq	%rax, %rsi
	jmp	LBB0_26
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_24
LBB0_18:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	movq	%r14, %rdi
	callq	_nfp_repr_free
	jmp	LBB0_25
LBB0_19:
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, %r13d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	jmp	LBB0_21
LBB0_20:
	movl	%eax, %r13d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	movq	%r12, %rdi
	callq	_nfp_port_free
LBB0_21:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_22:
	movl	%eax, %r13d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	movq	%r12, %rdi
	callq	_nfp_port_free
	movq	%r15, %rdi
LBB0_23:
	callq	_nfp_repr_free
LBB0_24:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_25:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
LBB0_26:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_nfp_reprs_clean_and_free
LBB0_27:
	movq	%r12, %rdi
	callq	_kfree_skb
LBB0_28:
	movl	%r13d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_NFP_PORT_PHYS_PORT,4,2         ## @NFP_PORT_PHYS_PORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Phys Port %d Representor(%s) created\n"

	.comm	_NFP_REPR_TYPE_PHYS_PORT,4,2    ## @NFP_REPR_TYPE_PHYS_PORT
L_.str.1:                               ## @.str.1
	.asciz	"Failed to notify firmware about repr creation\n"

	.no_dead_strip	_nfp_flower_spawn_phy_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_phy_reprs
_nfp_flower_spawn_phy_reprs:            ; @nfp_flower_spawn_phy_reprs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x19, [x8]
	ldr	w1, [x19]
	bl	_nfp_flower_cmsg_mac_repr_start
	cbz	x0, LBB0_13
; %bb.1:
	mov	x25, x0
	ldr	x8, [x19, #16]
	add	x0, x8, #1
	bl	_nfp_reprs_alloc
	cbz	x0, LBB0_14
; %bb.2:
	mov	x28, x0
	ldr	w8, [x19]
	cbz	w8, LBB0_10
; %bb.3:
	mov	x21, #0
	mov	x24, #0
	str	x28, [sp]                       ; 8-byte Folded Spill
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w27, [x8, x21]
	mov	x0, x20
	bl	_nfp_repr_alloc
	cbz	x0, LBB0_18
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_19
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, x0
	mov	x22, x25
	mov	x0, x23
	bl	_netdev_priv
	str	x28, [x0]
	str	x0, [x28]
Lloh3:
	adrp	x8, _NFP_PORT_PHYS_PORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NFP_PORT_PHYS_PORT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x23
	bl	_nfp_port_alloc
	mov	x25, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_20
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x20, #8]
	mov	x1, x20
	mov	x2, x25
	mov	x3, x24
	bl	_nfp_port_init_phy_port
	cbnz	w0, LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x26, [sp, #8]                   ; 8-byte Folded Reload
	ldr	x8, [x26]
	ldr	x1, [x8, #8]
	mov	x0, x23
	bl	_SET_NETDEV_DEV
	ldr	x0, [x20, #8]
	mov	x1, x23
	mov	x2, x25
	bl	_nfp_net_get_mac_addr
	mov	x0, x27
	bl	_nfp_flower_cmsg_phys_port
	mov	x2, x0
	ldr	x8, [x26]
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x23
	mov	x3, x25
	bl	_nfp_repr_init
	cbnz	w0, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x21
	ldp	w3, w2, [x8, #4]
	mov	x25, x22
	mov	x0, x22
	mov	x1, x24
	mov	x4, x27
	bl	_nfp_flower_cmsg_mac_repr_add
	ldr	x28, [sp]                       ; 8-byte Folded Reload
	ldr	x8, [x28]
	ldr	w0, [x8, x27, lsl #2]
	mov	x1, x23
	bl	_RCU_INIT_POINTER
	ldr	w0, [x20, #4]
	ldr	w3, [x23]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x27
	bl	_nfp_info
	add	x24, x24, #1
	ldr	w8, [x19]
	add	x21, x21, #12
	cmp	x24, x8
	b.lo	LBB0_4
LBB0_10:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x22, x8, #8
Lloh8:
	adrp	x19, _NFP_REPR_TYPE_PHYS_PORT@GOTPAGE
Lloh9:
	ldr	x19, [x19, _NFP_REPR_TYPE_PHYS_PORT@GOTPAGEOFF]
	ldr	w1, [x19]
	mov	x0, x20
	mov	x2, x28
	bl	_nfp_app_reprs_set
	mov	x0, x22
	mov	w1, #0
	bl	_atomic_set
	ldr	w1, [x19]
	mov	x0, x20
	mov	w2, #1
	bl	_nfp_flower_reprs_reify
	mov	x26, x0
	tbnz	w0, #31, LBB0_16
; %bb.11:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x26
	bl	_nfp_flower_wait_repr_reify
	mov	x26, x0
	cbnz	w0, LBB0_17
; %bb.12:
	ldr	w0, [x20]
	mov	x1, x25
	bl	_nfp_ctrl_tx
	b	LBB0_25
LBB0_13:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_25
LBB0_14:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_24
LBB0_15:
	mov	x26, x0
	mov	x0, x28
	bl	_kfree
	mov	x0, x25
	bl	_nfp_port_free
	b	LBB0_21
LBB0_16:
	ldr	w0, [x20, #4]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_nfp_warn
LBB0_17:
	ldr	w1, [x19]
	mov	x0, x20
	mov	x2, #0
	bl	_nfp_app_reprs_set
	mov	x28, x0
	b	LBB0_23
LBB0_18:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_23
LBB0_19:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w26, w8
	mov	x0, x23
	bl	_nfp_repr_free
	b	LBB0_22
LBB0_20:
	mov	x0, x25
	bl	_PTR_ERR
	mov	x26, x0
	mov	x0, x28
	bl	_kfree
LBB0_21:
	mov	x0, x23
	bl	_nfp_repr_free
	mov	x25, x22
LBB0_22:
	ldr	x28, [sp]                       ; 8-byte Folded Reload
LBB0_23:
	mov	x0, x20
	mov	x1, x28
	bl	_nfp_reprs_clean_and_free
LBB0_24:
	mov	x0, x25
	bl	_kfree_skb
LBB0_25:
	mov	x0, x26
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_NFP_PORT_PHYS_PORT,4,2         ; @NFP_PORT_PHYS_PORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Phys Port %d Representor(%s) created\n"

	.comm	_NFP_REPR_TYPE_PHYS_PORT,4,2    ; @NFP_REPR_TYPE_PHYS_PORT
l_.str.1:                               ; @.str.1
	.asciz	"Failed to notify firmware about repr creation\n"

	.no_dead_strip	_nfp_flower_spawn_phy_reprs
.subsections_via_symbols
