	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_abm_spawn_repr
_nfp_abm_spawn_repr:                    ## @nfp_abm_spawn_repr
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	_NFP_PORT_PHYS_PORT@GOTPCREL(%rip), %r14
	cmpl	%edx, (%r14)
	jne	LBB0_2
## %bb.1:
	movl	$1, %esi
	movq	_NFP_REPR_TYPE_PHYS_PORT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	8(%r13), %rax
	movl	(%rax), %esi
	movq	_NFP_REPR_TYPE_PF@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_nfp_repr_alloc_mqs
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%r13, (%rax)
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdx
	callq	_nfp_port_alloc
	movl	%r15d, %ebx
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	jmp	LBB0_14
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_15
LBB0_7:
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	cmpl	%ebx, (%r14)
	jne	LBB0_10
## %bb.8:
	movl	$1, (%r15)
	movq	8(%r12), %rdi
	movq	(%r13), %rcx
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_nfp_port_init_phy_port
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:
	movq	8(%r13), %rax
	jmp	LBB0_11
LBB0_10:
	movq	16(%r13), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	8(%r12), %rax
	xorl	%ecx, %ecx
	cmpl	$2, (%rax)
	setge	%cl
	movl	%ecx, 4(%r15)
	movq	(%r13), %rax
	movq	%rax, 8(%r15)
	movq	8(%r13), %rax
	movl	8(%rax), %ecx
	movl	%ecx, 16(%r15)
LBB0_11:
	movq	16(%rax), %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_SET_NETDEV_DEV
	movq	%rbx, %rdi
	callq	_eth_hw_addr_random
	movq	(%r13), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_nfp_abm_portid
	movq	8(%r13), %rcx
	movl	4(%rcx), %r8d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	movq	%r15, %rcx
	callq	_nfp_repr_init
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_12
LBB0_13:
	movq	%r15, %rdi
	callq	_nfp_port_free
LBB0_14:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_nfp_repr_free
LBB0_15:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_nfp_reprs_get_locked
	movq	%rax, %rbx
	movq	(%r13), %rdx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_nfp_repr_get_locked
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_WARN
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	(%rbx), %rax
	movq	(%r13), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_rcu_assign_pointer
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movl	(%r12), %edi
	movq	_NFP_PORT_PF_PORT@GOTPCREL(%rip), %rax
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	(%r13), %rcx
	movl	(%rbx), %r8d
	leaq	L_.str.1(%rip), %rsi
	callq	_nfp_info
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_PORT_PHYS_PORT,4,2         ## @NFP_PORT_PHYS_PORT
	.comm	_NFP_REPR_TYPE_PHYS_PORT,4,2    ## @NFP_REPR_TYPE_PHYS_PORT
	.comm	_NFP_REPR_TYPE_PF,4,2           ## @NFP_REPR_TYPE_PF
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"duplicate repr"

L_.str.1:                               ## @.str.1
	.asciz	"%s Port %d Representor(%s) created\n"

	.comm	_NFP_PORT_PF_PORT,4,2           ## @NFP_PORT_PF_PORT
L_.str.2:                               ## @.str.2
	.asciz	"PCIe"

L_.str.3:                               ## @.str.3
	.asciz	"Phys"

	.no_dead_strip	_nfp_abm_spawn_repr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_abm_spawn_repr
_nfp_abm_spawn_repr:                    ; @nfp_abm_spawn_repr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x25, _NFP_PORT_PHYS_PORT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _NFP_PORT_PHYS_PORT@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, w2
	b.ne	LBB0_2
; %bb.1:
	mov	w1, #1
Lloh2:
	adrp	x8, _NFP_REPR_TYPE_PHYS_PORT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NFP_REPR_TYPE_PHYS_PORT@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
Lloh4:
	adrp	x8, _NFP_REPR_TYPE_PF@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NFP_REPR_TYPE_PF@GOTPAGEOFF]
LBB0_3:
	ldr	w23, [x8]
	mov	x0, x21
	mov	w2, #1
	bl	_nfp_repr_alloc_mqs
	cbz	x0, LBB0_6
; %bb.4:
	mov	x22, x0
	bl	_netdev_priv
	str	x19, [x0]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_nfp_port_alloc
	mov	x24, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x24
	bl	_PTR_ERR
	mov	x25, x0
	b	LBB0_13
LBB0_6:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_14
LBB0_7:
	ldr	w8, [x25]
	cmp	w8, w20
	b.ne	LBB0_10
; %bb.8:
	mov	w8, #1
	str	w8, [x24]
	ldr	x0, [x21, #8]
	ldr	x3, [x19]
	mov	x1, x21
	mov	x2, x24
	bl	_nfp_port_init_phy_port
	mov	x25, x0
	cbnz	w0, LBB0_12
; %bb.9:
	ldr	x8, [x19, #8]
	b	LBB0_11
LBB0_10:
	ldr	x8, [x19, #16]
	ldr	w9, [x8]
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
	cmp	w8, #1
	cset	w8, gt
	str	w8, [x24, #4]
	ldp	x10, x8, [x19]
	str	x10, [x24, #8]
	ldr	w10, [x8, #8]
	stp	w10, w9, [x24, #16]
LBB0_11:
	ldr	x1, [x8, #16]
	mov	x0, x22
	bl	_SET_NETDEV_DEV
	mov	x0, x22
	bl	_eth_hw_addr_random
	ldr	x1, [x19]
	mov	x0, x23
	bl	_nfp_abm_portid
	mov	x2, x0
	ldr	x8, [x19, #8]
	ldr	w4, [x8, #4]
	mov	x0, x21
	mov	x1, x22
	mov	x3, x24
	bl	_nfp_repr_init
	mov	x25, x0
	cbz	w0, LBB0_15
LBB0_12:
	mov	x0, x24
	bl	_nfp_port_free
LBB0_13:
	mov	x0, x22
	bl	_nfp_repr_free
LBB0_14:
	mov	x0, x25
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	x0, x21
	mov	x1, x23
	bl	_nfp_reprs_get_locked
	mov	x23, x0
	ldr	x2, [x19]
	mov	x0, x21
	mov	x1, x23
	bl	_nfp_repr_get_locked
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN
	bl	_rtnl_lock
	ldr	x8, [x23]
	ldr	x9, [x19]
	ldr	w0, [x8, x9, lsl #2]
	mov	x1, x22
	bl	_rcu_assign_pointer
	bl	_rtnl_unlock
	ldr	w0, [x21]
Lloh11:
	adrp	x8, _NFP_PORT_PF_PORT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NFP_PORT_PF_PORT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, l_.str.3@PAGE
Lloh15:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh16:
	adrp	x10, l_.str.2@PAGE
Lloh17:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, w20
	csel	x2, x10, x9, eq
	ldr	x3, [x19]
	ldr	w4, [x22]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_nfp_info
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_PORT_PHYS_PORT,4,2         ; @NFP_PORT_PHYS_PORT
	.comm	_NFP_REPR_TYPE_PHYS_PORT,4,2    ; @NFP_REPR_TYPE_PHYS_PORT
	.comm	_NFP_REPR_TYPE_PF,4,2           ; @NFP_REPR_TYPE_PF
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"duplicate repr"

l_.str.1:                               ; @.str.1
	.asciz	"%s Port %d Representor(%s) created\n"

	.comm	_NFP_PORT_PF_PORT,4,2           ; @NFP_PORT_PF_PORT
l_.str.2:                               ; @.str.2
	.asciz	"PCIe"

l_.str.3:                               ; @.str.3
	.asciz	"Phys"

	.no_dead_strip	_nfp_abm_spawn_repr
.subsections_via_symbols
