	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bu21029_touch_report
_bu21029_touch_report:                  ## @bu21029_touch_report
	.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	%rsi, %rbx
	movq	%rdi, %r15
	movl	4(%rdi), %edi
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_input_abs_get_max
	movl	%eax, %r14d
	movl	16(%rbx), %eax
	shll	$4, %eax
	movl	20(%rbx), %ecx
	sarl	$4, %ecx
	orl	%eax, %ecx
	je	LBB0_3
## %bb.1:
	movl	24(%rbx), %edx
	shll	$4, %edx
	movl	28(%rbx), %eax
	sarl	$4, %eax
	orl	%edx, %eax
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %edx
	movl	4(%rbx), %r12d
	shll	$4, %edx
	sarl	$4, %r12d
	orl	%edx, %r12d
	movl	8(%rbx), %r13d
	movl	12(%rbx), %ebx
	subl	%ecx, %eax
	imull	%r12d, %eax
	imull	(%r15), %eax
	cltd
	idivl	%ecx
	movq	_SCALE_12BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_DIV_ROUND_CLOSEST
	subl	%eax, %r14d
	jge	LBB0_4
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	shll	$4, %r13d
	sarl	$4, %ebx
	orl	%r13d, %ebx
	movl	4(%r15), %edi
	leaq	8(%r15), %rsi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	callq	_touchscreen_report_pos
	movl	4(%r15), %edi
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	callq	_input_report_abs
	movl	4(%r15), %edi
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_input_report_key
	movl	4(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ABS_PRESSURE,4,2               ## @ABS_PRESSURE
	.comm	_SCALE_12BIT,4,2                ## @SCALE_12BIT
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.no_dead_strip	_bu21029_touch_report
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bu21029_touch_report
_bu21029_touch_report:                  ; @bu21029_touch_report
	.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	x22, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x23, _ABS_PRESSURE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ABS_PRESSURE@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_input_abs_get_max
	ldp	w8, w9, [x22, #16]
	asr	w9, w9, #4
	orr	w8, w9, w8, lsl #4
	ldp	w9, w10, [x22, #24]
	asr	w10, w10, #4
	orr	w9, w10, w9, lsl #4
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	b.eq	LBB0_2
; %bb.1:
	mov	x20, x0
	ldp	w10, w11, [x22]
	asr	w11, w11, #4
	orr	w21, w11, w10, lsl #4
	ldp	w24, w22, [x22, #8]
	sub	w9, w9, w8
	mul	w9, w9, w21
	ldr	w10, [x19]
	mul	w9, w9, w10
	sdiv	w0, w9, w8
Lloh2:
	adrp	x8, _SCALE_12BIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SCALE_12BIT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_DIV_ROUND_CLOSEST
	subs	w20, w20, w0
	b.ge	LBB0_3
LBB0_2:
	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
LBB0_3:
	asr	w8, w22, #4
	orr	w3, w8, w24, lsl #4
	ldr	w0, [x19, #4]
	add	x1, x19, #8
	mov	x2, x21
	mov	w4, #0
	bl	_touchscreen_report_pos
	ldr	w0, [x19, #4]
	ldr	w1, [x23]
	mov	x2, x20
	bl	_input_report_abs
	ldr	w0, [x19, #4]
Lloh5:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_input_report_key
	ldr	w0, [x19, #4]
	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
	b	_input_sync
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ABS_PRESSURE,4,2               ; @ABS_PRESSURE
	.comm	_SCALE_12BIT,4,2                ; @SCALE_12BIT
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.no_dead_strip	_bu21029_touch_report
.subsections_via_symbols
