	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slic_read
_slic_read:                             ## @slic_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movl	%esi, %edi
	callq	_bitrev16
	movl	%eax, %ecx
	shrl	%ecx
	shrl	$9, %eax
	orl	$128, %eax
	movzbl	%al, %eax
	movq	%rax, -32(%rbp)
	andl	$254, %ecx
	movq	%rcx, -24(%rbp)
	movq	_SLIC_TWO_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SLIC_TRANS_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-32(%rbp), %rsi
	leaq	-40(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_spi_write_then_read
	movq	-40(%rbp), %rdi
	callq	_bitrev8
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_2
## %bb.1:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SLIC_TWO_LEN,4,2               ## @SLIC_TWO_LEN
	.comm	_SLIC_TRANS_LEN,4,2             ## @SLIC_TRANS_LEN
	.no_dead_strip	_slic_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slic_read
_slic_read:                             ; @slic_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	mov	x0, x1
	bl	_bitrev16
	lsr	w8, w0, #1
	mov	w9, #128
	bfxil	w9, w0, #9, #7
	and	w8, w8, #0xfe
	stp	x9, x8, [sp, #8]
Lloh3:
	adrp	x8, _SLIC_TWO_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SLIC_TWO_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _SLIC_TRANS_LEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SLIC_TRANS_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	add	x1, sp, #8
	mov	x3, sp
	mov	x0, x19
	bl	_spi_write_then_read
	ldr	x0, [sp]
	bl	_bitrev8
	ldr	x8, [sp, #24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SLIC_TWO_LEN,4,2               ; @SLIC_TWO_LEN
	.comm	_SLIC_TRANS_LEN,4,2             ; @SLIC_TRANS_LEN
	.no_dead_strip	_slic_read
.subsections_via_symbols
