	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_set_dump
_be_set_dump:                           ## @be_set_dump
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	(%rax), %r14
	movq	%rax, %rdi
	callq	_lancer_chip
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_MAX_PRIVILEGES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_check_privilege
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	(%r15), %edx
	cmpl	$129, %edx
	je	LBB0_8
## %bb.4:
	cmpl	$128, %edx
	jne	LBB0_10
## %bb.5:
	movq	%rbx, %rdi
	callq	_lancer_initiate_dump
	testl	%eax, %eax
	jne	LBB0_12
## %bb.6:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_7
LBB0_2:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_11:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, %rdi
	callq	_lancer_delete_dump
	testl	%eax, %eax
	jne	LBB0_12
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
LBB0_7:
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PRIVILEGES,4,2             ## @MAX_PRIVILEGES
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FW dump initiated successfully\n"

L_.str.1:                               ## @.str.1
	.asciz	"FW dump deleted successfully\n"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid dump level: 0x%x\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_set_dump
_be_set_dump:                           ; @be_set_dump
	.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	x21, x1
	bl	_netdev_priv
	mov	x20, x0
	ldr	x19, [x0]
	bl	_lancer_chip
	cbz	w0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _MAX_PRIVILEGES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_PRIVILEGES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_check_privilege
	cbz	w0, LBB0_6
; %bb.2:
	ldr	w2, [x21]
	cmp	w2, #129
	b.eq	LBB0_9
; %bb.3:
	cmp	w2, #128
	b.ne	LBB0_12
; %bb.4:
	mov	x0, x20
	bl	_lancer_initiate_dump
	cbnz	w0, LBB0_8
; %bb.5:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_6:
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
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
	ret
LBB0_9:
	mov	x0, x20
	bl	_lancer_delete_dump
	cbnz	w0, LBB0_8
; %bb.10:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_dev_info
	mov	w0, #0
	b	LBB0_8
LBB0_12:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PRIVILEGES,4,2             ; @MAX_PRIVILEGES
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FW dump initiated successfully\n"

l_.str.1:                               ; @.str.1
	.asciz	"FW dump deleted successfully\n"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid dump level: 0x%x\n"

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