	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7314_temperature_show
_ad7314_temperature_show:               ## @ad7314_temperature_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ad7314_spi_read
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movl	(%rbx), %edi
	callq	_spi_get_device_id
	movl	(%rax), %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_2
## %bb.5:
	movq	_ADT7301_TEMP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r15d, %edi
	movl	$13, %esi
	callq	_sign_extend32
	imull	$3125, %eax, %edi               ## imm = 0xC35
	movl	$100, %esi
	callq	_DIV_ROUND_CLOSEST
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	jmp	LBB0_4
LBB0_2:
	cmpl	$130, %eax
	jne	LBB0_6
## %bb.3:
	movq	_AD7314_TEMP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r15d, %edi
	movq	_AD7314_TEMP_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrl	%cl, %edi
	movl	$9, %esi
	callq	_sign_extend32
	imull	$250, %eax, %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sprintf                        ## TAILCALL
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AD7314_TEMP_MASK,4,2           ## @AD7314_TEMP_MASK
	.comm	_AD7314_TEMP_SHIFT,4,2          ## @AD7314_TEMP_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d\n"

	.comm	_ADT7301_TEMP_MASK,4,2          ## @ADT7301_TEMP_MASK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ad7314_temperature_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad7314_temperature_show
_ad7314_temperature_show:               ; @ad7314_temperature_show
	.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, x2
	bl	_dev_get_drvdata
	mov	x21, x0
	bl	_ad7314_spi_read
	mov	x20, x0
	tbnz	w0, #31, LBB0_7
; %bb.1:
	ldr	w0, [x21]
	bl	_spi_get_device_id
	ldr	w8, [x0]
	sub	w9, w8, #128
	cmp	w9, #2
	b.hs	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _ADT7301_TEMP_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADT7301_TEMP_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w0, w8, w20
	mov	w1, #13
	bl	_sign_extend32
	mov	w8, #3125
	mul	w0, w0, w8
	mov	w1, #100
	bl	_DIV_ROUND_CLOSEST
	mov	x2, x0
	b	LBB0_5
LBB0_3:
	cmp	w8, #130
	b.ne	LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _AD7314_TEMP_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AD7314_TEMP_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w20
Lloh6:
	adrp	x9, _AD7314_TEMP_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AD7314_TEMP_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsr	w0, w8, w9
	mov	w1, #9
	bl	_sign_extend32
	mov	w8, #250
	mul	w2, w0, w8
LBB0_5:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	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
	b	_sprintf
LBB0_6:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x20
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AD7314_TEMP_MASK,4,2           ; @AD7314_TEMP_MASK
	.comm	_AD7314_TEMP_SHIFT,4,2          ; @AD7314_TEMP_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d\n"

	.comm	_ADT7301_TEMP_MASK,4,2          ; @ADT7301_TEMP_MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ad7314_temperature_show
.subsections_via_symbols
