	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr_2
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_to_i2c_client
	movq	%rax, %r15
	movq	$0, -48(%rbp)
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movq	(%r12), %rsi
	movl	8(%r12), %edx
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	callq	_i2c_smbus_read_i2c_block_data
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	-48(%rbp), %rdi
	callq	_le32_to_cpu
	movq	%rax, %r14
	movq	(%r12), %rsi
	movq	_DS1682_REG_ELAPSED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_7
## %bb.3:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	8(%r12), %edx
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	callq	_i2c_smbus_read_i2c_block_data
	testl	%eax, %eax
	js	LBB0_1
## %bb.4:
	movl	$-4, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi
	callq	_le32_to_cpu
	movq	%rax, %rbx
	cmpq	%r14, %rax
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	cmpq	%r14, %rbx
	je	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r12), %rsi
	movl	8(%r12), %edx
	movq	%r15, %rdi
	leaq	-48(%rbp), %rcx
	callq	_i2c_smbus_read_i2c_block_data
	testl	%eax, %eax
	js	LBB0_1
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	leal	1(%r13), %eax
	movq	%rbx, %r14
	testl	%r13d, %r13d
	movl	%eax, %r13d
	jne	LBB0_5
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %r14
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_7:
	imulq	$250, %r14, %rdx
	cmpl	$4, 8(%r12)
	cmovneq	%r14, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_sprintf
LBB0_8:
	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_show() called on %s\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_DS1682_REG_ELAPSED,8,3         ## @DS1682_REG_ELAPSED
L_.str.1:                               ## @.str.1
	.asciz	"%llu\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	x22, x1
	mov	x23, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr_2
	mov	x20, x0
	mov	x0, x23
	bl	_to_i2c_client
	mov	x21, x0
	str	xzr, [sp, #8]
	ldr	w2, [x22]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_dev_dbg
	ldr	x1, [x20]
	ldr	w2, [x20, #8]
	add	x3, sp, #8
	mov	x0, x21
	bl	_i2c_smbus_read_i2c_block_data
	tbnz	w0, #31, LBB0_18
; %bb.1:
	ldr	x0, [sp, #8]
	bl	_le32_to_cpu
	ldr	x1, [x20]
Lloh2:
	adrp	x8, _DS1682_REG_ELAPSED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DS1682_REG_ELAPSED@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	mov	x22, x0
	cmp	x1, x8
	b.ne	LBB0_20
; %bb.2:
	mov	x23, x0
	ldr	w2, [x20, #8]
	add	x3, sp, #8
	mov	x0, x21
	bl	_i2c_smbus_read_i2c_block_data
	tbnz	w0, #31, LBB0_18
; %bb.3:
	ldr	x0, [sp, #8]
	bl	_le32_to_cpu
	mov	x22, x0
	cmp	x0, x23
	b.eq	LBB0_20
; %bb.4:
	add	x8, x23, #1
	cmp	x22, x8
	b.eq	LBB0_20
; %bb.5:
	ldr	x1, [x20]
	ldr	w2, [x20, #8]
	add	x3, sp, #8
	mov	x0, x21
	bl	_i2c_smbus_read_i2c_block_data
	tbnz	w0, #31, LBB0_18
; %bb.6:
	ldr	x0, [sp, #8]
	bl	_le32_to_cpu
	mov	x23, x0
	cmp	x0, x22
	b.eq	LBB0_19
; %bb.7:
	add	x8, x22, #1
	mov	x22, x23
	cmp	x23, x8
	b.eq	LBB0_20
; %bb.8:
	ldr	x1, [x20]
	ldr	w2, [x20, #8]
	add	x3, sp, #8
	mov	x0, x21
	bl	_i2c_smbus_read_i2c_block_data
	tbnz	w0, #31, LBB0_18
; %bb.9:
	ldr	x0, [sp, #8]
	bl	_le32_to_cpu
	mov	x22, x0
	cmp	x0, x23
	b.eq	LBB0_20
; %bb.10:
	add	x8, x23, #1
	cmp	x22, x8
	b.eq	LBB0_20
; %bb.11:
	ldr	x1, [x20]
	ldr	w2, [x20, #8]
	add	x3, sp, #8
	mov	x0, x21
	bl	_i2c_smbus_read_i2c_block_data
	tbnz	w0, #31, LBB0_18
; %bb.12:
	ldr	x0, [sp, #8]
	bl	_le32_to_cpu
	mov	x23, x0
	cmp	x0, x22
	b.eq	LBB0_19
; %bb.13:
	add	x8, x22, #1
	mov	x22, x23
	cmp	x23, x8
	b.eq	LBB0_20
; %bb.14:
	ldr	x1, [x20]
	ldr	w2, [x20, #8]
	add	x3, sp, #8
	mov	x0, x21
	bl	_i2c_smbus_read_i2c_block_data
	tbnz	w0, #31, LBB0_18
; %bb.15:
	ldr	x0, [sp, #8]
	bl	_le32_to_cpu
	mov	x22, x0
	cmp	x0, x23
	b.eq	LBB0_20
; %bb.16:
	add	x8, x23, #1
	cmp	x22, x8
	b.eq	LBB0_20
; %bb.17:
	ldr	x1, [x20]
	ldr	w2, [x20, #8]
	add	x3, sp, #8
	mov	x0, x21
	bl	_i2c_smbus_read_i2c_block_data
LBB0_18:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_21
LBB0_19:
	mov	x22, x23
LBB0_20:
	ldr	w8, [x20, #8]
	mov	w9, #250
	mul	x9, x22, x9
	cmp	w8, #4
	csel	x2, x9, x22, eq
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_sprintf
LBB0_21:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ds1682_show() called on %s\n"

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

	.no_dead_strip	_ds1682_show
.subsections_via_symbols
