	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sync_receive_data_send_cmd
_sync_receive_data_send_cmd:            ## @sync_receive_data_send_cmd
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movl	%ecx, %ebx
	movl	%edx, %r12d
	movl	%esi, %r15d
	testl	%edx, %edx
	je	LBB0_3
## %bb.1:
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	movq	%rdi, %r13
	xorl	%edi, %edi
	callq	_PMNC_GET
	movl	$1, %edi
	callq	_PMNC_SET
	movq	(%r13), %rcx
	xorl	%eax, %eax
	callq	*(%rcx)
	xorl	%edi, %edi
	callq	_CCNT
LBB0_3:
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.5:
	xorl	%eax, %eax
	callq	_corgi_ssp_ads7846_get
	movl	%eax, %r15d
	testl	%r12d, %r12d
	jne	LBB0_7
	jmp	LBB0_10
LBB0_4:
	xorl	%r15d, %r15d
	testl	%r12d, %r12d
	je	LBB0_10
LBB0_7:
	movq	_ADSCTRL_PD0@GOTPCREL(%rip), %rax
	movq	_ADSCTRL_PD1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_ADSCTRL_ADR_SH@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	orl	%edx, %ebx
	movq	_ADSCTRL_STS@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_corgi_ssp_ads7846_put
	xorl	%eax, %eax
	callq	_corgi_ssp_ads7846_get
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:
	callq	_CCNT
	movl	%ebx, %edi
	callq	_corgi_ssp_ads7846_put
	xorl	%edi, %edi
	callq	_PMNC_SET
	jmp	LBB0_10
LBB0_9:
	movl	%ebx, %edi
	callq	_corgi_ssp_ads7846_put
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADSCTRL_PD0,4,2                ## @ADSCTRL_PD0
	.comm	_ADSCTRL_PD1,4,2                ## @ADSCTRL_PD1
	.comm	_ADSCTRL_ADR_SH,4,2             ## @ADSCTRL_ADR_SH
	.comm	_ADSCTRL_STS,4,2                ## @ADSCTRL_STS
	.no_dead_strip	_sync_receive_data_send_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sync_receive_data_send_cmd
_sync_receive_data_send_cmd:            ; @sync_receive_data_send_cmd
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	cbz	w2, LBB0_3
; %bb.1:
	cbz	x19, LBB0_3
; %bb.2:
	mov	x23, x0
	mov	x0, #0
	bl	_PMNC_GET
	mov	w0, #1
	bl	_PMNC_SET
	ldr	x8, [x23]
	ldr	x8, [x8]
	blr	x8
	mov	x0, #0
	bl	_CCNT
LBB0_3:
	cbz	w21, LBB0_5
; %bb.4:
	bl	_corgi_ssp_ads7846_get
	mov	x21, x0
LBB0_5:
	cbz	w22, LBB0_9
; %bb.6:
Lloh0:
	adrp	x8, _ADSCTRL_PD0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADSCTRL_PD0@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ADSCTRL_PD1@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ADSCTRL_PD1@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _ADSCTRL_ADR_SH@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ADSCTRL_ADR_SH@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w9, w20, w9
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _ADSCTRL_STS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ADSCTRL_STS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w20, w8, w9
	mov	x0, x20
	bl	_corgi_ssp_ads7846_put
	bl	_corgi_ssp_ads7846_get
	cbz	x19, LBB0_8
; %bb.7:
	bl	_CCNT
	mov	x0, x20
	bl	_corgi_ssp_ads7846_put
	mov	x0, #0
	bl	_PMNC_SET
	b	LBB0_9
LBB0_8:
	mov	x0, x20
	bl	_corgi_ssp_ads7846_put
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ADSCTRL_PD0,4,2                ; @ADSCTRL_PD0
	.comm	_ADSCTRL_PD1,4,2                ; @ADSCTRL_PD1
	.comm	_ADSCTRL_ADR_SH,4,2             ; @ADSCTRL_ADR_SH
	.comm	_ADSCTRL_STS,4,2                ; @ADSCTRL_STS
	.no_dead_strip	_sync_receive_data_send_cmd
.subsections_via_symbols
