	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxd2880_spi_read_ts_buffer_info
_cxd2880_spi_read_ts_buffer_info:       ## @cxd2880_spi_read_ts_buffer_info
	.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	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	$32, -36(%rbp)
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.3:
	leaq	-36(%rbp), %rsi
	leaq	-32(%rbp), %rcx
	movl	$1, %edx
	movl	$8, %r8d
	callq	_spi_write_then_read
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
LBB0_5:
	movl	-32(%rbp), %eax
	movl	%eax, %ecx
	shrl	$7, %ecx
	andl	$1, %ecx
	movl	%ecx, (%rbx)
	movl	%eax, %ecx
	shrl	$6, %ecx
	andl	$1, %ecx
	movl	%ecx, 4(%rbx)
	movl	%eax, %ecx
	shrl	$5, %ecx
	andl	$1, %ecx
	movl	%ecx, 8(%rbx)
	movl	%eax, %ecx
	shrl	$4, %ecx
	andl	$1, %ecx
	movl	%ecx, 12(%rbx)
	movl	%eax, %ecx
	shrl	$3, %ecx
	andl	$1, %ecx
	movl	%ecx, 16(%rbx)
	andl	$7, %eax
	shll	$8, %eax
	orl	-28(%rbp), %eax
	movl	%eax, 20(%rbx)
	jmp	LBB0_6
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid arg\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"spi_write_then_read failed\n"

	.no_dead_strip	_cxd2880_spi_read_ts_buffer_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function cxd2880_spi_read_ts_buffer_info
lCPI0_0:
	.long	4294967289                      ; 0xfffffff9
	.long	4294967290                      ; 0xfffffffa
	.long	4294967291                      ; 0xfffffffb
	.long	4294967292                      ; 0xfffffffc
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_cxd2880_spi_read_ts_buffer_info:       ; @cxd2880_spi_read_ts_buffer_info
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	mov	w8, #32
	str	w8, [sp, #12]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_5
; %bb.2:
	add	x1, sp, #12
	add	x3, sp, #16
	mov	w2, #1
	mov	w4, #8
	bl	_spi_write_then_read
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
LBB0_4:
	ldp	w8, w9, [sp, #16]
	dup.4s	v0, w8
Lloh5:
	adrp	x10, lCPI0_0@PAGE
Lloh6:
	ldr	q1, [x10, lCPI0_0@PAGEOFF]
	ushl.4s	v0, v0, v1
	movi.4s	v1, #1
	and.16b	v0, v0, v1
	str	q0, [x19]
	ubfx	w10, w8, #3, #1
	ubfiz	w8, w8, #8, #3
	orr	w8, w9, w8
	stp	w10, w8, [x19, #16]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	ldr	x8, [sp, #24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid arg\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"spi_write_then_read failed\n"

	.no_dead_strip	_cxd2880_spi_read_ts_buffer_info
.subsections_via_symbols
