	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_get_module_eeprom
_be_get_module_eeprom:                  ## @be_get_module_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movq	_MAX_PRIVILEGES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_check_privilege
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movq	_TR_PAGE_A0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_be_cmd_read_port_transceiver_data
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movq	(%r14), %rax
	movq	8(%r14), %rdx
	addq	%rax, %rdx
	movq	_PAGE_DATA_LEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rdx
	jle	LBB0_5
## %bb.3:
	movq	_TR_PAGE_A2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	(%r15,%rcx,4), %rdx
	movq	%r12, %rdi
	callq	_be_cmd_read_port_transceiver_data
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	(%r14), %rax
LBB0_5:
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	(%r15,%rax,4), %rsi
	movq	8(%r14), %rdx
	movq	%r15, %rdi
	callq	_memcpy
LBB0_7:
	movl	%ebx, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_be_cmd_status                  ## TAILCALL
LBB0_8:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PRIVILEGES,4,2             ## @MAX_PRIVILEGES
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_TR_PAGE_A0,4,2                 ## @TR_PAGE_A0
	.comm	_PAGE_DATA_LEN,8,3              ## @PAGE_DATA_LEN
	.comm	_TR_PAGE_A2,4,2                 ## @TR_PAGE_A2
	.no_dead_strip	_be_get_module_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_get_module_eeprom
_be_get_module_eeprom:                  ; @be_get_module_eeprom
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	bl	_netdev_priv
	mov	x21, x0
Lloh0:
	adrp	x8, _MAX_PRIVILEGES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_PRIVILEGES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_check_privilege
	cbz	w0, LBB0_9
; %bb.1:
Lloh3:
	adrp	x8, _TR_PAGE_A0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TR_PAGE_A0@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x19
	bl	_be_cmd_read_port_transceiver_data
	cbnz	w0, LBB0_8
; %bb.2:
	ldp	x8, x10, [x20]
Lloh6:
	adrp	x9, _PAGE_DATA_LEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PAGE_DATA_LEN@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x10, x10, x8
	cmp	x10, x9
	b.le	LBB0_5
; %bb.3:
Lloh9:
	adrp	x8, _TR_PAGE_A2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TR_PAGE_A2@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, x19, x9, lsl #2
	mov	x0, x21
	bl	_be_cmd_read_port_transceiver_data
	cbnz	w0, LBB0_8
; %bb.4:
	ldr	x8, [x20]
LBB0_5:
	cbz	x8, LBB0_7
; %bb.6:
	add	x1, x19, x8, lsl #2
	ldr	x2, [x20, #8]
	mov	x0, x19
	bl	_memcpy
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_be_cmd_status
LBB0_9:
Lloh12:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PRIVILEGES,4,2             ; @MAX_PRIVILEGES
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_TR_PAGE_A0,4,2                 ; @TR_PAGE_A0
	.comm	_PAGE_DATA_LEN,8,3              ; @PAGE_DATA_LEN
	.comm	_TR_PAGE_A2,4,2                 ; @TR_PAGE_A2
	.no_dead_strip	_be_get_module_eeprom
.subsections_via_symbols
