	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enetc_msg_psi_init             ## -- Begin function enetc_msg_psi_init
	.p2align	4, 0x90
_enetc_msg_psi_init:                    ## @enetc_msg_psi_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %r12
	movl	8(%rdi), %edi
	movq	16(%r12), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	8(%r12), %rdi
	movq	_ENETC_SI_INT_IDX@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_pci_irq_vector
	movl	%eax, %r14d
	movq	_enetc_msg_psi_msix@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %ecx
	movl	%r14d, %edi
	xorl	%edx, %edx
	movq	%r12, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r13d
	movq	8(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_11
LBB0_2:
	movq	_ENETC_SIMSIVR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r12, %rdi
	callq	_enetc_wr
	leaq	4(%r15), %rdi
	movq	_enetc_msg_task@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	cmpl	$0, (%r15)
	jle	LBB0_10
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_enetc_msg_alloc_mbx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_4
LBB0_10:
	movq	%r12, %rdi
	callq	_enetc_msg_enable_mr_int
	xorl	%r13d, %r13d
	jmp	LBB0_11
LBB0_5:
	movl	%eax, %r13d
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.6:
	incl	%ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %esi
	movq	%r12, %rdi
	callq	_enetc_msg_free_mbx
	decl	%ebx
	cmpl	$1, %ebx
	jg	LBB0_7
LBB0_8:
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_free_irq
LBB0_11:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s-vfmsg"

	.comm	_ENETC_SI_INT_IDX,4,2           ## @ENETC_SI_INT_IDX
	.comm	_enetc_msg_psi_msix,4,2         ## @enetc_msg_psi_msix
L_.str.1:                               ## @.str.1
	.asciz	"PSI messaging: request_irq() failed!\n"

	.comm	_ENETC_SIMSIVR,4,2              ## @ENETC_SIMSIVR
	.comm	_enetc_msg_task,4,2             ## @enetc_msg_task
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enetc_msg_psi_init             ; -- Begin function enetc_msg_psi_init
	.p2align	2
_enetc_msg_psi_init:                    ; @enetc_msg_psi_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x0
	ldr	x19, [x0, #16]
	ldr	w0, [x0, #8]
	ldr	x8, [x19, #16]
	ldr	x3, [x8]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x23, _ENETC_SI_INT_IDX@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ENETC_SI_INT_IDX@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_pci_irq_vector
	mov	x20, x0
Lloh4:
	adrp	x8, _enetc_msg_psi_msix@GOTPAGE
Lloh5:
	ldr	x8, [x8, _enetc_msg_psi_msix@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	w3, [x21, #8]
	mov	w2, #0
	mov	x4, x19
	bl	_request_irq
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
	ldr	x0, [x19, #8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_11
LBB0_2:
Lloh9:
	adrp	x8, _ENETC_SIMSIVR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENETC_SIMSIVR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_enetc_wr
	add	x0, x21, #4
Lloh12:
	adrp	x8, _enetc_msg_task@GOTPAGE
Lloh13:
	ldr	x8, [x8, _enetc_msg_task@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_INIT_WORK
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w23, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_enetc_msg_alloc_mbx
	cbnz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w23, #1
	ldr	w8, [x21]
	cmp	w23, w8
	b.lt	LBB0_4
LBB0_6:
	mov	x0, x19
	bl	_enetc_msg_enable_mr_int
	mov	w22, #0
	b	LBB0_11
LBB0_7:
	mov	x22, x0
	cbz	w23, LBB0_10
; %bb.8:
	add	w21, w23, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	sub	w1, w21, #2
	mov	x0, x19
	bl	_enetc_msg_free_mbx
	sub	w21, w21, #1
	cmp	w21, #1
	b.gt	LBB0_9
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	bl	_free_irq
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s-vfmsg"

	.comm	_ENETC_SI_INT_IDX,4,2           ; @ENETC_SI_INT_IDX
	.comm	_enetc_msg_psi_msix,4,2         ; @enetc_msg_psi_msix
l_.str.1:                               ; @.str.1
	.asciz	"PSI messaging: request_irq() failed!\n"

	.comm	_ENETC_SIMSIVR,4,2              ; @ENETC_SIMSIVR
	.comm	_enetc_msg_task,4,2             ; @enetc_msg_task
.subsections_via_symbols
