	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmpe_gpio_set
_stmpe_gpio_set:                        ## @stmpe_gpio_set
	.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
	movl	%edx, %r14d
	movl	%esi, %ebx
	callq	_gpiochip_get_data
	movq	(%rax), %r12
	testl	%r14d, %r14d
	movq	_STMPE_IDX_GPSR_LSB@GOTPCREL(%rip), %r13
	movq	%r13, %rax
	cmoveq	_STMPE_IDX_GPCR_LSB@GOTPCREL(%rip), %rax
	movq	(%r12), %rcx
	movl	%ebx, %edx
	shrl	$3, %edx
	addl	(%rax), %edx
	movl	(%rcx,%rdx,4), %r15d
	andl	$7, %ebx
	movl	%ebx, %edi
	callq	_BIT
	movq	(%r12), %rcx
	movq	(%r13), %rdx
	movl	(%rcx,%rdx,4), %edx
	movq	_STMPE_IDX_GPCR_LSB@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpl	(%rcx,%rsi,4), %edx
	jne	LBB0_2
## %bb.1:
	testl	%r14d, %r14d
	movl	%eax, %ecx
	cmovel	%r14d, %ecx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_stmpe_set_bits                 ## TAILCALL
LBB0_2:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_stmpe_reg_write                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STMPE_IDX_GPSR_LSB,8,3         ## @STMPE_IDX_GPSR_LSB
	.comm	_STMPE_IDX_GPCR_LSB,8,3         ## @STMPE_IDX_GPCR_LSB
	.no_dead_strip	_stmpe_gpio_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmpe_gpio_set
_stmpe_gpio_set:                        ; @stmpe_gpio_set
	.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, x2
	mov	x22, x1
	bl	_gpiochip_get_data
	ldr	x20, [x0]
Lloh0:
	adrp	x23, _STMPE_IDX_GPSR_LSB@GOTPAGE
Lloh1:
	ldr	x23, [x23, _STMPE_IDX_GPSR_LSB@GOTPAGEOFF]
Lloh2:
	adrp	x24, _STMPE_IDX_GPCR_LSB@GOTPAGE
Lloh3:
	ldr	x24, [x24, _STMPE_IDX_GPCR_LSB@GOTPAGEOFF]
	cmp	w19, #0
	csel	x8, x24, x23, eq
	ldr	w8, [x8]
	ldr	x9, [x20]
	add	w8, w8, w22, lsr #3
	ldr	w21, [x9, w8, uxtw #2]
	and	w0, w22, #0x7
	bl	_BIT
	mov	x2, x0
	ldr	x8, [x20]
	ldr	x9, [x23]
	ldr	w9, [x8, x9, lsl #2]
	ldr	x10, [x24]
	ldr	w8, [x8, x10, lsl #2]
	cmp	w9, w8
	b.ne	LBB0_2
; %bb.1:
	cmp	w19, #0
	csel	w3, wzr, w2, eq
	mov	x0, x20
	mov	x1, 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
	b	_stmpe_set_bits
LBB0_2:
	mov	x0, x20
	mov	x1, 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
	b	_stmpe_reg_write
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_STMPE_IDX_GPSR_LSB,8,3         ; @STMPE_IDX_GPSR_LSB
	.comm	_STMPE_IDX_GPCR_LSB,8,3         ; @STMPE_IDX_GPCR_LSB
	.no_dead_strip	_stmpe_gpio_set
.subsections_via_symbols
