	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ds1682_eeprom_read
_ds1682_eeprom_read:                    ## @ds1682_eeprom_read
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, %rbx
	movq	%rcx, %r15
	movq	%rsi, %rdi
	callq	_kobj_to_i2c_client
	movq	%rax, %r12
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	movq	%r14, %r8
	callq	_dev_dbg
	movq	_DS1682_REG_EEPROM@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_i2c_smbus_read_i2c_block_data
	movq	_EIO@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subq	(%rdx), %rcx
	testl	%eax, %eax
	cmovnsq	%r14, %rcx
	movq	%rcx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ds1682_eeprom_read(p=%p, off=%lli, c=%zi)\n"

	.comm	_DS1682_REG_EEPROM,8,3          ## @DS1682_REG_EEPROM
	.comm	_EIO,8,3                        ## @EIO
	.no_dead_strip	_ds1682_eeprom_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ds1682_eeprom_read
_ds1682_eeprom_read:                    ; @ds1682_eeprom_read
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x0, x1
	bl	_kobj_to_i2c_client
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_dev_dbg
Lloh2:
	adrp	x8, _DS1682_REG_EEPROM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DS1682_REG_EEPROM@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x1, x8, x20
	mov	x0, x22
	mov	x2, x19
	mov	x3, x21
	bl	_i2c_smbus_read_i2c_block_data
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	w0, #0
	csneg	x0, x19, x8, ge
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ds1682_eeprom_read(p=%p, off=%lli, c=%zi)\n"

	.comm	_DS1682_REG_EEPROM,8,3          ; @DS1682_REG_EEPROM
	.comm	_EIO,8,3                        ; @EIO
	.no_dead_strip	_ds1682_eeprom_read
.subsections_via_symbols
