	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mediatek_gpio_irq_unmask
_mediatek_gpio_irq_unmask:              ## @mediatek_gpio_irq_unmask
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %rdi
	callq	_to_mediatek_gpio
	movq	%rax, %rbx
	movl	(%r14), %r12d
	leaq	16(%rax), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	_GPIO_REG_REDGE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_mtk_gpio_r32
	movl	%eax, %r15d
	movq	_GPIO_REG_FEDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mtk_gpio_r32
	movl	%eax, %r14d
	movq	_GPIO_REG_HLVL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mtk_gpio_r32
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_GPIO_REG_LLVL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mtk_gpio_r32
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%r13), %r13d
	movl	%r12d, %edi
	callq	_BIT
	andl	(%rbx), %eax
	orl	%eax, %r15d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	callq	_mtk_gpio_w32
	movq	_GPIO_REG_FEDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r12d, %edi
	callq	_BIT
	andl	4(%rbx), %eax
	orl	%eax, %r14d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_mtk_gpio_w32
	movq	_GPIO_REG_HLVL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r12d, %edi
	callq	_BIT
	andl	8(%rbx), %eax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	orl	%eax, %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_mtk_gpio_w32
	movq	_GPIO_REG_LLVL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r12d, %edi
	callq	_BIT
	andl	12(%rbx), %eax
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	orl	%eax, %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_mtk_gpio_w32
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO_REG_REDGE,4,2             ## @GPIO_REG_REDGE
	.comm	_GPIO_REG_FEDGE,4,2             ## @GPIO_REG_FEDGE
	.comm	_GPIO_REG_HLVL,4,2              ## @GPIO_REG_HLVL
	.comm	_GPIO_REG_LLVL,4,2              ## @GPIO_REG_LLVL
	.no_dead_strip	_mediatek_gpio_irq_unmask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mediatek_gpio_irq_unmask
_mediatek_gpio_irq_unmask:              ; @mediatek_gpio_irq_unmask
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_irq_data_get_irq_chip_data
	bl	_to_mediatek_gpio
	mov	x20, x0
	ldr	w21, [x19]
	add	x19, x0, #16
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x26, _GPIO_REG_REDGE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _GPIO_REG_REDGE@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x20
	bl	_mtk_gpio_r32
	mov	x22, x0
Lloh2:
	adrp	x27, _GPIO_REG_FEDGE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _GPIO_REG_FEDGE@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x0, x20
	bl	_mtk_gpio_r32
	mov	x23, x0
Lloh4:
	adrp	x28, _GPIO_REG_HLVL@GOTPAGE
Lloh5:
	ldr	x28, [x28, _GPIO_REG_HLVL@GOTPAGEOFF]
	ldr	w1, [x28]
	mov	x0, x20
	bl	_mtk_gpio_r32
	mov	x24, x0
Lloh6:
	adrp	x8, _GPIO_REG_LLVL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GPIO_REG_LLVL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mtk_gpio_r32
	mov	x25, x0
	ldr	w26, [x26]
	mov	x0, x21
	bl	_BIT
	ldr	w8, [x20]
	and	w8, w8, w0
	orr	w2, w8, w22
	mov	x0, x20
	mov	x1, x26
	bl	_mtk_gpio_w32
	ldr	w22, [x27]
	mov	x0, x21
	bl	_BIT
	ldr	w8, [x20, #4]
	and	w8, w8, w0
	orr	w2, w8, w23
	mov	x0, x20
	mov	x1, x22
	bl	_mtk_gpio_w32
	ldr	w22, [x28]
	mov	x0, x21
	bl	_BIT
	ldr	w8, [x20, #8]
	and	w8, w8, w0
	orr	w2, w8, w24
	mov	x0, x20
	mov	x1, x22
	bl	_mtk_gpio_w32
Lloh9:
	adrp	x8, _GPIO_REG_LLVL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GPIO_REG_LLVL@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_BIT
	ldr	w8, [x20, #12]
	and	w8, w8, w0
	orr	w2, w8, w25
	mov	x0, x20
	mov	x1, x22
	bl	_mtk_gpio_w32
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO_REG_REDGE,4,2             ; @GPIO_REG_REDGE
	.comm	_GPIO_REG_FEDGE,4,2             ; @GPIO_REG_FEDGE
	.comm	_GPIO_REG_HLVL,4,2              ; @GPIO_REG_HLVL
	.comm	_GPIO_REG_LLVL,4,2              ; @GPIO_REG_LLVL
	.no_dead_strip	_mediatek_gpio_irq_unmask
.subsections_via_symbols
