	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st95hf_echo_command
_st95hf_echo_command:                   ## @st95hf_echo_command
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_CMD_ECHO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_st95hf_send_recv_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	leaq	-17(%rbp), %rsi
	movq	%r14, %rdi
	callq	_st95hf_spi_recv_echo_res
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	movq	(%r14), %rdi
	movzbl	%bl, %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_5
LBB0_3:
	movb	-17(%rbp), %al
	movq	_ECHORESPONSE@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpb	(%rcx), %al
	je	LBB0_5
## %bb.4:
	movq	(%r14), %rdi
	movzbl	%al, %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_ECHO,4,2                   ## @CMD_ECHO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"err: echo response receive error = 0x%x\n"

	.comm	_ECHORESPONSE,1,0               ## @ECHORESPONSE
L_.str.1:                               ## @.str.1
	.asciz	"err: echo res is 0x%x\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_st95hf_echo_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st95hf_echo_command
_st95hf_echo_command:                   ; @st95hf_echo_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _CMD_ECHO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_ECHO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	mov	x3, #0
	mov	w4, #0
	bl	_st95hf_send_recv_cmd
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.1:
	add	x1, sp, #15
	mov	x0, x19
	bl	_st95hf_spi_recv_echo_res
	cbz	w0, LBB0_3
; %bb.2:
	mov	x20, x0
	ldr	x0, [x19]
	and	w2, w20, #0xff
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_6
LBB0_3:
	ldrb	w2, [sp, #15]
Lloh5:
	adrp	x8, _ECHORESPONSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ECHORESPONSE@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w2, w8
	b.ne	LBB0_5
; %bb.4:
	mov	w20, #0
	b	LBB0_6
LBB0_5:
	ldr	x0, [x19]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_ECHO,4,2                   ; @CMD_ECHO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"err: echo response receive error = 0x%x\n"

	.comm	_ECHORESPONSE,1,0               ; @ECHORESPONSE
l_.str.1:                               ; @.str.1
	.asciz	"err: echo res is 0x%x\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_st95hf_echo_command
.subsections_via_symbols
