	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_dvsec_vendor
_read_dvsec_vendor:                     ## @read_dvsec_vendor
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_PCI_FUNC
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	_OCXL_DVSEC_VENDOR_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_find_dvsec
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movslq	%eax, %r14
	movq	_OCXL_DVSEC_VENDOR_CFG_VERS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_dword
	movq	_OCXL_DVSEC_VENDOR_TLX_VERS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_dword
	movq	_OCXL_DVSEC_VENDOR_DLX_VERS@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_pci_read_config_dword
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	-28(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	-24(%rbp), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	-20(%rbp), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_3:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCXL_DVSEC_VENDOR_ID,4,2       ## @OCXL_DVSEC_VENDOR_ID
	.comm	_OCXL_DVSEC_VENDOR_CFG_VERS,8,3 ## @OCXL_DVSEC_VENDOR_CFG_VERS
	.comm	_OCXL_DVSEC_VENDOR_TLX_VERS,8,3 ## @OCXL_DVSEC_VENDOR_TLX_VERS
	.comm	_OCXL_DVSEC_VENDOR_DLX_VERS,8,3 ## @OCXL_DVSEC_VENDOR_DLX_VERS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Vendor specific DVSEC:\n"

L_.str.1:                               ## @.str.1
	.asciz	"  CFG version = 0x%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"  TLX version = 0x%x\n"

L_.str.3:                               ## @.str.3
	.asciz	"  DLX version = 0x%x\n"

	.no_dead_strip	_read_dvsec_vendor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_dvsec_vendor
_read_dvsec_vendor:                     ; @read_dvsec_vendor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_PCI_FUNC
	cbnz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _OCXL_DVSEC_VENDOR_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OCXL_DVSEC_VENDOR_ID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_find_dvsec
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_3
; %bb.2:
	sxtw	x20, w0
Lloh3:
	adrp	x8, _OCXL_DVSEC_VENDOR_CFG_VERS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OCXL_DVSEC_VENDOR_CFG_VERS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x1, x8, x20
	sub	x2, x29, #20
	mov	x0, x19
	bl	_pci_read_config_dword
Lloh6:
	adrp	x8, _OCXL_DVSEC_VENDOR_TLX_VERS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OCXL_DVSEC_VENDOR_TLX_VERS@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x1, x8, x20
	add	x2, sp, #24
	mov	x0, x19
	bl	_pci_read_config_dword
Lloh9:
	adrp	x8, _OCXL_DVSEC_VENDOR_DLX_VERS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OCXL_DVSEC_VENDOR_DLX_VERS@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	add	x1, x8, x20
	add	x2, sp, #20
	mov	x0, x19
	bl	_pci_read_config_dword
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldur	w8, [x29, #-20]
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w8, [sp, #24]
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w8, [sp, #20]
	str	x8, [sp]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_OCXL_DVSEC_VENDOR_ID,4,2       ; @OCXL_DVSEC_VENDOR_ID
	.comm	_OCXL_DVSEC_VENDOR_CFG_VERS,8,3 ; @OCXL_DVSEC_VENDOR_CFG_VERS
	.comm	_OCXL_DVSEC_VENDOR_TLX_VERS,8,3 ; @OCXL_DVSEC_VENDOR_TLX_VERS
	.comm	_OCXL_DVSEC_VENDOR_DLX_VERS,8,3 ; @OCXL_DVSEC_VENDOR_DLX_VERS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Vendor specific DVSEC:\n"

l_.str.1:                               ; @.str.1
	.asciz	"  CFG version = 0x%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"  TLX version = 0x%x\n"

l_.str.3:                               ; @.str.3
	.asciz	"  DLX version = 0x%x\n"

	.no_dead_strip	_read_dvsec_vendor
.subsections_via_symbols
