	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ds2760_battery_write_active_full
_ds2760_battery_write_active_full:      ## @ds2760_battery_write_active_full
	.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	%rdi, %rbx
	movl	%esi, %ecx
	shrl	$8, %ecx
	movl	%esi, %eax
	rolw	$8, %ax
	movw	%ax, -26(%rbp)
	movq	(%rdi), %rax
	movq	_DS2760_ACTIVE_FULL@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	cmpb	%cl, (%rax,%rdx)
	jne	LBB0_2
## %bb.1:
	cmpb	%sil, 1(%rdx,%rax)
	je	LBB0_3
LBB0_2:
	movl	8(%rbx), %edi
	leaq	-26(%rbp), %rsi
	movl	$2, %ecx
	callq	_w1_ds2760_write
	movl	8(%rbx), %edi
	movq	_DS2760_EEPROM_BLOCK0@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_w1_ds2760_store_eeprom
	movl	8(%rbx), %edi
	movl	(%r15), %esi
	callq	_w1_ds2760_recall_eeprom
	movb	-26(%rbp), %al
	movq	(%rbx), %rcx
	movq	(%r14), %rdx
	movb	%al, (%rcx,%rdx)
	movb	-25(%rbp), %al
	movq	(%rbx), %rcx
	movq	(%r14), %rdx
	movb	%al, 1(%rdx,%rcx)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DS2760_ACTIVE_FULL,8,3         ## @DS2760_ACTIVE_FULL
	.comm	_DS2760_EEPROM_BLOCK0,4,2       ## @DS2760_EEPROM_BLOCK0
	.no_dead_strip	_ds2760_battery_write_active_full
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ds2760_battery_write_active_full
_ds2760_battery_write_active_full:      ; @ds2760_battery_write_active_full
	.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, x0
	lsr	w9, w1, #8
	rev	w8, w1
	lsr	w8, w8, #16
	strh	w8, [sp, #14]
	ldr	x8, [x0]
Lloh0:
	adrp	x20, _DS2760_ACTIVE_FULL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _DS2760_ACTIVE_FULL@GOTPAGEOFF]
	ldr	x2, [x20]
	ldrb	w10, [x8, x2]
	cmp	w10, w9, uxtb
	b.ne	LBB0_2
; %bb.1:
	add	x8, x2, x8
	ldrb	w8, [x8, #1]
	cmp	w8, w1, uxtb
	b.eq	LBB0_3
LBB0_2:
	ldr	w0, [x19, #8]
	add	x1, sp, #14
	mov	w3, #2
	bl	_w1_ds2760_write
	ldr	w0, [x19, #8]
Lloh2:
	adrp	x21, _DS2760_EEPROM_BLOCK0@GOTPAGE
Lloh3:
	ldr	x21, [x21, _DS2760_EEPROM_BLOCK0@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_w1_ds2760_store_eeprom
	ldr	w0, [x19, #8]
	ldr	w1, [x21]
	bl	_w1_ds2760_recall_eeprom
	ldrb	w8, [sp, #14]
	ldr	x9, [x19]
	ldr	x10, [x20]
	strb	w8, [x9, x10]
	ldrb	w8, [sp, #15]
	ldr	x9, [x19]
	ldr	x10, [x20]
	add	x9, x10, x9
	strb	w8, [x9, #1]
LBB0_3:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_DS2760_ACTIVE_FULL,8,3         ; @DS2760_ACTIVE_FULL
	.comm	_DS2760_EEPROM_BLOCK0,4,2       ; @DS2760_EEPROM_BLOCK0
	.no_dead_strip	_ds2760_battery_write_active_full
.subsections_via_symbols
