	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s2io_vpd_read
_s2io_vpd_read:                         ## @s2io_vpd_read
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	32(%rdi), %rbx
	movq	(%rdi), %r15
	movq	8(%rdi), %rdi
	movq	_XFRAME_II_DEVICE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	cmpq	%r12, %r15
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	callq	_strcpy
	movq	16(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcpy
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$256, %edi                      ## imm = 0x100
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpq	%r12, %r15
	movl	$128, %ecx
	movl	$80, %edx
	cmovel	%ecx, %edx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	addl	$256, (%rbx)                    ## imm = 0x100
	leal	2(%rdx), %ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	%rax, %r15
	leal	3(%rdx), %ebx
	orl	$4, %edx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	$-4, %r13
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	24(%r14), %edi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r15, %rdx
	callq	_pci_read_config_dword
	addq	$4, %r13
	addq	$16, %r15
	cmpq	$252, %r13
	jae	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%r14), %edi
	leal	4(%r13), %edx
	movl	%ebx, %r12d
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_pci_write_config_byte
	movl	24(%r14), %edi
	movl	%ebx, %esi
	movl	%r12d, %ebx
	leaq	-44(%rbp), %r12
	movq	%r12, %rdx
	callq	_pci_read_config_byte
	movl	24(%r14), %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_pci_write_config_byte
	movl	$2, %edi
	callq	_msleep
	movl	24(%r14), %edi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_pci_read_config_byte
	cmpl	$128, -44(%rbp)
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$2, %edi
	callq	_msleep
	movl	24(%r14), %edi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_pci_read_config_byte
	cmpl	$128, -44(%rbp)
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$2, %edi
	callq	_msleep
	movl	24(%r14), %edi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_pci_read_config_byte
	cmpl	$128, -44(%rbp)
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$2, %edi
	callq	_msleep
	movl	24(%r14), %edi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_pci_read_config_byte
	cmpl	$128, -44(%rbp)
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$2, %edi
	callq	_msleep
	movl	24(%r14), %edi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_pci_read_config_byte
	cmpl	$128, -44(%rbp)
	je	LBB0_9
## %bb.8:
	movq	_ERR_DBG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_DBG_PRINT
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_10:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	12(%rax), %rbx
	movl	$252, %r13d
	movq	_VPD_STRING_LEN@GOTPCREL(%rip), %r12
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	addq	$4, %rbx
	decq	%r13
	je	LBB0_16
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$83, -12(%rbx)
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$78, -8(%rbx)
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movslq	-4(%rbx), %r15
	movl	(%r12), %edi
	leal	2(%r13), %esi
	callq	_min
	cmpl	%eax, %r15d
	jge	LBB0_15
## %bb.14:
	movq	16(%r14), %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movq	%r15, %rdi
	shlq	$3, %rdi
	addq	16(%r14), %rdi
	movl	(%r12), %edx
	subl	%r15d, %edx
	xorl	%esi, %esi
	callq	_memset
LBB0_16:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movslq	4(%rbx), %r15
	cmpl	(%r12), %r15d
	jge	LBB0_18
## %bb.17:
	movq	8(%r14), %rdi
	movq	%rbx, %rsi
	addq	$12, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movq	8(%r14), %rax
	movq	$0, (%rax,%r15,8)
LBB0_18:
	movq	%rbx, %rdi
	callq	_kfree
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	addq	$4, %rbx
	movl	$256, %eax                      ## imm = 0x100
	jmp	LBB0_19
LBB0_1:
	addq	$8, %rbx
	movl	$1, %eax
