	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ltc2485_read
_ltc2485_read:                          ## @ltc2485_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movq	$0, -40(%rbp)
	callq	_ltc2485_wait_conv
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_i2c_master_recv
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, (%rbx)
	movq	-40(%rbp), %rdi
	callq	_be32_to_cpu
	sarl	$6, %eax
	movl	%eax, %edi
	movl	$24, %esi
	callq	_sign_extend32
	movl	%eax, (%r14)
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
LBB0_3:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c_master_recv failed\n"

	.no_dead_strip	_ltc2485_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ltc2485_read
_ltc2485_read:                          ; @ltc2485_read
	.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, x1
	mov	x21, x0
	ldr	x22, [x0, #8]
	str	xzr, [sp, #8]
	bl	_ltc2485_wait_conv
	add	x1, sp, #8
	mov	x0, x22
	mov	w2, #4
	bl	_i2c_master_recv
	mov	x20, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
	bl	_ktime_get
	str	w0, [x21]
	ldr	x0, [sp, #8]
	bl	_be32_to_cpu
	asr	w0, w0, #6
	mov	w1, #24
	bl	_sign_extend32
	str	w0, [x19]
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_err
LBB0_3:
	mov	x0, x20
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c_master_recv failed\n"

	.no_dead_strip	_ltc2485_read
.subsections_via_symbols
