	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_get_reg_len
_be_get_reg_len:                        ## @be_get_reg_len
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	$0, -20(%rbp)
	movq	_MAX_PRIVILEGES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_check_privilege
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_be_physfn
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_lancer_chip
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	_LANCER_FW_DUMP_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_lancer_cmd_get_file_len        ## TAILCALL
LBB0_3:
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_be_cmd_get_reg_len
	movl	-20(%rbp), %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PRIVILEGES,4,2             ## @MAX_PRIVILEGES
	.comm	_LANCER_FW_DUMP_FILE,4,2        ## @LANCER_FW_DUMP_FILE
	.no_dead_strip	_be_get_reg_len
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_get_reg_len
_be_get_reg_len:                        ; @be_get_reg_len
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	bl	_netdev_priv
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _MAX_PRIVILEGES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_PRIVILEGES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_check_privilege
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_be_physfn
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_lancer_chip
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _LANCER_FW_DUMP_FILE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LANCER_FW_DUMP_FILE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_lancer_cmd_get_file_len
LBB0_4:
	add	x1, sp, #12
	mov	x0, x19
	bl	_be_cmd_get_reg_len
	ldr	w0, [sp, #12]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PRIVILEGES,4,2             ; @MAX_PRIVILEGES
	.comm	_LANCER_FW_DUMP_FILE,4,2        ; @LANCER_FW_DUMP_FILE
	.no_dead_strip	_be_get_reg_len
.subsections_via_symbols
