	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_vpd_size
_pci_vpd_size:                          ## @pci_vpd_size
	.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	%rsi, %r15
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	movq	_PCI_VPD_LRDT@GOTPCREL(%rip), %r13
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, %rbx
	jae	LBB0_16
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	leaq	-43(%rbp), %rcx
	callq	_pci_read_vpd
	cmpl	$1, %eax
	jne	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movzbl	(%r13), %eax
	testb	%al, -43(%rbp)
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	-43(%rbp), %rdi
	callq	_pci_vpd_lrdt_tag
	movl	%eax, %r12d
	movq	_PCI_VPD_LTIN_ID_STRING@GOTPCREL(%rip), %rax
	cmpb	(%rax), %r12b
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_PCI_VPD_LTIN_RO_DATA@GOTPCREL(%rip), %rax
	cmpb	(%rax), %r12b
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_PCI_VPD_LTIN_RW_DATA@GOTPCREL(%rip), %rax
	cmpb	(%rax), %r12b
	jne	LBB0_11
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movq	%r15, %r14
	leaq	1(%rbx), %r15
	movq	%r15, %rsi
	movl	$2, %edx
	leaq	-42(%rbp), %rcx
	callq	_pci_read_vpd
	cmpl	$2, %eax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_PCI_VPD_LRDT_TAG_SIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	leaq	-43(%rbp), %rdi
	callq	_pci_vpd_lrdt_size
	addq	%rax, %rbx
	movq	%r14, %r15
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_PCI_VPD_SRDT_TAG_SIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	leaq	-43(%rbp), %r12
	movq	%r12, %rdi
	callq	_pci_vpd_srdt_size
	addq	%rax, %rbx
	movq	%r12, %rdi
	callq	_pci_vpd_srdt_tag
	movl	%eax, %r12d
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_PCI_VPD_STIN_END@GOTPCREL(%rip), %rax
	cmpb	(%rax), %r12b
	je	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_PCI_VPD_LTIN_ID_STRING@GOTPCREL(%rip), %rax
	cmpb	(%rax), %r12b
	je	LBB0_1
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_PCI_VPD_LTIN_RO_DATA@GOTPCREL(%rip), %rax
	cmpb	(%rax), %r12b
	je	LBB0_1
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_PCI_VPD_LTIN_RW_DATA@GOTPCREL(%rip), %rax
	cmpb	(%rax), %r12b
	je	LBB0_1
## %bb.15:
	movzbl	%r12b, %ecx
	movb	(%r13), %al
	andb	-43(%rbp), %al
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_pci_warn
LBB0_16:
	xorl	%ebx, %ebx
LBB0_17:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movzbl	%r12b, %edx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_pci_warn
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_VPD_LRDT,1,0               ## @PCI_VPD_LRDT
	.comm	_PCI_VPD_LTIN_ID_STRING,1,0     ## @PCI_VPD_LTIN_ID_STRING
	.comm	_PCI_VPD_LTIN_RO_DATA,1,0       ## @PCI_VPD_LTIN_RO_DATA
	.comm	_PCI_VPD_LTIN_RW_DATA,1,0       ## @PCI_VPD_LTIN_RW_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid large VPD tag %02x size at offset %zu"

	.comm	_PCI_VPD_LRDT_TAG_SIZE,8,3      ## @PCI_VPD_LRDT_TAG_SIZE
	.comm	_PCI_VPD_SRDT_TAG_SIZE,8,3      ## @PCI_VPD_SRDT_TAG_SIZE
	.comm	_PCI_VPD_STIN_END,1,0           ## @PCI_VPD_STIN_END
L_.str.1:                               ## @.str.1
	.asciz	"invalid %s VPD tag %02x at offset %zu"

L_.str.2:                               ## @.str.2
	.asciz	"large"

L_.str.3:                               ## @.str.3
	.asciz	"short"

	.no_dead_strip	_pci_vpd_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_vpd_size
_pci_vpd_size:                          ; @pci_vpd_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
	mov	x20, #0
	add	x8, sp, #45
	add	x8, x8, #1
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x25, _PCI_VPD_LRDT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _PCI_VPD_LRDT@GOTPAGEOFF]
Lloh2:
	adrp	x27, _PCI_VPD_STIN_END@GOTPAGE
Lloh3:
	ldr	x27, [x27, _PCI_VPD_STIN_END@GOTPAGEOFF]
