	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ds1682_store
_ds1682_store:                          ## @ds1682_store
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr_2
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_to_i2c_client
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_kstrtoull
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	cmpl	$4, (%r13)
	jne	LBB0_4
## %bb.3:
	movl	-44(%rbp), %edi
	movl	$250, %esi
	callq	_do_div
LBB0_4:
	movl	-44(%rbp), %edi
	callq	_cpu_to_le32
	movl	%eax, -48(%rbp)
	movl	(%r13), %edx
	movl	4(%r13), %esi
	leaq	-48(%rbp), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_i2c_smbus_write_i2c_block_data
	testl	%eax, %eax
	jns	LBB0_7
## %bb.5:
	movl	(%r13), %ecx
	movl	4(%r13), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_6:
	subq	(%rax), %r14
LBB0_7:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ds1682_store() called on %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"input string not a number\n"

	.comm	_EINVAL,8,3                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"register write failed; reg=0x%x, size=%i\n"

	.comm	_EIO,8,3                        ## @EIO
	.no_dead_strip	_ds1682_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ds1682_store
_ds1682_store:                          ; @ds1682_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr_2
	mov	x21, x0
	mov	x0, x20
	bl	_to_i2c_client
	mov	x22, x0
	ldr	w8, [x24]
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	add	x2, sp, #12
	mov	x0, x23
	mov	w1, #0
	bl	_kstrtoull
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, #4
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [sp, #12]
	mov	w1, #250
	bl	_do_div
LBB0_3:
	ldr	w0, [sp, #12]
	bl	_cpu_to_le32
	str	w0, [sp, #8]
	ldp	w2, w1, [x21]
	add	x3, sp, #8
	mov	x0, x22
	bl	_i2c_smbus_write_i2c_block_data
	tbz	w0, #31, LBB0_7
; %bb.4:
	ldp	w3, w2, [x21]
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh4:
	adrp	x8, _EIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ds1682_store() called on %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"input string not a number\n"

	.comm	_EINVAL,8,3                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"register write failed; reg=0x%x, size=%i\n"

	.comm	_EIO,8,3                        ; @EIO
	.no_dead_strip	_ds1682_store
.subsections_via_symbols