LBB0_19:
	addl	%eax, (%rbx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XFRAME_II_DEVICE,8,3           ## @XFRAME_II_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Xframe II 10GbE network adapter"

L_.str.1:                               ## @.str.1
	.asciz	"Xframe I 10GbE network adapter"

L_.str.2:                               ## @.str.2
	.asciz	"NOT AVAILABLE"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ERR_DBG,4,2                    ## @ERR_DBG
L_.str.3:                               ## @.str.3
	.asciz	"Read of VPD data failed\n"

	.comm	_VPD_STRING_LEN,4,2             ## @VPD_STRING_LEN
	.no_dead_strip	_s2io_vpd_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s2io_vpd_read
_s2io_vpd_read:                         ; @s2io_vpd_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	ldr	x25, [x0, #32]
Lloh0:
	adrp	x8, _XFRAME_II_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XFRAME_II_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	ldp	x22, x0, [x0]
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh5:
	adrp	x9, l_.str@PAGE
Lloh6:
	add	x9, x9, l_.str@PAGEOFF
	cmp	x22, x21
	csel	x1, x9, x8, eq
	bl	_strcpy
	ldr	x0, [x19, #16]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcpy
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w0, #256
	bl	_kmalloc
	cbz	x0, LBB0_18
; %bb.1:
	mov	x20, x0
	cmp	x22, x21
	mov	w8, #80
	mov	w9, #128
	csel	w8, w9, w8, eq
	ldr	w9, [x25]
	add	w9, w9, #256
	str	w9, [x25]
	orr	w21, w8, #0x2
	orr	w22, w8, #0x3
	orr	w23, w8, #0x4
	mov	x26, #-4
	mov	x24, x0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #24]
	mov	x1, x23
	mov	x2, x24
	bl	_pci_read_config_dword
	add	x26, x26, #4
	add	x24, x24, #16
	cmp	x26, #252
	b.hs	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #24]
	add	w2, w26, #4
	mov	x1, x21
	bl	_pci_write_config_byte
	ldr	w0, [x19, #24]
	add	x2, sp, #12
	mov	x1, x21
	bl	_pci_read_config_byte
	ldr	w0, [x19, #24]
	mov	x1, x22
	mov	w2, #0
	bl	_pci_write_config_byte
	mov	w0, #2
	bl	_msleep
	ldr	w0, [x19, #24]
	add	x2, sp, #12
	mov	x1, x22
	bl	_pci_read_config_byte
	ldr	w8, [sp, #12]
	cmp	w8, #128
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #2
	bl	_msleep
	ldr	w0, [x19, #24]
	add	x2, sp, #12
	mov	x1, x22
	bl	_pci_read_config_byte
	ldr	w8, [sp, #12]
	cmp	w8, #128
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #2
	bl	_msleep
	ldr	w0, [x19, #24]
	add	x2, sp, #12
	mov	x1, x22
	bl	_pci_read_config_byte
	ldr	w8, [sp, #12]
	cmp	w8, #128
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #2
	bl	_msleep
	ldr	w0, [x19, #24]
	add	x2, sp, #12
	mov	x1, x22
	bl	_pci_read_config_byte
	ldr	w8, [sp, #12]
	cmp	w8, #128
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #2
	bl	_msleep
	ldr	w0, [x19, #24]
	add	x2, sp, #12
	mov	x1, x22
	bl	_pci_read_config_byte
	ldr	w8, [sp, #12]
	cmp	w8, #128
	b.eq	LBB0_2
; %bb.8:
Lloh12:
	adrp	x8, _ERR_DBG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERR_DBG@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_DBG_PRINT
	b	LBB0_17
LBB0_9:
	add	x21, x20, #12
	mov	w24, #252
Lloh17:
	adrp	x23, _VPD_STRING_LEN@GOTPAGE
Lloh18:
	ldr	x23, [x23, _VPD_STRING_LEN@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x21, x21, #4
	subs	x24, x24, #1
	b.eq	LBB0_15
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldur	w8, [x21, #-12]
	cmp	w8, #83
	b.ne	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldur	w8, [x21, #-8]
	cmp	w8, #78
	b.ne	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldursw	x22, [x21, #-4]
	ldr	w0, [x23]
	add	w1, w24, #2
	bl	_min
	cmp	w22, w0
	b.ge	LBB0_10
; %bb.14:
	ldr	x0, [x19, #16]
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
	ldr	x8, [x19, #16]
	add	x0, x8, x22, lsl #3
	ldr	w8, [x23]
	sub	w2, w8, w22
	mov	w1, #0
	bl	_memset
LBB0_15:
	ldrsw	x21, [x20, #4]
	ldr	w8, [x23]
	cmp	w21, w8
	b.ge	LBB0_17
; %bb.16:
	ldr	x0, [x19, #8]
	add	x1, x20, #12
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [x19, #8]
	str	xzr, [x8, x21, lsl #3]
LBB0_17:
	mov	x0, x20
	bl	_kfree
	add	x8, x25, #4
	mov	w9, #256
	b	LBB0_19
LBB0_18:
	add	x8, x25, #8
	mov	w9, #1
LBB0_19:
	ldr	w10, [x8]
	add	w9, w10, w9
	str	w9, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_XFRAME_II_DEVICE,8,3           ; @XFRAME_II_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Xframe II 10GbE network adapter"

l_.str.1:                               ; @.str.1
	.asciz	"Xframe I 10GbE network adapter"

l_.str.2:                               ; @.str.2
	.asciz	"NOT AVAILABLE"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ERR_DBG,4,2                    ; @ERR_DBG
l_.str.3:                               ; @.str.3
	.asciz	"Read of VPD data failed\n"

	.comm	_VPD_STRING_LEN,4,2             ; @VPD_STRING_LEN
	.no_dead_strip	_s2io_vpd_read
.subsections_via_symbols
