	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_net_prepare_vector
_nfp_net_prepare_vector:                ## @nfp_net_prepare_vector
	.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
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	leaq	16(%rbx), %rsi
	movq	_nfp_net_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NAPI_POLL_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_netif_napi_add
	jmp	LBB0_3
LBB0_2:
	leaq	12(%rbx), %rdi
	callq	_tasklet_enable
LBB0_3:
	movl	20(%rbx), %r12d
	movq	%r14, %rdi
	callq	_nfp_net_name
	leaq	L_.str(%rip), %rdx
	movl	%r12d, %edi
	movl	$4, %esi
	movq	%rax, %rcx
	movl	%r15d, %r8d
	callq	_snprintf
	movl	24(%rbx), %esi
	movl	4(%rbx), %edi
	movl	20(%rbx), %ecx
	xorl	%edx, %edx
	movq	%rbx, %r8
	callq	_request_irq
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	cmpq	$0, (%r14)
	je	LBB0_6
## %bb.5:
	leaq	16(%rbx), %rdi
	callq	_netif_napi_del
	jmp	LBB0_7
LBB0_8:
	movl	4(%rbx), %edi
	callq	_disable_irq
	movl	4(%rbx), %edi
	leaq	8(%rbx), %rsi
	callq	_irq_set_affinity_hint
	movl	(%rbx), %r8d
	movl	4(%rbx), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_nn_dbg
	jmp	LBB0_9
LBB0_6:
	leaq	12(%rbx), %rdi
	callq	_tasklet_disable
LBB0_7:
	movl	4(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_nn_err
LBB0_9:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nfp_net_poll,4,2               ## @nfp_net_poll
	.comm	_NAPI_POLL_WEIGHT,4,2           ## @NAPI_POLL_WEIGHT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s-rxtx-%d"

L_.str.1:                               ## @.str.1
	.asciz	"Error requesting IRQ %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"RV%02d: irq=%03d/%03d\n"

	.no_dead_strip	_nfp_net_prepare_vector
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_net_prepare_vector
_nfp_net_prepare_vector:                ; @nfp_net_prepare_vector
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_2
; %bb.1:
	add	x1, x20, #16
Lloh0:
	adrp	x8, _nfp_net_poll@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nfp_net_poll@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _NAPI_POLL_WEIGHT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NAPI_POLL_WEIGHT@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	bl	_netif_napi_add
	b	LBB0_3
LBB0_2:
	add	x0, x20, #12
	bl	_tasklet_enable
LBB0_3:
	ldr	w22, [x20, #20]
	mov	x0, x19
	bl	_nfp_net_name
	mov	x3, x0
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	mov	w1, #4
	mov	x4, x21
	bl	_snprintf
	ldr	w0, [x20, #4]
	ldp	w3, w1, [x20, #20]
	mov	w2, #0
	mov	x4, x20
	bl	_request_irq
	mov	x22, x0
	cbz	w0, LBB0_6
; %bb.4:
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.5:
	add	x0, x20, #16
	bl	_netif_napi_del
	b	LBB0_8
LBB0_6:
	ldr	w0, [x20, #4]
	bl	_disable_irq
	ldr	w0, [x20, #4]
	add	x1, x20, #8
	bl	_irq_set_affinity_hint
	ldp	w4, w3, [x20]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_nn_dbg
	b	LBB0_9
LBB0_7:
	add	x0, x20, #12
	bl	_tasklet_disable
LBB0_8:
	ldr	w2, [x20, #4]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_nn_err
LBB0_9:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_nfp_net_poll,4,2               ; @nfp_net_poll
	.comm	_NAPI_POLL_WEIGHT,4,2           ; @NAPI_POLL_WEIGHT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s-rxtx-%d"

l_.str.1:                               ; @.str.1
	.asciz	"Error requesting IRQ %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"RV%02d: irq=%03d/%03d\n"

	.no_dead_strip	_nfp_net_prepare_vector
.subsections_via_symbols
