	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function liquidio_init_nic_module
_liquidio_init_nic_module:              ## @liquidio_init_nic_module
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movl	$1, (%rbx)
	movq	16(%rbx), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_MAX_OCTEON_LINKS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	movq	16(%rbx), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$-1, (%rcx,%rdx,4)
	incq	%rdx
	movslq	(%rax), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	callq	_setup_nic_devices
	movl	%eax, %r14d
	movq	8(%rbx), %rdi
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movl	$0, (%rbx)
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_dbg
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Initializing network interfaces\n"

	.comm	_MAX_OCTEON_LINKS,4,2           ## @MAX_OCTEON_LINKS
L_.str.1:                               ## @.str.1
	.asciz	"Setup NIC devices failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"Network interfaces ready\n"

	.no_dead_strip	_liquidio_init_nic_module
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function liquidio_init_nic_module
_liquidio_init_nic_module:              ; @liquidio_init_nic_module
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	w8, #1
	str	w8, [x19]
	ldr	x0, [x19, #16]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh2:
	adrp	x8, _MAX_OCTEON_LINKS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_OCTEON_LINKS@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x9, #0
	ldr	x10, [x19, #16]
	mov	w11, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	w11, [x10, x9, lsl #2]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	cmp	x9, x12
	b.lt	LBB0_2
LBB0_3:
	mov	x0, x19
	bl	_setup_nic_devices
	mov	x20, x0
	ldr	x0, [x19, #8]
	cbz	w20, LBB0_5
; %bb.4:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	str	wzr, [x19]
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Initializing network interfaces\n"

	.comm	_MAX_OCTEON_LINKS,4,2           ; @MAX_OCTEON_LINKS
l_.str.1:                               ; @.str.1
	.asciz	"Setup NIC devices failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"Network interfaces ready\n"

	.no_dead_strip	_liquidio_init_nic_module
.subsections_via_symbols
