	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function detect_pen_down
_detect_pen_down:                       ## @detect_pen_down
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	movl	(%rdi), %edi
	movq	_DA9034_AUTO_CTRL2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DA9034_PEN_DETECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	popq	%rbp
	jmp	_da903x_set_bits                ## TAILCALL
LBB0_2:
	popq	%rbp
	jmp	_da903x_clr_bits                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DA9034_AUTO_CTRL2,4,2          ## @DA9034_AUTO_CTRL2
	.comm	_DA9034_PEN_DETECT,4,2          ## @DA9034_PEN_DETECT
	.no_dead_strip	_detect_pen_down
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function detect_pen_down
_detect_pen_down:                       ; @detect_pen_down
	.cfi_startproc
; %bb.0:
	mov	x8, x1
	ldr	w0, [x0]
Lloh0:
	adrp	x9, _DA9034_AUTO_CTRL2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DA9034_AUTO_CTRL2@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
Lloh3:
	adrp	x9, _DA9034_PEN_DETECT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DA9034_PEN_DETECT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x9]
	cbz	w8, LBB0_2
; %bb.1:
	b	_da903x_set_bits
LBB0_2:
	b	_da903x_clr_bits
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DA9034_AUTO_CTRL2,4,2          ; @DA9034_AUTO_CTRL2
	.comm	_DA9034_PEN_DETECT,4,2          ; @DA9034_PEN_DETECT
	.no_dead_strip	_detect_pen_down
.subsections_via_symbols