Lloh4:
	adrp	x28, _PCI_VPD_LTIN_ID_STRING@GOTPAGE
Lloh5:
	ldr	x28, [x28, _PCI_VPD_LTIN_ID_STRING@GOTPAGEOFF]
Lloh6:
	adrp	x26, _PCI_VPD_LTIN_RO_DATA@GOTPAGE
Lloh7:
	ldr	x26, [x26, _PCI_VPD_LTIN_RO_DATA@GOTPAGEOFF]
Lloh8:
	adrp	x22, _PCI_VPD_LTIN_RW_DATA@GOTPAGE
Lloh9:
	ldr	x22, [x22, _PCI_VPD_LTIN_RW_DATA@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x20, x21
	b.hs	LBB0_13
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x3, sp, #45
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_pci_read_vpd
	cmp	w0, #1
	b.ne	LBB0_13
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldrb	w8, [sp, #45]
	ldrb	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x0, sp, #45
	bl	_pci_vpd_lrdt_tag
	mov	x23, x0
	ldrb	w8, [x28]
	ldrb	w9, [x26]
	ldrb	w10, [x22]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	ccmp	w0, w10, #4, ne
	b.ne	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x24, x20, #1
	mov	x0, x19
	mov	x1, x24
	mov	w2, #2
	ldr	x3, [sp, #32]                   ; 8-byte Folded Reload
	bl	_pci_read_vpd
	cmp	w0, #2
	b.ne	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh10:
	adrp	x8, _PCI_VPD_LRDT_TAG_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PCI_VPD_LRDT_TAG_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	x24, [x8]
	add	x0, sp, #45
	bl	_pci_vpd_lrdt_size
	add	x8, x24, x20
	add	x20, x8, x0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
Lloh13:
	adrp	x8, _PCI_VPD_SRDT_TAG_SIZE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PCI_VPD_SRDT_TAG_SIZE@GOTPAGEOFF]
Lloh15:
	ldr	x23, [x8]
	add	x0, sp, #45
	bl	_pci_vpd_srdt_size
	add	x8, x23, x20
	add	x20, x8, x0
	add	x0, sp, #45
	bl	_pci_vpd_srdt_tag
	mov	x23, x0
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldrb	w8, [x27]
	cmp	w23, w8
	b.eq	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	ldrb	w8, [x28]
	ldrb	w9, [x26]
	ldrb	w10, [x22]
	cmp	w23, w8
	ccmp	w23, w9, #4, ne
	ccmp	w23, w10, #4, ne
	b.eq	LBB0_1
; %bb.10:
	ldrb	w8, [sp, #45]
	ldrb	w9, [x25]
Lloh16:
	adrp	x10, l_.str.2@PAGE
Lloh17:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh18:
	adrp	x11, l_.str.3@PAGE
Lloh19:
	add	x11, x11, l_.str.3@PAGEOFF
	tst	w9, w8
	csel	x8, x11, x10, eq
	stp	x23, x20, [sp, #8]
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_11:
	mov	w8, w23
	stp	x8, x24, [sp]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_pci_warn
LBB0_13:
	mov	x20, #0
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_VPD_LRDT,1,0               ; @PCI_VPD_LRDT
	.comm	_PCI_VPD_LTIN_ID_STRING,1,0     ; @PCI_VPD_LTIN_ID_STRING
	.comm	_PCI_VPD_LTIN_RO_DATA,1,0       ; @PCI_VPD_LTIN_RO_DATA
	.comm	_PCI_VPD_LTIN_RW_DATA,1,0       ; @PCI_VPD_LTIN_RW_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid large VPD tag %02x size at offset %zu"

	.comm	_PCI_VPD_LRDT_TAG_SIZE,8,3      ; @PCI_VPD_LRDT_TAG_SIZE
	.comm	_PCI_VPD_SRDT_TAG_SIZE,8,3      ; @PCI_VPD_SRDT_TAG_SIZE
	.comm	_PCI_VPD_STIN_END,1,0           ; @PCI_VPD_STIN_END
l_.str.1:                               ; @.str.1
	.asciz	"invalid %s VPD tag %02x at offset %zu"

l_.str.2:                               ; @.str.2
	.asciz	"large"

l_.str.3:                               ; @.str.3
	.asciz	"short"

	.no_dead_strip	_pci_vpd_size
.subsections_via_symbols
