	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ds1682_show
_ds1682_show:                           ## @ds1682_show
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr_2
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_to_i2c_client
	movq	%rax, %r13
	movq	$0, -48(%rbp)
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
	movl	(%r15), %edx
	movl	4(%r15), %esi
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	callq	_i2c_smbus_read_i2c_block_data
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	(%r15), %ebx
	movq	-48(%rbp), %rdi
	callq	_le32_to_cpu
	cmpl	$4, %ebx
	jne	LBB0_4
## %bb.3:
	imulq	$250, %rax, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	jmp	LBB0_5
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
LBB0_5:
	callq	_sprintf
LBB0_6:
	addq	$8, %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_show() called on %s\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"%llu\n"

L_.str.2:                               ## @.str.2
	.asciz	"%li\n"

	.no_dead_strip	_ds1682_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ds1682_show
_ds1682_show:                           ; @ds1682_show
	.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, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr_2
	mov	x20, x0
	mov	x0, x22
	bl	_to_i2c_client
	mov	x23, x0
	str	xzr, [sp, #8]
	ldr	w2, [x21]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
	ldp	w2, w1, [x20]
	add	x3, sp, #8
	mov	x0, x23
	bl	_i2c_smbus_read_i2c_block_data
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w20, [x20]
	ldr	x0, [sp, #8]
	bl	_le32_to_cpu
	mov	x2, x0
	cmp	w20, #4
	b.ne	LBB0_4
; %bb.2:
	mov	w8, #250
	mul	x2, x2, x8
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:
Lloh4:
	adrp	x8, _EIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_sprintf
LBB0_6:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ds1682_show() called on %s\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"%llu\n"

l_.str.2:                               ; @.str.2
	.asciz	"%li\n"

	.no_dead_strip	_ds1682_show
.subsections_via_symbols
