	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function liquidio_probe
_liquidio_probe:                        ## @liquidio_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	%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, %r13
	movq	(%rdi), %rdi
	movl	$4, %esi
	callq	_octeon_allocate_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	(%r13), %rcx
	movq	_OCTEON_CN23XX_PF_VID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_5
## %bb.4:
	movq	_LIO_FLAG_MSIX_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r14)
LBB0_5:
	movq	_OCTEON_CN66XX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	sete	%al
	movq	_OCTEON_CN68XX@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	sete	%dl
	orb	%al, %dl
	movzbl	%dl, %eax
	movl	%eax, (%r14)
	leaq	40(%r13), %rdi
	movl	32(%r13), %edx
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_dev_info
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_pci_set_drvdata
	movq	%r13, 24(%r14)
	movl	12(%r13), %eax
	shll	$16, %eax
	orl	8(%r13), %eax
	movl	%eax, 4(%r14)
	movq	_handshake@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	8(%r14), %rax
	leaq	(%rax,%rax,2), %rbx
	leaq	(%r12,%rbx,8), %r15
	movq	%r15, %rdi
	callq	_init_completion
	leaq	(%r12,%rbx,8), %rdi
	addq	$16, %rdi
	callq	_init_completion
	movq	%r13, 8(%r12,%rbx,8)
	cmpq	$0, 8(%r14)
	jne	LBB0_7
## %bb.6:
	movq	_first_stage@GOTPCREL(%rip), %rdi
	callq	_complete
LBB0_7:
	movq	%r14, %rdi
	callq	_octeon_device_init
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_complete
	movq	%r13, %rdi
	callq	_liquidio_remove
	jmp	LBB0_2
LBB0_1:
	addq	$40, %r13
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r14, %rdi
	callq	_OCTEON_CN23XX_PF
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movl	40(%r14), %edi
	callq	_atomic_read
	cmpl	$1, %eax
	jne	LBB0_13
