	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_abm_vnic_alloc
_nfp_abm_vnic_alloc:                    ## @nfp_abm_vnic_alloc
	.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, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	16(%rdi), %r12
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, 8(%r15)
	movq	%r12, 40(%rax)
	movq	%r15, 24(%rax)
	movl	%r14d, (%rax)
	movl	4(%r15), %eax
	movl	%eax, 32(%rbx)
	leaq	20(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, %rdi
	callq	_nfp_abm_ctrl_read_params
	movl	%r14d, %ecx
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_3
LBB0_8:
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_9
LBB0_3:
	movl	%ecx, %r14d
	movl	(%r12), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %eax
	movl	8(%r13), %edi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %esi
	movl	$1, %edx
	callq	_nfp_eth_set_configured
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movl	(%r15), %edi
	callq	_netif_keep_dst
	movq	(%r13), %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_nfp_abm_vnic_set_mac
	addq	$16, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_INIT_RADIX_TREE
	xorl	%r14d, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_7:
	movl	%eax, %r14d
	movq	8(%rbx), %rdi
	callq	_kfree
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_nfp_abm_vnic_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_abm_vnic_alloc
_nfp_abm_vnic_alloc:                    ; @nfp_abm_vnic_alloc
	.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	x21, x1
	mov	x22, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x26, [x8]
	ldr	x23, [x0, #16]
Lloh0:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	str	x0, [x21, #8]
	str	x23, [x0, #40]
	str	x21, [x0, #24]
	str	w20, [x0]
	ldr	w8, [x21, #4]
	str	w8, [x0, #32]
	add	x0, x0, #20
	bl	_INIT_LIST_HEAD
	mov	x0, x19
	bl	_nfp_abm_ctrl_read_params
	mov	x24, x0
	cbz	w0, LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_kfree
	b	LBB0_7
LBB0_3:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_7
LBB0_4:
	ldr	w0, [x23]
	ldr	w1, [x25]
	bl	_kzalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_8
; %bb.5:
	mov	w8, w20
	ldr	w0, [x22, #8]
	ldr	w1, [x26, x8, lsl #2]
	mov	w2, #1
	bl	_nfp_eth_set_configured
	tbnz	w0, #31, LBB0_9
; %bb.6:
	ldr	w0, [x21]
	bl	_netif_keep_dst
	ldr	x0, [x22]
	mov	x1, x23
	mov	x2, x21
	mov	x3, x20
	bl	_nfp_abm_vnic_set_mac
	add	x0, x19, #16
	ldr	w1, [x25]
	bl	_INIT_RADIX_TREE
	mov	w24, #0
LBB0_7:
	mov	x0, x24
	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_8:
	mov	w24, #0
	b	LBB0_2
LBB0_9:
	mov	x24, x0
	ldr	x0, [x19, #8]
	bl	_kfree
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_nfp_abm_vnic_alloc
.subsections_via_symbols
