	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function octeon_chip_specific_setup
_octeon_chip_specific_setup:            ## @octeon_chip_specific_setup
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	leaq	-48(%rbp), %rdx
	xorl	%esi, %esi
	callq	_pci_read_config_dword
	movq	8(%rbx), %rdi
	leaq	-44(%rbp), %rdx
	movl	$8, %esi
	callq	_pci_read_config_dword
	movzbl	-44(%rbp), %eax
	movl	%eax, (%rbx)
	movl	-48(%rbp), %edx
	cmpl	$130, %edx
	je	LBB0_4
## %bb.1:
	cmpl	$129, %edx
	je	LBB0_6
## %bb.2:
	cmpl	$128, %edx
	jne	LBB0_5
## %bb.3:
	movq	_OCTEON_CN68XX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	%rbx, %rdi
	callq	_lio_setup_cn68xx_octeon_device
	leaq	L_.str(%rip), %r14
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_8
LBB0_4:
	movq	_OCTEON_CN23XX_PF_VID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	%rbx, %rdi
	callq	_setup_cn23xx_octeon_pf_device
	leaq	L_.str.2(%rip), %r14
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_8
LBB0_6:
	movq	_OCTEON_CN66XX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	%rbx, %rdi
	callq	_lio_setup_cn66xx_octeon_device
	leaq	L_.str.1(%rip), %r14
	testl	%eax, %eax
	jne	LBB0_9
LBB0_8:
	movq	8(%rbx), %r15
	movq	%rbx, %rdi
	callq	_OCTEON_MAJOR_REV
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_OCTEON_MINOR_REV
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_octeon_get_conf
	movl	(%rax), %r9d
	movq	_LIQUIDIO_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	movl	%r13d, %r8d
	callq	_dev_info
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_5:
	movq	8(%rbx), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_err
	movl	$1, %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCTEON_CN68XX,4,2              ## @OCTEON_CN68XX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CN68XX"

	.comm	_OCTEON_CN66XX,4,2              ## @OCTEON_CN66XX
L_.str.1:                               ## @.str.1
	.asciz	"CN66XX"

	.comm	_OCTEON_CN23XX_PF_VID,4,2       ## @OCTEON_CN23XX_PF_VID
L_.str.2:                               ## @.str.2
	.asciz	"CN23XX"

L_.str.4:                               ## @.str.4
	.asciz	"Unknown device found (dev_id: %x)\n"

L_.str.5:                               ## @.str.5
	.asciz	"%s PASS%d.%d %s Version: %s\n"

	.comm	_LIQUIDIO_VERSION,4,2           ## @LIQUIDIO_VERSION
	.no_dead_strip	_octeon_chip_specific_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function octeon_chip_specific_setup
_octeon_chip_specific_setup:            ; @octeon_chip_specific_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	ldr	x0, [x0, #8]
	add	x2, sp, #12
	mov	w1, #0
	bl	_pci_read_config_dword
	ldr	x0, [x19, #8]
	add	x2, sp, #8
	mov	w1, #8
	bl	_pci_read_config_dword
	ldrb	w8, [sp, #8]
	str	w8, [x19]
	ldr	w2, [sp, #12]
	cmp	w2, #130
	b.eq	LBB0_4
; %bb.1:
	cmp	w2, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w2, #128
	b.ne	LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _OCTEON_CN68XX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OCTEON_CN68XX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	mov	x0, x19
	bl	_lio_setup_cn68xx_octeon_device
Lloh3:
	adrp	x20, l_.str@PAGE
Lloh4:
	add	x20, x20, l_.str@PAGEOFF
	cbnz	w0, LBB0_8
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _OCTEON_CN23XX_PF_VID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OCTEON_CN23XX_PF_VID@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	mov	x0, x19
	bl	_setup_cn23xx_octeon_pf_device
Lloh8:
	adrp	x20, l_.str.2@PAGE
Lloh9:
	add	x20, x20, l_.str.2@PAGEOFF
	cbnz	w0, LBB0_8
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _OCTEON_CN66XX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OCTEON_CN66XX@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	mov	x0, x19
	bl	_lio_setup_cn66xx_octeon_device
Lloh13:
	adrp	x20, l_.str.1@PAGE
Lloh14:
	add	x20, x20, l_.str.1@PAGEOFF
	cbnz	w0, LBB0_8
LBB0_6:
	ldr	x21, [x19, #8]
	mov	x0, x19
	bl	_OCTEON_MAJOR_REV
	mov	x22, x0
	mov	x0, x19
	bl	_OCTEON_MINOR_REV
	mov	x23, x0
	mov	x0, x19
	bl	_octeon_get_conf
	ldr	w5, [x0]
Lloh15:
	adrp	x8, _LIQUIDIO_VERSION@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LIQUIDIO_VERSION@GOTPAGEOFF]
Lloh17:
	ldr	w6, [x8]
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	mov	x3, x22
	mov	x4, x23
	bl	_dev_info
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	ldr	x0, [x19, #8]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_OCTEON_CN68XX,4,2              ; @OCTEON_CN68XX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CN68XX"

	.comm	_OCTEON_CN66XX,4,2              ; @OCTEON_CN66XX
l_.str.1:                               ; @.str.1
	.asciz	"CN66XX"

	.comm	_OCTEON_CN23XX_PF_VID,4,2       ; @OCTEON_CN23XX_PF_VID
l_.str.2:                               ; @.str.2
	.asciz	"CN23XX"

l_.str.4:                               ; @.str.4
	.asciz	"Unknown device found (dev_id: %x)\n"

l_.str.5:                               ; @.str.5
	.asciz	"%s PASS%d.%d %s Version: %s\n"

	.comm	_LIQUIDIO_VERSION,4,2           ; @LIQUIDIO_VERSION
	.no_dead_strip	_octeon_chip_specific_setup
.subsections_via_symbols
