	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st95hf_spi_recv_echo_res       ## -- Begin function st95hf_spi_recv_echo_res
	.p2align	4, 0x90
_st95hf_spi_recv_echo_res:              ## @st95hf_spi_recv_echo_res
	.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	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_ST95HF_COMMAND_RECEIVE@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -97(%rbp)
	leaq	-97(%rbp), %rax
	movq	%rax, -96(%rbp)
	movl	$1, -88(%rbp)
	leaq	-72(%rbp), %r12
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movl	$1, -64(%rbp)
	movq	%rsi, -56(%rbp)
	movq	8(%rdi), %r14
	callq	_mutex_lock
	leaq	-104(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_spi_message_init
	leaq	-96(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_spi_message_add_tail
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_spi_message_add_tail
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_spi_sync
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	movl	%ebx, %eax
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ST95HF_COMMAND_RECEIVE,1,0     ## @ST95HF_COMMAND_RECEIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"recv_echo_res, data read error = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st95hf_spi_recv_echo_res       ; -- Begin function st95hf_spi_recv_echo_res
	.p2align	2
_st95hf_spi_recv_echo_res:              ; @st95hf_spi_recv_echo_res
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _ST95HF_COMMAND_RECEIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ST95HF_COMMAND_RECEIVE@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [sp, #7]
	add	x8, sp, #7
	str	x8, [sp, #8]
	mov	w8, #1
	str	w8, [sp, #16]
	add	x9, sp, #8
	add	x20, x9, #24
	stp	xzr, xzr, [sp, #24]
	str	w8, [sp, #40]
	str	x1, [sp, #48]
	ldr	x19, [x0, #8]
	bl	_mutex_lock
	mov	x0, sp
	bl	_spi_message_init
	add	x0, sp, #8
	mov	x1, sp
	bl	_spi_message_add_tail
	mov	x1, sp
	mov	x0, x20
	bl	_spi_message_add_tail
	mov	x1, sp
	mov	x0, x19
	bl	_spi_sync
	mov	x20, x0
	mov	x0, x21
	bl	_mutex_unlock
	cbz	w20, LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
LBB0_2:
	ldur	x8, [x29, #-40]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ST95HF_COMMAND_RECEIVE,1,0     ; @ST95HF_COMMAND_RECEIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"recv_echo_res, data read error = %d\n"

.subsections_via_symbols
