	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function liquidio_vf_probe
_liquidio_vf_probe:                     ## @liquidio_vf_probe
	.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	16(%rdi), %rdi
	movl	$4, %esi
	callq	_octeon_allocate_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_LIO_FLAG_MSIX_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	leaq	8(%rbx), %rdi
	movl	16(%rbx), %ecx
	movl	24(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_pci_set_drvdata
	movq	%rbx, 8(%r14)
	movl	4(%rbx), %eax
	shll	$16, %eax
	orl	(%rbx), %eax
	movl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_octeon_device_init
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_liquidio_vf_remove
	jmp	LBB0_4
LBB0_1:
	addq	$8, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_5:
	movq	8(%r14), %rdi
	addq	$8, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_dbg
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to allocate device\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_LIO_FLAG_MSIX_ENABLED,4,2      ## @LIO_FLAG_MSIX_ENABLED
L_.str.1:                               ## @.str.1
	.asciz	"Initializing device %x:%x.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Device is ready\n"

	.no_dead_strip	_liquidio_vf_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function liquidio_vf_probe
_liquidio_vf_probe:                     ; @liquidio_vf_probe
	.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, #16]
	mov	w1, #4
	bl	_octeon_allocate_device
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _LIO_FLAG_MSIX_ENABLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LIO_FLAG_MSIX_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	add	x0, x19, #8
	ldr	w2, [x19, #24]
	ldr	w3, [x19, #16]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
	mov	x0, x19
	mov	x1, x20
	bl	_pci_set_drvdata
	str	x19, [x20, #8]
	ldp	w8, w9, [x19]
	orr	w8, w8, w9, lsl #16
	str	w8, [x20]
	mov	x0, x20
	bl	_octeon_device_init
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_liquidio_vf_remove
	b	LBB0_4
LBB0_3:
	add	x0, x19, #8
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_4:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	ldr	x8, [x20, #8]
	add	x0, x8, #8
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to allocate device\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_LIO_FLAG_MSIX_ENABLED,4,2      ; @LIO_FLAG_MSIX_ENABLED
l_.str.1:                               ; @.str.1
	.asciz	"Initializing device %x:%x.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Device is ready\n"

	.no_dead_strip	_liquidio_vf_probe
.subsections_via_symbols
