	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ca8210_set_cca_ed_level
_ca8210_set_cca_ed_level:               ## @ca8210_set_cca_ed_level
	.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
	movslq	%esi, %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	addl	%eax, %eax
	addl	$256, %eax                      ## imm = 0x100
	movl	%eax, -20(%rbp)
	movq	(%rdi), %r14
	movq	_HWME_EDTHRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rcx
	leaq	-20(%rbp), %rdx
	movl	$1, %esi
	callq	_hwme_set_request_sync
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_2:
	movl	%ebx, %edi
	callq	_link_to_linux_err
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HWME_EDTHRESHOLD,4,2           ## @HWME_EDTHRESHOLD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error setting ed threshold, HWME-SET.confirm status = %d"

	.no_dead_strip	_ca8210_set_cca_ed_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ca8210_set_cca_ed_level
_ca8210_set_cca_ed_level:               ; @ca8210_set_cca_ed_level
	.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
	mov	w8, #34079
	movk	w8, #20971, lsl #16
	smull	x8, w1, w8
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
	lsl	w8, w8, #1
	add	w8, w8, #256
	str	w8, [sp, #12]
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _HWME_EDTHRESHOLD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HWME_EDTHRESHOLD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x3, [x20]
	add	x2, sp, #12
	mov	w1, #1
	bl	_hwme_set_request_sync
	mov	x19, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x0, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_err
LBB0_2:
	mov	x0, x19
	bl	_link_to_linux_err
	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 AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_HWME_EDTHRESHOLD,4,2           ; @HWME_EDTHRESHOLD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error setting ed threshold, HWME-SET.confirm status = %d"

	.no_dead_strip	_ca8210_set_cca_ed_level
.subsections_via_symbols
