	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adcxx_show
_adcxx_show:                            ## @adcxx_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_to_spi_device
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_spi_get_drvdata
	movq	%rax, %r13
	leaq	8(%rax), %rbx
	movq	%rbx, %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_9
LBB0_2:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	cmpl	$1, (%r13)
	jne	LBB0_4
## %bb.3:
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	movl	$8, %edx
	callq	_spi_read
	jmp	LBB0_5
LBB0_4:
	movl	(%r12), %eax
	shll	$3, %eax
	movl	%eax, -56(%rbp)
	leaq	-56(%rbp), %rsi
	leaq	-64(%rbp), %rcx
	movq	%r15, %rdi
	movl	$8, %edx
	movl	$8, %r8d
	callq	_spi_write_then_read
LBB0_5:
	movl	%eax, %ebx
	testl	%eax, %eax
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	js	LBB0_6
## %bb.7:
	movl	-64(%rbp), %ebx
	shll	$8, %ebx
	addl	-60(%rbp), %ebx
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_dbg
	imull	4(%r13), %ebx
	sarl	$12, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_sprintf
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_warn
LBB0_8:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SPI synch. transfer failed with status %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"raw value = 0x%x\n"

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

	.no_dead_strip	_adcxx_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adcxx_show
_adcxx_show:                            ; @adcxx_show
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	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, #24]
	bl	_to_spi_device
	mov	x23, x0
	mov	x0, x19
	bl	_to_sensor_dev_attr
	mov	x24, x0
	mov	x0, x23
	bl	_spi_get_drvdata
	mov	x22, x0
	add	x19, x0, #8
	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_8
LBB0_2:
	ldr	w8, [x22]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.3:
	add	x1, sp, #8
	mov	x0, x23
	mov	w2, #8
	bl	_spi_read
	mov	x23, x0
	tbnz	w0, #31, LBB0_6
LBB0_4:
	ldp	w8, w9, [sp, #8]
	add	w23, w9, w8, lsl #8
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x23
	bl	_dev_dbg
	ldr	w8, [x22, #4]
	mul	w8, w8, w23
	asr	w2, w8, #12
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_7
LBB0_5:
	ldr	w8, [x24]
	lsl	w8, w8, #3
	str	w8, [sp, #16]
	add	x1, sp, #16
	add	x3, sp, #8
	mov	x0, x23
	mov	w2, #8
	mov	w4, #8
	bl	_spi_write_then_read
	mov	x23, x0
	tbz	w0, #31, LBB0_4
LBB0_6:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x23
	bl	_dev_warn
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_8:
	ldr	x8, [sp, #24]
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_10
; %bb.9:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
	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 synch. transfer failed with status %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"raw value = 0x%x\n"

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

	.no_dead_strip	_adcxx_show
.subsections_via_symbols
