	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_read_fwinfo
_bnx2x_read_fwinfo:                     ## @bnx2x_read_fwinfo
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BNX2X_VPD_LEN@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	leal	1(%r12), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_VENDOR_ID_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	incl	%ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %edi
	xorl	%esi, %esi
	movl	%r12d, %edx
	movq	%r15, %rcx
	callq	_pci_read_vpd
	movl	%eax, %ebx
	movq	(%r14), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	(%r13), %edx
	cmpl	%edx, %ebx
	jge	LBB0_2
LBB0_15:
	xorl	%r13d, %r13d
	jmp	LBB0_16
LBB0_2:
	movq	_PCI_VPD_LRDT_RO_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pci_vpd_find_tag
	testl	%eax, %eax
	js	LBB0_16
## %bb.3:
	movl	%eax, %ebx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	_PCI_VPD_LRDT_TAG_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %r14d
	addl	%eax, %r14d
	movl	%eax, %eax
	movq	%r15, %rdi
	addq	%rax, %rdi
	callq	_pci_vpd_lrdt_size
	movl	%eax, %r12d
	addl	%r14d, %r12d
	movl	(%r13), %r14d
	addl	%ebx, %r14d
	movq	_BNX2X_VPD_LEN@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %r12d
	jle	LBB0_6
## %bb.4:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_kmalloc
	testq	%rax, %rax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_15
## %bb.5:
	movq	%rax, %r13
	movl	(%rbx), %edx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_memcpy
	movl	8(%r14), %edi
	movslq	(%rbx), %rsi
	movl	%r12d, %edx
	subl	%esi, %edx
	movq	%r13, %rcx
	addq	%rsi, %rcx
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_pci_read_vpd
	movl	%r12d, %ecx
	subl	(%rbx), %ecx
	movq	%r13, %r15
	cmpl	%ecx, %eax
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	jge	LBB0_7
	jmp	LBB0_16
LBB0_6:
	xorl	%r13d, %r13d
LBB0_7:
	movq	_PCI_VPD_RO_KEYWORD_MFR_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	_pci_vpd_find_info_keyword
	testl	%eax, %eax
	js	LBB0_16
## %bb.8:
	movl	%eax, %ebx
	movl	%eax, %edi
	addq	%r15, %rdi
	callq	_pci_vpd_info_field_size
	movq	_VENDOR_ID_LEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_16
## %bb.9:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	_PCI_VPD_INFO_FLD_HDR_SIZE@GOTPCREL(%rip), %rcx
	addl	(%rcx), %ebx
	incl	%eax
	movq	_PCI_VENDOR_ID_DELL@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_snprintf
	movq	_VENDOR_ID_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	incl	%esi
	movl	(%r14), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_snprintf
	movslq	%ebx, %rbx
	addq	%r15, %rbx
	movq	_VENDOR_ID_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	_VENDOR_ID_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_16
LBB0_11:
	movq	_PCI_VPD_RO_KEYWORD_VENDOR0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	callq	_pci_vpd_find_info_keyword
	testl	%eax, %eax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	js	LBB0_16
## %bb.12:
	movl	%eax, %ebx
	movl	%eax, %edi
	addq	%r15, %rdi
	callq	_pci_vpd_info_field_size
	cmpl	$31, %eax
	jg	LBB0_16
## %bb.13:
	movl	%eax, %r12d
	movq	_PCI_VPD_INFO_FLD_HDR_SIZE@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	leal	(%rbx,%r12), %eax
	movq	_BNX2X_VPD_LEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_16
## %bb.14:
	movq	(%r14), %rdi
	movslq	%ebx, %rax
	addq	%rax, %r15
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movq	(%r14), %rax
	movslq	%r12d, %rcx
	movb	$32, (%rax,%rcx)
LBB0_16:
	movq	%r13, %rdi
	callq	_kfree
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2X_VPD_LEN,4,2              ## @BNX2X_VPD_LEN
	.comm	_VENDOR_ID_LEN,4,2              ## @VENDOR_ID_LEN
	.comm	_PCI_VPD_LRDT_RO_DATA,4,2       ## @PCI_VPD_LRDT_RO_DATA
	.comm	_PCI_VPD_LRDT_TAG_SIZE,4,2      ## @PCI_VPD_LRDT_TAG_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.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	"%04x"

	.comm	_PCI_VENDOR_ID_DELL,4,2         ## @PCI_VENDOR_ID_DELL
L_.str.1:                               ## @.str.1
	.asciz	"%04X"

	.comm	_PCI_VPD_RO_KEYWORD_VENDOR0,4,2 ## @PCI_VPD_RO_KEYWORD_VENDOR0
	.no_dead_strip	_bnx2x_read_fwinfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_read_fwinfo
_bnx2x_read_fwinfo:                     ; @bnx2x_read_fwinfo
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x27, _BNX2X_VPD_LEN@GOTPAGE
Lloh4:
	ldr	x27, [x27, _BNX2X_VPD_LEN@GOTPAGEOFF]
	ldr	w2, [x27]
	add	w8, w2, #1
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh7:
	adrp	x28, _VENDOR_ID_LEN@GOTPAGE
