	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmfx_pinctrl_irq_toggle_trigger
_stmfx_pinctrl_irq_toggle_trigger:      ## @stmfx_pinctrl_irq_toggle_trigger
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_get_reg
	movq	%rax, %r12
	movl	%ebx, %edi
	callq	_get_mask
	movq	%rax, %r15
	movq	(%r14), %rax
	testq	%r15, (%rax,%r12,8)
	je	LBB0_2
## %bb.1:
	leaq	24(%r14), %rdi
	movl	%ebx, %esi
	callq	_stmfx_gpio_get
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	8(%r14), %rdx
	movq	(%rdx,%r12,8), %rsi
	movq	%rsi, %rdi
	andq	%r15, %rdi
	orq	%r15, %rsi
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovneq	%rdi, %rsi
	cmoveq	%r15, %rcx
	movq	%rsi, (%rdx,%r12,8)
	movq	16(%r14), %rax
	movl	(%rax), %edi
	movq	_STMFX_REG_IRQ_GPI_TYPE@GOTPCREL(%rip), %rax
	addq	(%rax), %r12
	movq	%r12, %rsi
	movq	%r15, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_write_bits              ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STMFX_REG_IRQ_GPI_TYPE,8,3     ## @STMFX_REG_IRQ_GPI_TYPE
	.no_dead_strip	_stmfx_pinctrl_irq_toggle_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmfx_pinctrl_irq_toggle_trigger
_stmfx_pinctrl_irq_toggle_trigger:      ; @stmfx_pinctrl_irq_toggle_trigger
	.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	x22, x1
	mov	x20, x0
	mov	x0, x1
	bl	_get_reg
	mov	x19, x0
	mov	x0, x22
	bl	_get_mask
	ldr	x8, [x20]
	ldr	x8, [x8, x19, lsl #3]
	tst	x8, x0
	b.eq	LBB0_3
; %bb.1:
	mov	x21, x0
	add	x0, x20, #24
	mov	x1, x22
	bl	_stmfx_gpio_get
	tbnz	w0, #31, LBB0_3
; %bb.2:
	lsl	x8, x19, #3
	ldp	x9, x10, [x20, #8]
	ldr	x11, [x9, x8]
	and	x12, x11, x21
	orr	x11, x11, x21
	cmp	w0, #0
	csel	x11, x11, x12, eq
	csel	x3, x21, xzr, eq
	str	x11, [x9, x8]
	ldr	w0, [x10]
Lloh0:
	adrp	x8, _STMFX_REG_IRQ_GPI_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STMFX_REG_IRQ_GPI_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x1, x8, x19
	mov	x2, x21
	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	_regmap_write_bits
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STMFX_REG_IRQ_GPI_TYPE,8,3     ; @STMFX_REG_IRQ_GPI_TYPE
	.no_dead_strip	_stmfx_pinctrl_irq_toggle_trigger
.subsections_via_symbols
