	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_read_vpd_fw_ver
_bnx2_read_vpd_fw_ver:                  ## @bnx2_read_vpd_fw_ver
	.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, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$256, %edi                      ## imm = 0x100
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rax, %rbx
	leaq	512(%rax), %rdx
	movq	%r14, %rdi
	movl	$768, %esi                      ## imm = 0x300
	movl	$128, %ecx
	callq	_bnx2_nvram_read
	testl	%eax, %eax
	je	LBB0_2
LBB0_14:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	$-4, %rax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	528(%rbx,%rax,4), %xmm0
	movdqu	544(%rbx,%rax,4), %xmm1
	movdqu	560(%rbx,%rax,4), %xmm2
	movdqu	576(%rbx,%rax,4), %xmm3
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	movdqu	%xmm0, 16(%rbx,%rax,4)
	pshufd	$27, %xmm1, %xmm0               ## xmm0 = xmm1[3,2,1,0]
	movdqu	%xmm0, 32(%rbx,%rax,4)
	pshufd	$27, %xmm2, %xmm0               ## xmm0 = xmm2[3,2,1,0]
	movdqu	%xmm0, 48(%rbx,%rax,4)
	pshufd	$27, %xmm3, %xmm0               ## xmm0 = xmm3[3,2,1,0]
	movdqu	%xmm0, 64(%rbx,%rax,4)
	addq	$16, %rax
	cmpq	$124, %rax
	jb	LBB0_3
## %bb.4:
	movq	_PCI_VPD_LRDT_RO_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$128, %edx
	callq	_pci_vpd_find_tag
	testl	%eax, %eax
	js	LBB0_14
