	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_net_mbox_reconfig          ## -- Begin function nfp_net_mbox_reconfig
	.p2align	4, 0x90
_nfp_net_mbox_reconfig:                 ## @nfp_net_mbox_reconfig
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rdx
	movq	%rdi, %r15
	movq	(%rdi), %r14
	movq	_NFP_NET_CFG_MBOX_SIMPLE_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	callq	_nn_writeq
	movq	_NFP_NET_CFG_UPDATE_MBOX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	___nfp_net_reconfig
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_nn_err
	jmp	LBB0_3
LBB0_2:
	movq	_NFP_NET_CFG_MBOX_SIMPLE_RET@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_nn_readl
	movl	%eax, %ebx
	negl	%ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_NET_CFG_MBOX_SIMPLE_CMD,8,3 ## @NFP_NET_CFG_MBOX_SIMPLE_CMD
	.comm	_NFP_NET_CFG_UPDATE_MBOX,4,2    ## @NFP_NET_CFG_UPDATE_MBOX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Mailbox update error\n"

	.comm	_NFP_NET_CFG_MBOX_SIMPLE_RET,8,3 ## @NFP_NET_CFG_MBOX_SIMPLE_RET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_net_mbox_reconfig          ; -- Begin function nfp_net_mbox_reconfig
	.p2align	2
_nfp_net_mbox_reconfig:                 ; @nfp_net_mbox_reconfig
	.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	x2, x1
	mov	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _NFP_NET_CFG_MBOX_SIMPLE_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFP_NET_CFG_MBOX_SIMPLE_CMD@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x1, x8, x21
	bl	_nn_writeq
Lloh3:
	adrp	x8, _NFP_NET_CFG_UPDATE_MBOX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NFP_NET_CFG_UPDATE_MBOX@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	___nfp_net_reconfig
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_nn_err
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x8, _NFP_NET_CFG_MBOX_SIMPLE_RET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NFP_NET_CFG_MBOX_SIMPLE_RET@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	x0, x19
	bl	_nn_readl
	neg	w20, w0
LBB0_3:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_NET_CFG_MBOX_SIMPLE_CMD,8,3 ; @NFP_NET_CFG_MBOX_SIMPLE_CMD
	.comm	_NFP_NET_CFG_UPDATE_MBOX,4,2    ; @NFP_NET_CFG_UPDATE_MBOX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Mailbox update error\n"

	.comm	_NFP_NET_CFG_MBOX_SIMPLE_RET,8,3 ; @NFP_NET_CFG_MBOX_SIMPLE_RET
.subsections_via_symbols
