	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmpe_init_irq_valid_mask
_stmpe_init_irq_valid_mask:             ## @stmpe_init_irq_valid_mask
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_gpiochip_get_data
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.1:
	movq	%rax, %r15
	xorl	%edi, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	movq	%r14, %rsi
	callq	_clear_bit
LBB0_3:
	movl	(%r15), %ebx
	movl	$1, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_5
## %bb.4:
	movl	$1, %edi
	movq	%r14, %rsi
	callq	_clear_bit
LBB0_5:
	movl	(%r15), %ebx
	movl	$2, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_7
## %bb.6:
	movl	$2, %edi
	movq	%r14, %rsi
	callq	_clear_bit
LBB0_7:
	movl	(%r15), %ebx
	movl	$3, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_8
## %bb.9:
	movl	$3, %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_clear_bit                      ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_stmpe_init_irq_valid_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmpe_init_irq_valid_mask
_stmpe_init_irq_valid_mask:             ; @stmpe_init_irq_valid_mask
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	bl	_gpiochip_get_data
	ldr	w21, [x0]
	cbz	w21, LBB0_9
; %bb.1:
	mov	x20, x0
	mov	w0, #0
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_3
; %bb.2:
	mov	w0, #0
	mov	x1, x19
	bl	_clear_bit
LBB0_3:
	ldr	w21, [x20]
	mov	w0, #1
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_5
; %bb.4:
	mov	w0, #1
	mov	x1, x19
	bl	_clear_bit
LBB0_5:
	ldr	w21, [x20]
	mov	w0, #2
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_7
; %bb.6:
	mov	w0, #2
	mov	x1, x19
	bl	_clear_bit
LBB0_7:
	ldr	w20, [x20]
	mov	w0, #3
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_9
; %bb.8:
	mov	w0, #3
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_clear_bit
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_stmpe_init_irq_valid_mask
.subsections_via_symbols
