	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_read_pba_string           ## -- Begin function i40e_read_pba_string
	.p2align	4, 0x90
_i40e_read_pba_string:                  ## @i40e_read_pba_string
	.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
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	movl	$0, -52(%rbp)
	movq	_I40E_SR_PBA_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_i40e_read_nvm_word
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	cmpl	$64250, -48(%rbp)               ## imm = 0xFAFA
	jne	LBB0_2
## %bb.4:
	movq	_I40E_SR_PBA_BLOCK_PTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdx
	movq	%r15, %rdi
	callq	_i40e_read_nvm_word
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rsi
LBB0_3:
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_hw_dbg
LBB0_18:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	-52(%rbp), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_i40e_read_nvm_word
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_3
LBB0_8:
	movl	-44(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	%ecx, -44(%rbp)
	leal	(%rax,%rax), %ecx
	decl	%ecx
	cmpl	%r12d, %ecx
	jle	LBB0_9
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_hw_dbg
	movq	_I40E_ERR_PARAM@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_18
LBB0_9:
	cmpl	$2, %eax
	jl	LBB0_10
## %bb.12:
	xorl	%r12d, %r12d
	leaq	-48(%rbp), %r13
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	-52(%rbp), %eax
	leal	(%r12,%rax), %esi
	incl	%esi
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_i40e_read_nvm_word
	testq	%rax, %rax
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movzwl	-48(%rbp), %eax
	rolw	$8, %ax
	movw	%ax, (%r14,%r12,2)
	incq	%r12
	movslq	-44(%rbp), %rax
	cmpq	%rax, %r12
	jl	LBB0_13
## %bb.16:
	addl	%eax, %eax
	jmp	LBB0_17
LBB0_10:
	addl	%eax, %eax
	addl	$-2, %eax
LBB0_17:
	cltq
	movb	$0, (%r14,%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_14:
	movq	%rax, %rbx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_hw_dbg
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_SR_PBA_FLAGS,4,2          ## @I40E_SR_PBA_FLAGS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read PBA flags or flag is invalid.\n"

	.comm	_I40E_SR_PBA_BLOCK_PTR,4,2      ## @I40E_SR_PBA_BLOCK_PTR
L_.str.1:                               ## @.str.1
	.asciz	"Failed to read PBA Block pointer.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to read PBA Block size.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Buffer to small for PBA data.\n"

	.comm	_I40E_ERR_PARAM,8,3             ## @I40E_ERR_PARAM
L_.str.4:                               ## @.str.4
	.asciz	"Failed to read PBA Block word %d.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_read_pba_string           ; -- Begin function i40e_read_pba_string
	.p2align	2
_i40e_read_pba_string:                  ; @i40e_read_pba_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #24]
	str	wzr, [sp, #20]
Lloh0:
	adrp	x8, _I40E_SR_PBA_FLAGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40E_SR_PBA_FLAGS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #28
	bl	_i40e_read_nvm_word
	ldr	w8, [sp, #28]
	cmp	x0, #0
	mov	w9, #64250
	ccmp	w8, w9, #0, eq
	b.eq	LBB0_2
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
Lloh5:
	adrp	x8, _I40E_SR_PBA_BLOCK_PTR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I40E_SR_PBA_BLOCK_PTR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #20
	mov	x0, x19
	bl	_i40e_read_nvm_word
	cbz	x0, LBB0_4
; %bb.3:
	mov	x21, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
	ldr	w1, [sp, #20]
	add	x2, sp, #24
	mov	x0, x19
	bl	_i40e_read_nvm_word
	cbz	x0, LBB0_8
; %bb.5:
	mov	x21, x0
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_hw_dbg
LBB0_7:
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
LBB0_8:
	ldr	w9, [sp, #24]
	sub	w8, w9, #1
	str	w8, [sp, #24]
	mov	w10, #1
	bfi	w10, w8, #1, #31
	cmp	w10, w22
	b.le	LBB0_10
; %bb.9:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
Lloh14:
	adrp	x8, _I40E_ERR_PARAM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _I40E_ERR_PARAM@GOTPAGEOFF]
Lloh16:
	ldr	x21, [x8]
	b	LBB0_7
LBB0_10:
	cmp	w9, #2
	b.lt	LBB0_15
; %bb.11:
	mov	x22, #0
	add	x23, x20, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #20]
	add	w8, w22, w8
	add	w1, w8, #1
	add	x2, sp, #28
	mov	x0, x19
	bl	_i40e_read_nvm_word
	cbnz	x0, LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x22, x22, #1
	ldrh	w8, [sp, #28]
	rev	w8, w8
	lsr	w8, w8, #16
	sturh	w8, [x23, #-1]
	ldrsw	x8, [sp, #24]
	add	x23, x23, #2
	cmp	x22, x8
	b.lt	LBB0_12
; %bb.14:
	lsl	w8, w8, #1
	b	LBB0_16
LBB0_15:
	lsl	w8, w8, #1
LBB0_16:
	mov	x21, #0
	strb	wzr, [x20, w8, sxtw]
	b	LBB0_7
LBB0_17:
	mov	x21, x0
	str	x22, [sp]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_SR_PBA_FLAGS,4,2          ; @I40E_SR_PBA_FLAGS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read PBA flags or flag is invalid.\n"

	.comm	_I40E_SR_PBA_BLOCK_PTR,4,2      ; @I40E_SR_PBA_BLOCK_PTR
l_.str.1:                               ; @.str.1
	.asciz	"Failed to read PBA Block pointer.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to read PBA Block size.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Buffer to small for PBA data.\n"

	.comm	_I40E_ERR_PARAM,8,3             ; @I40E_ERR_PARAM
l_.str.4:                               ; @.str.4
	.asciz	"Failed to read PBA Block word %d.\n"

.subsections_via_symbols
