	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st95hf_spi_recv_response       ## -- Begin function st95hf_spi_recv_response
	.p2align	4, 0x90
_st95hf_spi_recv_response:              ## @st95hf_spi_recv_response
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r14
	movq	_ST95HF_COMMAND_RECEIVE@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -113(%rbp)
	leaq	-113(%rbp), %rax
	movq	%rax, -112(%rbp)
	movl	$1, -104(%rbp)
	movq	$0, -96(%rbp)
	movl	$0, -88(%rbp)
	leaq	-80(%rbp), %r13
	movq	$0, -80(%rbp)
	movl	$2, -72(%rbp)
	movq	%rsi, -64(%rbp)
	movl	$1, -56(%rbp)
	leaq	-152(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	%r15, %rdi
	callq	_mutex_lock
	leaq	-120(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_spi_message_init
	leaq	-112(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_spi_message_add_tail
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_spi_message_add_tail
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_spi_sync
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movq	%r15, %rdi
	callq	_mutex_unlock
	jmp	LBB0_8
LBB0_2:
	movzbl	(%r12), %eax
	andl	$96, %eax
	je	LBB0_4
## %bb.3:
	shll	$3, %eax
	movzbl	1(%r12), %r13d
	orl	%eax, %r13d
	jmp	LBB0_5
LBB0_4:
	movzbl	1(%r12), %r13d
LBB0_5:
	addq	$2, %r12
	movq	%r12, -136(%rbp)
	movl	%r13d, -144(%rbp)
	leaq	-120(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_spi_message_init
	leaq	-152(%rbp), %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_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
	jmp	LBB0_8
LBB0_7:
	addl	$2, %r13d
	movl	%r13d, %ebx
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	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	"spi_recv_resp, data length error = %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"spi_recv_resp, 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_response       ; -- Begin function st95hf_spi_recv_response
	.p2align	2
_st95hf_spi_recv_response:              ; @st95hf_spi_recv_response
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x19, [x0, #8]
Lloh3:
	adrp	x8, _ST95HF_COMMAND_RECEIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ST95HF_COMMAND_RECEIVE@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [sp, #15]
	add	x8, sp, #15
	str	x8, [sp, #56]
	mov	w8, #1
	str	w8, [sp, #64]
	str	xzr, [sp, #72]
	str	wzr, [sp, #80]
	add	x9, sp, #56
	add	x22, x9, #32
	str	xzr, [sp, #88]
	mov	w9, #2
	str	w9, [sp, #96]
	str	x1, [sp, #104]
	str	w8, [sp, #112]
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	mov	x0, x20
	bl	_mutex_lock
	add	x0, sp, #16
	bl	_spi_message_init
	add	x0, sp, #56
	add	x1, sp, #16
	bl	_spi_message_add_tail
	add	x1, sp, #16
	mov	x0, x22
	bl	_spi_message_add_tail
	add	x1, sp, #16
	mov	x0, x19
	bl	_spi_sync
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_dev_err
	mov	x0, x20
	bl	_mutex_unlock
	b	LBB0_8
LBB0_2:
	ldrb	w8, [x21]
	ands	w8, w8, #0x60
	b.eq	LBB0_4
; %bb.3:
	ldrb	w9, [x21, #1]
	orr	w23, w9, w8, lsl #3
	b	LBB0_5
LBB0_4:
	ldrb	w23, [x21, #1]
LBB0_5:
	add	x8, x21, #2
	str	x8, [sp, #40]
	str	w23, [sp, #32]
	add	x0, sp, #16
	bl	_spi_message_init
	add	x0, sp, #24
	add	x1, sp, #16
	bl	_spi_message_add_tail
	add	x1, sp, #16
	mov	x0, x19
	bl	_spi_sync
	mov	x22, x0
	mov	x0, x20
	bl	_mutex_unlock
	cbz	w22, LBB0_7
; %bb.6:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_dev_err
	b	LBB0_8
LBB0_7:
	add	w22, w23, #2
LBB0_8:
	ldur	x8, [x29, #-56]
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_10
; %bb.9:
	mov	x0, x22
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ST95HF_COMMAND_RECEIVE,1,0     ; @ST95HF_COMMAND_RECEIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"spi_recv_resp, data length error = %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"spi_recv_resp, data read error = %d\n"

.subsections_via_symbols
