	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_get_eeprom
_bnxt_get_eeprom:                       ## @bnxt_get_eeprom
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %r8
	movl	(%rsi), %edx
	testl	%edx, %edx
	je	LBB0_3
## %bb.1:
	cmpl	$16777215, %edx                 ## imm = 0xFFFFFF
	ja	LBB0_2
## %bb.4:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_netdev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movl	4(%rsi), %esi
	movq	%r8, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_bnxt_get_nvram_directory       ## TAILCALL
LBB0_2:
	movl	%edx, %eax
	sarl	$24, %eax
	andl	$16777215, %edx                 ## imm = 0xFFFFFF
	decl	%eax
	movl	4(%rsi), %ecx
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_bnxt_get_nvram_item            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported index value: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bnxt_get_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_get_eeprom
_bnxt_get_eeprom:                       ; @bnxt_get_eeprom
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x4, x2
	ldr	w8, [x1]
	cbz	w8, LBB0_3
; %bb.1:
	lsr	w9, w8, #24
	cbnz	w9, LBB0_4
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	bl	_netdev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	w1, [x1, #4]
	mov	x2, x4
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_bnxt_get_nvram_directory
LBB0_4:
	asr	w9, w8, #24
	and	w2, w8, #0xffffff
	sub	w8, w9, #1
	ldr	w3, [x1, #4]
	mov	x1, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_bnxt_get_nvram_item
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported index value: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bnxt_get_eeprom
.subsections_via_symbols