Lloh8:
	ldr	x28, [x28, _VENDOR_ID_LEN@GOTPAGEOFF]
	ldr	w8, [x28]
	add	w8, w8, #1
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x1fffffff0
	sub	x23, x9, x12
	mov	sp, x23
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x22, x8, x12
	mov	sp, x22
	ldr	w0, [x0, #8]
	mov	w1, #0
	mov	x3, x20
	bl	_pci_read_vpd
	mov	x21, x0
	ldr	x0, [x19]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w2, [x27]
	cmp	w21, w2
	b.lt	LBB0_5
; %bb.1:
Lloh13:
	adrp	x8, _PCI_VPD_LRDT_RO_DATA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PCI_VPD_LRDT_RO_DATA@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_pci_vpd_find_tag
	tbnz	w0, #31, LBB0_5
; %bb.2:
	mov	x25, x0
Lloh16:
	adrp	x21, _PCI_VPD_LRDT_TAG_SIZE@GOTPAGE
Lloh17:
	ldr	x21, [x21, _PCI_VPD_LRDT_TAG_SIZE@GOTPAGEOFF]
	ldr	w8, [x21]
	add	w24, w8, w0
	add	x0, x20, w0, uxtw
	bl	_pci_vpd_lrdt_size
	ldr	w26, [x21]
	ldr	w8, [x27]
	add	w24, w24, w0
	cmp	w24, w8
	b.le	LBB0_8
; %bb.3:
Lloh18:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_kmalloc
	mov	x21, x0
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w2, [x27]
	mov	x0, x21
	mov	x1, x20
	bl	_memcpy
	ldr	w0, [x19, #8]
	ldrsw	x1, [x27]
	sub	w2, w24, w1
	add	x3, x21, x1
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_pci_read_vpd
	ldr	w8, [x27]
	sub	w8, w24, w8
	cmp	w0, w8
	mov	x20, x21
	b.ge	LBB0_9
	b	LBB0_6
LBB0_5:
	mov	x21, #0
LBB0_6:
	mov	x0, x21
	bl	_kfree
	ldur	x8, [x29, #-88]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.7:
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x21, #0
LBB0_9:
	add	w25, w26, w25
Lloh24:
	adrp	x8, _PCI_VPD_RO_KEYWORD_MFR_ID@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PCI_VPD_RO_KEYWORD_MFR_ID@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x25
	mov	x2, x24
	bl	_pci_vpd_find_info_keyword
	tbnz	w0, #31, LBB0_6
; %bb.10:
	mov	x26, x0
	add	x0, x20, w0, uxtw
	bl	_pci_vpd_info_field_size
	ldr	w8, [x28]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.11:
Lloh27:
	adrp	x8, _PCI_VPD_INFO_FLD_HDR_SIZE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PCI_VPD_INFO_FLD_HDR_SIZE@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	add	w26, w26, w8
	add	w1, w0, #1
Lloh30:
	adrp	x8, _PCI_VENDOR_ID_DELL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _PCI_VENDOR_ID_DELL@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
Lloh33:
	adrp	x2, l_.str@PAGE
Lloh34:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x23
	bl	_snprintf
	ldr	w8, [x28]
	add	w1, w8, #1
Lloh35:
	adrp	x8, _PCI_VENDOR_ID_DELL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PCI_VENDOR_ID_DELL@GOTPAGEOFF]
Lloh37:
	ldr	w3, [x8]
Lloh38:
	adrp	x2, l_.str.1@PAGE
Lloh39:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_snprintf
	add	x26, x20, w26, sxtw
	ldr	w2, [x28]
	mov	x0, x23
	mov	x1, x26
	bl	_strncmp
	cbz	w0, LBB0_13
; %bb.12:
	ldr	w2, [x28]
	mov	x0, x22
	mov	x1, x26
	bl	_strncmp
	cbnz	w0, LBB0_6
LBB0_13:
Lloh40:
	adrp	x8, _PCI_VPD_RO_KEYWORD_VENDOR0@GOTPAGE
Lloh41:
	ldr	x8, [x8, _PCI_VPD_RO_KEYWORD_VENDOR0@GOTPAGEOFF]
Lloh42:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x25
	mov	x2, x24
	bl	_pci_vpd_find_info_keyword
	tbnz	w0, #31, LBB0_6
; %bb.14:
	mov	x23, x0
	add	x0, x20, w0, uxtw
	bl	_pci_vpd_info_field_size
	cmp	w0, #31
	b.gt	LBB0_6
; %bb.15:
	mov	x22, x0
Lloh43:
	adrp	x8, _PCI_VPD_INFO_FLD_HDR_SIZE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _PCI_VPD_INFO_FLD_HDR_SIZE@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	add	w8, w23, w8
	add	w9, w8, w0
	ldr	w10, [x27]
	cmp	w9, w10
	b.gt	LBB0_6
; %bb.16:
	ldr	x0, [x19]
	add	x1, x20, w8, sxtw
	mov	x2, x22
	bl	_memcpy
	ldr	x8, [x19]
	mov	w9, #32
	strb	w9, [x8, w22, sxtw]
	b	LBB0_6
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2X_VPD_LEN,4,2              ; @BNX2X_VPD_LEN
	.comm	_VENDOR_ID_LEN,4,2              ; @VENDOR_ID_LEN
	.comm	_PCI_VPD_LRDT_RO_DATA,4,2       ; @PCI_VPD_LRDT_RO_DATA
	.comm	_PCI_VPD_LRDT_TAG_SIZE,4,2      ; @PCI_VPD_LRDT_TAG_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.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	"%04x"

	.comm	_PCI_VENDOR_ID_DELL,4,2         ; @PCI_VENDOR_ID_DELL
l_.str.1:                               ; @.str.1
	.asciz	"%04X"

	.comm	_PCI_VPD_RO_KEYWORD_VENDOR0,4,2 ; @PCI_VPD_RO_KEYWORD_VENDOR0
	.no_dead_strip	_bnx2x_read_fwinfo
.subsections_via_symbols