## %bb.11:
	movq	24(%r13), %rax
	movl	(%rax), %r15d
	movl	16(%r13), %edi
	callq	_PCI_SLOT
	movl	%eax, %r12d
	movl	16(%r13), %edi
	callq	_PCI_FUNC
	movq	_liquidio_watchdog@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rsi
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	movl	%eax, %r9d
	callq	_kthread_create
	movq	%rax, 32(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_12
## %bb.15:
	movq	$0, 32(%r14)
	movq	24(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	movq	%r13, %rdi
	callq	_liquidio_remove
	movl	$-1, %eax
	jmp	LBB0_14
LBB0_12:
	movq	32(%r14), %rdi
	callq	_wake_up_process
LBB0_13:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 16(%r14)
	movq	24(%r14), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_dbg
	xorl	%eax, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to allocate device\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_OCTEON_CN23XX_PF_VID,8,3       ## @OCTEON_CN23XX_PF_VID
	.comm	_LIO_FLAG_MSIX_ENABLED,4,2      ## @LIO_FLAG_MSIX_ENABLED
	.comm	_OCTEON_CN66XX,8,3              ## @OCTEON_CN66XX
	.comm	_OCTEON_CN68XX,8,3              ## @OCTEON_CN68XX
L_.str.1:                               ## @.str.1
	.asciz	"Initializing device %x:%x.\n"

	.comm	_handshake,8,3                  ## @handshake
	.comm	_first_stage,4,2                ## @first_stage
	.comm	_liquidio_watchdog,4,2          ## @liquidio_watchdog
L_.str.2:                               ## @.str.2
	.asciz	"liowd/%02hhx:%02hhx.%hhx"

L_.str.3:                               ## @.str.3
	.asciz	"failed to create kernel_thread\n"

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

	.no_dead_strip	_liquidio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function liquidio_probe
_liquidio_probe:                        ; @liquidio_probe
	.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	x19, x0
	ldr	x0, [x0]
	mov	w1, #4
	bl	_octeon_allocate_device
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	x3, [x19]
Lloh0:
	adrp	x8, _OCTEON_CN23XX_PF_VID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OCTEON_CN23XX_PF_VID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x3, x8
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _LIO_FLAG_MSIX_ENABLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LIO_FLAG_MSIX_ENABLED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #44]
LBB0_3:
Lloh6:
	adrp	x8, _OCTEON_CN66XX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OCTEON_CN66XX@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x3, x8
Lloh9:
	adrp	x8, _OCTEON_CN68XX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OCTEON_CN68XX@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ccmp	x3, x8, #4, ne
	cset	w8, eq
	str	w8, [x20]
	add	x0, x19, #40
	ldr	w2, [x19, #32]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_dev_info
	mov	x0, x19
	mov	x1, x20
	bl	_pci_set_drvdata
	str	x19, [x20, #24]
	ldp	w8, w9, [x19, #8]
	orr	w8, w8, w9, lsl #16
	str	w8, [x20, #4]
Lloh14:
	adrp	x8, _handshake@GOTPAGE
Lloh15:
	ldr	x8, [x8, _handshake@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x9, [x20, #8]
	mov	w10, #24
	madd	x21, x9, x10, x8
	mov	x0, x21
	bl	_init_completion
	add	x0, x21, #16
	bl	_init_completion
	str	x19, [x21, #8]
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_5
; %bb.4:
Lloh17:
	adrp	x0, _first_stage@GOTPAGE
Lloh18:
	ldr	x0, [x0, _first_stage@GOTPAGEOFF]
	bl	_complete
LBB0_5:
	mov	x0, x20
	bl	_octeon_device_init
	cbz	x0, LBB0_10
; %bb.6:
	mov	x0, x21
	bl	_complete
	mov	x0, x19
	bl	_liquidio_remove
	b	LBB0_8
LBB0_7:
	add	x0, x19, #40
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_8:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
LBB0_10:
	mov	x0, x20
	bl	_OCTEON_CN23XX_PF
	cbz	x0, LBB0_15
; %bb.11:
	ldr	w0, [x20, #40]
	bl	_atomic_read
	cmp	w0, #1
	b.ne	LBB0_15
; %bb.12:
	ldr	x8, [x19, #24]
	ldr	w21, [x8]
	ldr	w0, [x19, #16]
	bl	_PCI_SLOT
	mov	x22, x0
	ldr	w0, [x19, #16]
	bl	_PCI_FUNC
	mov	x5, x0
Lloh24:
	adrp	x8, _liquidio_watchdog@GOTPAGE
Lloh25:
	ldr	x8, [x8, _liquidio_watchdog@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x2, l_.str.2@PAGE
Lloh28:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x1, x20
	mov	x3, x21
	mov	x4, x22
	bl	_kthread_create
	str	x0, [x20, #32]
	bl	_IS_ERR
	cbz	w0, LBB0_14
; %bb.13:
	str	xzr, [x20, #32]
	ldr	x0, [x20, #24]
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	mov	x0, x19
	bl	_liquidio_remove
	mov	w0, #-1
	b	LBB0_9
LBB0_14:
	ldr	x0, [x20, #32]
	bl	_wake_up_process
LBB0_15:
	movi.2s	v0, #1
	str	d0, [x20, #16]
	ldr	x0, [x20, #24]
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_dbg
	mov	w0, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to allocate device\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_OCTEON_CN23XX_PF_VID,8,3       ; @OCTEON_CN23XX_PF_VID
	.comm	_LIO_FLAG_MSIX_ENABLED,4,2      ; @LIO_FLAG_MSIX_ENABLED
	.comm	_OCTEON_CN66XX,8,3              ; @OCTEON_CN66XX
	.comm	_OCTEON_CN68XX,8,3              ; @OCTEON_CN68XX
l_.str.1:                               ; @.str.1
	.asciz	"Initializing device %x:%x.\n"

	.comm	_handshake,8,3                  ; @handshake
	.comm	_first_stage,4,2                ; @first_stage
	.comm	_liquidio_watchdog,4,2          ; @liquidio_watchdog
l_.str.2:                               ; @.str.2
	.asciz	"liowd/%02hhx:%02hhx.%hhx"

l_.str.3:                               ; @.str.3
	.asciz	"failed to create kernel_thread\n"

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

	.no_dead_strip	_liquidio_probe
.subsections_via_symbols
