	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ds2760_battery_set_current_accum
_ds2760_battery_set_current_accum:      ## @ds2760_battery_set_current_accum
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %rbx
	shll	$2, %esi
	imulq	$274877907, %rsi, %rax          ## imm = 0x10624DD3
	shrq	$38, %rax
	rolw	$8, %ax
	movw	%ax, -10(%rbp)
	movl	(%rdi), %edi
	movq	_DS2760_CURRENT_ACCUM_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-10(%rbp), %rsi
	movl	$2, %ecx
	callq	_w1_ds2760_write
	cmpl	$1, %eax
	jg	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DS2760_CURRENT_ACCUM_MSB,4,2   ## @DS2760_CURRENT_ACCUM_MSB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ACR write failed\n"

	.no_dead_strip	_ds2760_battery_set_current_accum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ds2760_battery_set_current_accum
_ds2760_battery_set_current_accum:      ; @ds2760_battery_set_current_accum
	.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	x19, x0
	lsl	w8, w1, #2
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	umull	x8, w8, w9
	lsr	x8, x8, #38
	rev	w8, w8
	lsr	w8, w8, #16
	strh	w8, [sp, #14]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _DS2760_CURRENT_ACCUM_MSB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DS2760_CURRENT_ACCUM_MSB@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x1, sp, #14
	mov	w3, #2
	bl	_w1_ds2760_write
	cmp	w0, #1
	b.gt	LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_2:
	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	_DS2760_CURRENT_ACCUM_MSB,4,2   ; @DS2760_CURRENT_ACCUM_MSB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ACR write failed\n"

	.no_dead_strip	_ds2760_battery_set_current_accum
.subsections_via_symbols
