	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function temp1_input_show
_temp1_input_show:                      ## @temp1_input_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	8(%rax), %rbx
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_2:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$2, %r8d
	callq	_spi_write_then_read
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	-56(%rbp), %edx
	movl	-52(%rbp), %ecx
	movl	%edx, %r14d
	shll	$8, %r14d
	addl	%ecx, %r14d
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	%r14d, %r8d
	callq	_dev_dbg
	movl	(%r15), %eax
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_5
## %bb.8:
	leal	7(%r14), %eax
	testl	%r14d, %r14d
	cmovnsl	%r14d, %eax
	sarl	$3, %eax
	imull	$625, %eax, %eax                ## imm = 0x271
	cltq
	imulq	$1717986919, %rax, %r12         ## imm = 0x66666667
	movq	%r12, %rax
	shrq	$63, %rax
	sarq	$34, %r12
	jmp	LBB0_10
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_dev_warn
	jmp	LBB0_12
LBB0_5:
	cmpl	$131, %eax
	je	LBB0_9
## %bb.6:
	cmpl	$132, %eax
	jne	LBB0_11
## %bb.7:
	leal	31(%r14), %eax
	testl	%r14d, %r14d
	cmovnsl	%r14d, %eax
	sarl	$5, %eax
	imull	$250, %eax, %r12d
	jmp	LBB0_11
LBB0_9:
	leal	3(%r14), %eax
	testl	%r14d, %r14d
	cmovnsl	%r14d, %eax
	sarl	$2, %eax
	imull	$3125, %eax, %eax               ## imm = 0xC35
	cltq
	imulq	$1374389535, %rax, %r12         ## imm = 0x51EB851F
	movq	%r12, %rax
	shrq	$63, %rax
	sarq	$37, %r12
LBB0_10:
	addl	%eax, %r12d
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_sprintf
	movl	%eax, %ebx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_12:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"spi_write_then_read failed with status %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"rxbuf[0] : 0x%02x rxbuf[1] : 0x%02x raw=0x%04x\n"

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

	.no_dead_strip	_temp1_input_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function temp1_input_show
_temp1_input_show:                      ; @temp1_input_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	x20, x2
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	bl	_dev_get_drvdata
	mov	x22, x0
	ldr	x23, [x0, #8]
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_6
LBB0_2:
	mov	x3, sp
	mov	x0, x23
	mov	x1, #0
	mov	w2, #0
	mov	w4, #2
	bl	_spi_write_then_read
	tbnz	w0, #31, LBB0_4
; %bb.3:
	ldp	w2, w3, [sp]
	add	w23, w3, w2, lsl #8
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x4, x23
	bl	_dev_dbg
	ldr	w8, [x22]
	sub	w9, w8, #128
	add	w10, w23, #7
	cmp	w23, #0
	csel	w10, w10, w23, lt
	asr	w10, w10, #3
	mov	w11, #625
	mul	w10, w10, w11
	mov	w11, #26215
	movk	w11, #26214, lsl #16
	smull	x10, w10, w11
	lsr	x11, x10, #63
	asr	x10, x10, #34
	add	w10, w10, w11
	add	w11, w23, #3
	cmp	w23, #0
	csel	w11, w11, w23, lt
	asr	w11, w11, #2
	mov	w12, #3125
	mul	w11, w11, w12
	mov	w12, #34079
	movk	w12, #20971, lsl #16
	smull	x11, w11, w12
	lsr	x12, x11, #63
	asr	x11, x11, #37
	add	w11, w11, w12
	add	w12, w23, #31
	cmp	w23, #0
	csel	w12, w12, w23, lt
	asr	w12, w12, #5
	mov	w13, #250
	mul	w12, w12, w13
	cmp	w8, #132
	csel	w12, wzr, w12, ne
	cmp	w8, #131
	csel	w8, w11, w12, eq
	cmp	w9, #3
	csel	w2, w10, w8, lo
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_sprintf
	mov	x23, x0
	b	LBB0_5
LBB0_4:
	mov	x23, x0
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x23
	bl	_dev_warn
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_6:
	ldr	x8, [sp, #8]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x23
	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
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"spi_write_then_read failed with status %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"rxbuf[0] : 0x%02x rxbuf[1] : 0x%02x raw=0x%04x\n"

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

	.no_dead_strip	_temp1_input_show
.subsections_via_symbols
