	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmfx_pinctrl_irq_bus_sync_unlock
_stmfx_pinctrl_irq_bus_sync_unlock:     ## @stmfx_pinctrl_irq_bus_sync_unlock
	.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	%rdi, %r15
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_gpiochip_get_data
	movq	%rax, %rbx
	movl	(%r15), %edi
	callq	_get_reg
	movq	%rax, %r14
	movl	(%r15), %edi
	callq	_get_mask
	movq	%rax, %r13
	movq	(%rbx), %rax
	testq	%r13, (%rax,%r14,8)
	je	LBB0_4
## %bb.1:
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_stmfx_gpio_get
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	notq	%r13
	movq	8(%rbx), %rax
	andq	%r13, (%rax,%r14,8)
	jmp	LBB0_4
LBB0_3:
	movq	8(%rbx), %rax
	orq	%r13, (%rax,%r14,8)
LBB0_4:
	movq	16(%rbx), %rdx
	movq	40(%rbx), %rax
	movl	(%rax), %edi
	movq	_STMFX_REG_IRQ_GPI_EVT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NR_GPIO_REGS@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	callq	_regmap_bulk_write
	movq	8(%rbx), %rdx
	movq	40(%rbx), %rax
	movl	(%rax), %edi
	movq	_STMFX_REG_IRQ_GPI_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	callq	_regmap_bulk_write
	movq	24(%rbx), %rdx
	movq	40(%rbx), %rax
	movl	(%rax), %edi
	movq	_STMFX_REG_IRQ_GPI_SRC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	callq	_regmap_bulk_write
	addq	$32, %rbx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STMFX_REG_IRQ_GPI_EVT,4,2      ## @STMFX_REG_IRQ_GPI_EVT
	.comm	_NR_GPIO_REGS,4,2               ## @NR_GPIO_REGS
	.comm	_STMFX_REG_IRQ_GPI_TYPE,4,2     ## @STMFX_REG_IRQ_GPI_TYPE
	.comm	_STMFX_REG_IRQ_GPI_SRC,4,2      ## @STMFX_REG_IRQ_GPI_SRC
	.no_dead_strip	_stmfx_pinctrl_irq_bus_sync_unlock
.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_bus_sync_unlock
_stmfx_pinctrl_irq_bus_sync_unlock:     ; @stmfx_pinctrl_irq_bus_sync_unlock
	.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	x20, x0
	bl	_irq_data_get_irq_chip_data
	mov	x21, x0
	bl	_gpiochip_get_data
	mov	x19, x0
	ldr	w0, [x20]
	bl	_get_reg
	mov	x22, x0
	ldr	w0, [x20]
	bl	_get_mask
	ldr	x8, [x19]
	ldr	x8, [x8, x22, lsl #3]
	tst	x8, x0
	b.eq	LBB0_5
; %bb.1:
	mov	x23, x0
	ldr	w1, [x20]
	mov	x0, x21
	bl	_stmfx_gpio_get
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x19, #8]
	lsl	x9, x22, #3
	ldr	x10, [x8, x9]
	bic	x10, x10, x23
	b	LBB0_4
LBB0_3:
	ldr	x8, [x19, #8]
	lsl	x9, x22, #3
	ldr	x10, [x8, x9]
	orr	x10, x10, x23
LBB0_4:
	str	x10, [x8, x9]
LBB0_5:
	ldr	x8, [x19, #40]
Lloh0:
	adrp	x9, _STMFX_REG_IRQ_GPI_EVT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STMFX_REG_IRQ_GPI_EVT@GOTPAGEOFF]
	ldr	w0, [x8]
Lloh2:
	ldr	w1, [x9]
	ldr	x2, [x19, #16]
Lloh3:
	adrp	x20, _NR_GPIO_REGS@GOTPAGE
Lloh4:
	ldr	x20, [x20, _NR_GPIO_REGS@GOTPAGEOFF]
	ldr	w3, [x20]
	bl	_regmap_bulk_write
	ldr	x8, [x19, #40]
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _STMFX_REG_IRQ_GPI_TYPE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STMFX_REG_IRQ_GPI_TYPE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	x2, [x19, #8]
	ldr	w3, [x20]
	bl	_regmap_bulk_write
	ldr	x8, [x19, #40]
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _STMFX_REG_IRQ_GPI_SRC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STMFX_REG_IRQ_GPI_SRC@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	x2, [x19, #24]
	ldr	w3, [x20]
	bl	_regmap_bulk_write
	add	x0, x19, #32
	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	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STMFX_REG_IRQ_GPI_EVT,4,2      ; @STMFX_REG_IRQ_GPI_EVT
	.comm	_NR_GPIO_REGS,4,2               ; @NR_GPIO_REGS
	.comm	_STMFX_REG_IRQ_GPI_TYPE,4,2     ; @STMFX_REG_IRQ_GPI_TYPE
	.comm	_STMFX_REG_IRQ_GPI_SRC,4,2      ; @STMFX_REG_IRQ_GPI_SRC
	.no_dead_strip	_stmfx_pinctrl_irq_bus_sync_unlock
.subsections_via_symbols