## %bb.5:
	movl	%eax, %r13d
	movl	%eax, %eax
	leaq	(%rbx,%rax,4), %rdi
	callq	_pci_vpd_lrdt_size
	movl	%eax, %r15d
	movq	_PCI_VPD_LRDT_TAG_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	addl	%r13d, %r12d
	leal	(%r12,%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$128, %eax
	ja	LBB0_14
## %bb.6:
	movq	_PCI_VPD_RO_KEYWORD_MFR_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_pci_vpd_find_info_keyword
	testl	%eax, %eax
	js	LBB0_14
## %bb.7:
	movl	%eax, %r13d
	movl	%eax, %eax
	leaq	(%rbx,%rax,4), %rdi
	callq	_pci_vpd_info_field_size
	cmpl	$4, %eax
	jne	LBB0_14
## %bb.8:
	movq	_PCI_VPD_INFO_FLD_HDR_SIZE@GOTPCREL(%rip), %rcx
	addl	(%rcx), %r13d
	addl	%r13d, %eax
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	ja	LBB0_14
## %bb.9:
	movslq	%r13d, %rax
	leaq	(%rbx,%rax,4), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_14
## %bb.10:
	movq	_PCI_VPD_RO_KEYWORD_VENDOR0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_pci_vpd_find_info_keyword
	testl	%eax, %eax
	js	LBB0_14
## %bb.11:
	movl	%eax, %r15d
	movl	%eax, %eax
	leaq	(%rbx,%rax,4), %rdi
	callq	_pci_vpd_info_field_size
	cmpl	$30, %eax
	ja	LBB0_14
## %bb.12:
	movl	%eax, %r12d
	movq	_PCI_VPD_INFO_FLD_HDR_SIZE@GOTPCREL(%rip), %rax
	addl	(%rax), %r15d
	leal	(%r15,%r12), %eax
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	ja	LBB0_14
## %bb.13:
	movq	(%r14), %rdi
	movslq	%r15d, %rax
	leaq	(%rbx,%rax,4), %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movq	(%r14), %rax
	movl	%r12d, %ecx
	movb	$32, (%rax,%rcx)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_PCI_VPD_LRDT_RO_DATA,4,2       ## @PCI_VPD_LRDT_RO_DATA
	.comm	_PCI_VPD_LRDT_TAG_SIZE,8,3      ## @PCI_VPD_LRDT_TAG_SIZE
	.comm	_PCI_VPD_RO_KEYWORD_MFR_ID,4,2  ## @PCI_VPD_RO_KEYWORD_MFR_ID
	.comm	_PCI_VPD_INFO_FLD_HDR_SIZE,8,3  ## @PCI_VPD_INFO_FLD_HDR_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"1028"

	.comm	_PCI_VPD_RO_KEYWORD_VENDOR0,4,2 ## @PCI_VPD_RO_KEYWORD_VENDOR0
	.comm	_BNX2_MAX_VER_SLEN,4,2          ## @BNX2_MAX_VER_SLEN
	.comm	_BNX2_VPD_LEN,4,2               ## @BNX2_VPD_LEN
	.comm	_BNX2_VPD_NVRAM_OFFSET,4,2      ## @BNX2_VPD_NVRAM_OFFSET
	.no_dead_strip	_bnx2_read_vpd_fw_ver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_read_vpd_fw_ver
_bnx2_read_vpd_fw_ver:                  ; @bnx2_read_vpd_fw_ver
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #256
	bl	_kmalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	add	x2, x0, #512
	mov	x0, x19
	mov	w1, #768
	mov	w3, #128
	bl	_bnx2_nvram_read
	cbz	w0, LBB0_4
LBB0_2:
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_kfree
LBB0_3:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x8, #-4
	mov	x9, x20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	q0, [x9, #512]
	rev64.4s	v0, v0
	ext.16b	v0, v0, v0, #8
	str	q0, [x9], #16
	add	x8, x8, #4
	cmp	x8, #124
	b.lo	LBB0_5
; %bb.6:
Lloh3:
	adrp	x8, _PCI_VPD_LRDT_RO_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_VPD_LRDT_RO_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #128
	bl	_pci_vpd_find_tag
	tbnz	w0, #31, LBB0_2
; %bb.7:
	mov	x22, x0
	add	x0, x20, w0, uxtw #2
	bl	_pci_vpd_lrdt_size
Lloh6:
	adrp	x8, _PCI_VPD_LRDT_TAG_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_VPD_LRDT_TAG_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	w22, w22, w8
	add	w24, w22, w0
	cmp	w24, #128
	b.hi	LBB0_2
; %bb.8:
	mov	x21, x0
Lloh9:
	adrp	x8, _PCI_VPD_RO_KEYWORD_MFR_ID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI_VPD_RO_KEYWORD_MFR_ID@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_pci_vpd_find_info_keyword
	tbnz	w0, #31, LBB0_2
; %bb.9:
	mov	x23, x0
	add	x0, x20, w0, uxtw #2
	bl	_pci_vpd_info_field_size
Lloh12:
	adrp	x25, _PCI_VPD_INFO_FLD_HDR_SIZE@GOTPAGE
Lloh13:
	ldr	x25, [x25, _PCI_VPD_INFO_FLD_HDR_SIZE@GOTPAGEOFF]
	ldr	w8, [x25]
	add	w8, w23, w8
	add	w9, w8, w0
	cmp	w0, #4
	ccmp	w9, w24, #2, eq
	b.hi	LBB0_2
; %bb.10:
	add	x0, x20, w8, sxtw #2
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_memcmp
	cbnz	x0, LBB0_2
; %bb.11:
Lloh16:
	adrp	x8, _PCI_VPD_RO_KEYWORD_VENDOR0@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PCI_VPD_RO_KEYWORD_VENDOR0@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_pci_vpd_find_info_keyword
	tbnz	w0, #31, LBB0_2
; %bb.12:
	mov	x22, x0
	add	x0, x20, w0, uxtw #2
	bl	_pci_vpd_info_field_size
	ldr	w8, [x25]
	add	w8, w22, w8
	add	w9, w8, w0
	cmp	w0, #30
	ccmp	w9, w24, #2, ls
	b.hi	LBB0_2
; %bb.13:
	mov	x21, x0
	ldr	x0, [x19]
	add	x1, x20, w8, sxtw #2
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [x19]
	mov	w9, #32
	strb	w9, [x8, w21, uxtw]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_PCI_VPD_LRDT_RO_DATA,4,2       ; @PCI_VPD_LRDT_RO_DATA
	.comm	_PCI_VPD_LRDT_TAG_SIZE,8,3      ; @PCI_VPD_LRDT_TAG_SIZE
	.comm	_PCI_VPD_RO_KEYWORD_MFR_ID,4,2  ; @PCI_VPD_RO_KEYWORD_MFR_ID
	.comm	_PCI_VPD_INFO_FLD_HDR_SIZE,8,3  ; @PCI_VPD_INFO_FLD_HDR_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"1028"

	.comm	_PCI_VPD_RO_KEYWORD_VENDOR0,4,2 ; @PCI_VPD_RO_KEYWORD_VENDOR0
	.comm	_BNX2_MAX_VER_SLEN,4,2          ; @BNX2_MAX_VER_SLEN
	.comm	_BNX2_VPD_LEN,4,2               ; @BNX2_VPD_LEN
	.comm	_BNX2_VPD_NVRAM_OFFSET,4,2      ; @BNX2_VPD_NVRAM_OFFSET
	.no_dead_strip	_bnx2_read_vpd_fw_ver
.subsections_via_symbols
