	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_test_nvram_ext_dirs
_bnx2x_test_nvram_ext_dirs:             ## @bnx2x_test_nvram_ext_dirs
	.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, %r14
	movq	%rdi, %r15
	movq	_NVRAM_DIR_OFFSET@GOTPCREL(%rip), %rax
	movq	_CODE_ENTRY_EXTENDED_DIR_IDX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	shll	$3, %esi
	addl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movl	$8, %ecx
	callq	_bnx2x_nvram_read32
	testl	%eax, %eax
	jne	LBB0_1
## %bb.2:
	movl	-52(%rbp), %edi
	callq	_EXTENDED_DIR_EXISTS
	testl	%eax, %eax
	je	LBB0_11
## %bb.3:
	movl	-56(%rbp), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movl	$4, %ecx
	callq	_bnx2x_nvram_read32
	testl	%eax, %eax
	jne	LBB0_1
## %bb.4:
	cmpl	$0, -44(%rbp)
	jle	LBB0_11
## %bb.5:
	movq	_MAX_IMAGES_IN_EXTENDED_DIR@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_11
## %bb.6:
	movl	-56(%rbp), %ebx
	addl	$8, %ebx
	movl	$1, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_bnx2x_test_dir_entry
	testl	%eax, %eax
	jne	LBB0_1
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	-44(%rbp), %r13d
	jge	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	addl	$8, %ebx
	leal	1(%r13), %eax
	cmpl	(%r12), %r13d
	movl	%eax, %r13d
	jl	LBB0_7
LBB0_11:
	xorl	%eax, %eax
LBB0_1:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVRAM_DIR_OFFSET,4,2           ## @NVRAM_DIR_OFFSET
	.comm	_CODE_ENTRY_EXTENDED_DIR_IDX,4,2 ## @CODE_ENTRY_EXTENDED_DIR_IDX
	.comm	_MAX_IMAGES_IN_EXTENDED_DIR,4,2 ## @MAX_IMAGES_IN_EXTENDED_DIR
	.no_dead_strip	_bnx2x_test_nvram_ext_dirs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_test_nvram_ext_dirs
_bnx2x_test_nvram_ext_dirs:             ; @bnx2x_test_nvram_ext_dirs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _NVRAM_DIR_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVRAM_DIR_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CODE_ENTRY_EXTENDED_DIR_IDX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CODE_ENTRY_EXTENDED_DIR_IDX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w1, w8, w9, lsl #3
	mov	x2, sp
	mov	w3, #8
	bl	_bnx2x_nvram_read32
	cbz	w0, LBB0_2
LBB0_1:
	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
	add	sp, sp, #80
	ret
LBB0_2:
	ldr	w0, [sp, #4]
	bl	_EXTENDED_DIR_EXISTS
	cbz	w0, LBB0_1
; %bb.3:
	ldr	w1, [sp]
	add	x2, sp, #12
	mov	x0, x20
	mov	w3, #4
	bl	_bnx2x_nvram_read32
	cbnz	w0, LBB0_1
; %bb.4:
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_1
; %bb.5:
Lloh6:
	adrp	x22, _MAX_IMAGES_IN_EXTENDED_DIR@GOTPAGE
Lloh7:
	ldr	x22, [x22, _MAX_IMAGES_IN_EXTENDED_DIR@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_1
; %bb.6:
	ldr	w8, [sp]
	add	w21, w8, #8
	mov	w23, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_bnx2x_test_dir_entry
	cbnz	w0, LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x22]
	add	w21, w21, #8
	cmp	w23, w8
	ccmp	w23, w9, #0, lt
	add	w23, w23, #1
	b.lt	LBB0_7
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NVRAM_DIR_OFFSET,4,2           ; @NVRAM_DIR_OFFSET
	.comm	_CODE_ENTRY_EXTENDED_DIR_IDX,4,2 ; @CODE_ENTRY_EXTENDED_DIR_IDX
	.comm	_MAX_IMAGES_IN_EXTENDED_DIR,4,2 ; @MAX_IMAGES_IN_EXTENDED_DIR
	.no_dead_strip	_bnx2x_test_nvram_ext_dirs
.subsections_via_symbols
