	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_read_eeprom
_be_read_eeprom:                        ## @be_read_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	callq	_netdev_priv
	cmpl	$0, 4(%r15)
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_lancer_chip
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_be_physfn
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	_LANCER_VPD_PF_FILE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
LBB0_12:
	subl	(%rax), %r12d
	jmp	LBB0_13
LBB0_5:
	movq	_BE_VENDOR_ID@GOTPCREL(%rip), %rax
	movq	(%rbx), %rcx
	movl	(%rcx), %ecx
	shll	$16, %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r15)
	leaq	-48(%rbp), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	$4, -48(%rbp)
	movq	(%rbx), %rdi
	addq	$4, %rdi
	leaq	-44(%rbp), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$4, %esi
	callq	_dma_alloc_coherent
	movq	%rax, -40(%rbp)
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_be_cmd_get_seeprom_data
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	-40(%rbp), %rax
	movq	8(%r15), %rsi
	addq	(%rax), %rsi
	movl	4(%r15), %edx
	movq	%r14, %rdi
	callq	_memcpy
LBB0_8:
	movq	(%rbx), %rdi
	addq	$4, %rdi
	movq	-40(%rbp), %rdx
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %ecx
	callq	_dma_free_coherent
LBB0_13:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_LANCER_VPD_VF_FILE@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %esi
	movl	4(%r15), %edx
	movq	%rbx, %rdi
	movq	%r14, %rcx
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lancer_cmd_read_file           ## TAILCALL
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_LANCER_VPD_PF_FILE,4,2         ## @LANCER_VPD_PF_FILE
	.comm	_LANCER_VPD_VF_FILE,4,2         ## @LANCER_VPD_VF_FILE
	.comm	_BE_VENDOR_ID,4,2               ## @BE_VENDOR_ID
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_be_read_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_read_eeprom
_be_read_eeprom:                        ; @be_read_eeprom
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	bl	_netdev_priv
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x20, x0
	bl	_lancer_chip
	cbz	x0, LBB0_6
; %bb.2:
	mov	x0, x20
	bl	_be_physfn
	cbz	x0, LBB0_11
; %bb.3:
Lloh0:
	adrp	x8, _LANCER_VPD_PF_FILE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LANCER_VPD_PF_FILE@GOTPAGEOFF]
	b	LBB0_12
LBB0_4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_10
LBB0_6:
Lloh4:
	adrp	x8, _BE_VENDOR_ID@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BE_VENDOR_ID@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	x9, [x20]
	ldr	w9, [x9]
	orr	w8, w8, w9, lsl #16
	str	w8, [x21]
	mov	x22, sp
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	w8, #4
	str	w8, [sp]
	ldr	x8, [x20]
	add	x0, x8, #4
	orr	x2, x22, #0x4
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	w1, #4
	bl	_dma_alloc_coherent
	str	x0, [sp, #8]
	cbz	x0, LBB0_13
; %bb.7:
	mov	x1, sp
	mov	x0, x20
	bl	_be_cmd_get_seeprom_data
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.8:
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	ldr	x9, [x21, #8]
	add	x1, x9, x8
	ldr	w2, [x21, #4]
	mov	x0, x19
	bl	_memcpy
LBB0_9:
	ldr	x8, [x20]
	add	x0, x8, #4
	ldr	x2, [sp, #8]
	ldp	w1, w3, [sp]
	bl	_dma_free_coherent
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_11:
Lloh10:
	adrp	x8, _LANCER_VPD_VF_FILE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LANCER_VPD_VF_FILE@GOTPAGEOFF]
LBB0_12:
	ldr	w1, [x8]
	ldr	w2, [x21, #4]
	mov	x0, x20
	mov	x3, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_lancer_cmd_read_file
LBB0_13:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_LANCER_VPD_PF_FILE,4,2         ; @LANCER_VPD_PF_FILE
	.comm	_LANCER_VPD_VF_FILE,4,2         ; @LANCER_VPD_VF_FILE
	.comm	_BE_VENDOR_ID,4,2               ; @BE_VENDOR_ID
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_be_read_eeprom
.subsections_via_symbols
