	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sirfsoc_gpio_irq_type
_sirfsoc_gpio_irq_type:                 ## @sirfsoc_gpio_irq_type
	.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, %r12d
	movq	%rdi, %rbx
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %rdi
	callq	_gpiochip_get_data
	movq	%rax, %r15
	movl	(%rbx), %esi
	movq	%rax, %rdi
	callq	_sirfsoc_gpio_to_bank
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_sirfsoc_gpio_to_bankoff
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_SIRFSOC_GPIO_CTRL
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	%r14d, %edi
	addl	4(%r15), %edi
	callq	_readl
	movq	_SIRFSOC_GPIO_CTL_INTR_STS_MASK@GOTPCREL(%rip), %rcx
	movq	_SIRFSOC_GPIO_CTL_OUT_EN_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	addl	$-129, %r12d
	cmpl	$4, %r12d
	ja	LBB0_7
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r12,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_5:
	movq	_SIRFSOC_GPIO_CTL_INTR_HIGH_MASK@GOTPCREL(%rip), %rax
	movq	_SIRFSOC_GPIO_CTL_INTR_TYPE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %edi
	movq	_SIRFSOC_GPIO_CTL_INTR_LOW_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	jmp	LBB0_7
LBB0_6:
	movq	_SIRFSOC_GPIO_CTL_INTR_HIGH_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_SIRFSOC_GPIO_CTL_INTR_LOW_MASK@GOTPCREL(%rip), %rax
	movq	_SIRFSOC_GPIO_CTL_INTR_TYPE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %edi
	jmp	LBB0_7
LBB0_2:
	movq	_SIRFSOC_GPIO_CTL_INTR_HIGH_MASK@GOTPCREL(%rip), %rax
	movq	_SIRFSOC_GPIO_CTL_INTR_TYPE_MASK@GOTPCREL(%rip), %rcx
	orl	(%rax), %edi
	orl	(%rcx), %edi
	movq	_SIRFSOC_GPIO_CTL_INTR_LOW_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %edi
	jmp	LBB0_7
LBB0_3:
	movq	_SIRFSOC_GPIO_CTL_INTR_HIGH_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %edi
	movq	_SIRFSOC_GPIO_CTL_INTR_LOW_MASK@GOTPCREL(%rip), %rax
	movq	_SIRFSOC_GPIO_CTL_INTR_TYPE_MASK@GOTPCREL(%rip), %rcx
	orl	(%rax), %edi
	orl	(%rcx), %edi
	jmp	LBB0_7
LBB0_4:
	movq	_SIRFSOC_GPIO_CTL_INTR_HIGH_MASK@GOTPCREL(%rip), %rax
	movq	_SIRFSOC_GPIO_CTL_INTR_LOW_MASK@GOTPCREL(%rip), %rcx
	movq	_SIRFSOC_GPIO_CTL_INTR_TYPE_MASK@GOTPCREL(%rip), %rdx
	orl	(%rax), %edi
	orl	(%rcx), %edi
	orl	(%rdx), %edi
LBB0_7:
	movl	4(%r15), %esi
	addl	%r14d, %esi
	callq	_writel
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_SIRFSOC_GPIO_CTL_INTR_STS_MASK,4,2 ## @SIRFSOC_GPIO_CTL_INTR_STS_MASK
	.comm	_SIRFSOC_GPIO_CTL_OUT_EN_MASK,4,2 ## @SIRFSOC_GPIO_CTL_OUT_EN_MASK
	.comm	_SIRFSOC_GPIO_CTL_INTR_HIGH_MASK,4,2 ## @SIRFSOC_GPIO_CTL_INTR_HIGH_MASK
	.comm	_SIRFSOC_GPIO_CTL_INTR_TYPE_MASK,4,2 ## @SIRFSOC_GPIO_CTL_INTR_TYPE_MASK
	.comm	_SIRFSOC_GPIO_CTL_INTR_LOW_MASK,4,2 ## @SIRFSOC_GPIO_CTL_INTR_LOW_MASK
	.no_dead_strip	_sirfsoc_gpio_irq_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sirfsoc_gpio_irq_type
_sirfsoc_gpio_irq_type:                 ; @sirfsoc_gpio_irq_type
	.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	x21, x1
	mov	x20, x0
	bl	_irq_data_get_irq_chip_data
	bl	_gpiochip_get_data
	mov	x19, x0
	ldr	w1, [x20]
	bl	_sirfsoc_gpio_to_bank
	mov	x22, x0
	ldr	w0, [x20]
	bl	_sirfsoc_gpio_to_bankoff
	mov	x1, x0
	ldr	w0, [x22]
	bl	_SIRFSOC_GPIO_CTRL
	mov	x20, x0
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x19, #4]
	add	w0, w8, w20
	bl	_readl
Lloh0:
	adrp	x8, _SIRFSOC_GPIO_CTL_INTR_STS_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIRFSOC_GPIO_CTL_INTR_STS_MASK@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SIRFSOC_GPIO_CTL_OUT_EN_MASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SIRFSOC_GPIO_CTL_OUT_EN_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w0, w0, w8
	sub	w8, w21, #129
	cmp	w8, #4
	b.hi	LBB0_9
; %bb.1:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh8:
	adrp	x8, _SIRFSOC_GPIO_CTL_INTR_HIGH_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIRFSOC_GPIO_CTL_INTR_HIGH_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _SIRFSOC_GPIO_CTL_INTR_TYPE_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SIRFSOC_GPIO_CTL_INTR_TYPE_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w0, w8
Lloh14:
	adrp	x9, _SIRFSOC_GPIO_CTL_INTR_LOW_MASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SIRFSOC_GPIO_CTL_INTR_LOW_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w0, w8, w9
	b	LBB0_9
LBB0_3:
Lloh17:
	adrp	x8, _SIRFSOC_GPIO_CTL_INTR_HIGH_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SIRFSOC_GPIO_CTL_INTR_HIGH_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh20:
	adrp	x9, _SIRFSOC_GPIO_CTL_INTR_LOW_MASK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SIRFSOC_GPIO_CTL_INTR_LOW_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _SIRFSOC_GPIO_CTL_INTR_TYPE_MASK@GOTPAGE
Lloh24:
	ldr	x10, [x10, _SIRFSOC_GPIO_CTL_INTR_TYPE_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	orr	w9, w10, w9
	b	LBB0_5
LBB0_4:
Lloh26:
	adrp	x8, _SIRFSOC_GPIO_CTL_INTR_HIGH_MASK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SIRFSOC_GPIO_CTL_INTR_HIGH_MASK@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _SIRFSOC_GPIO_CTL_INTR_TYPE_MASK@GOTPAGE
Lloh30:
	ldr	x9, [x9, _SIRFSOC_GPIO_CTL_INTR_TYPE_MASK@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w8, w8, w9
Lloh32:
	adrp	x9,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r	w8, w8, w9
	orr	w0, w8, w10
LBB0_9:
	ldr	w8, [x19, #4]
	add	w1, w8, w20
	bl	_writel
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	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	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_SIRFSOC_GPIO_CTL_INTR_STS_MASK,4,2 ; @SIRFSOC_GPIO_CTL_INTR_STS_MASK
	.comm	_SIRFSOC_GPIO_CTL_OUT_EN_MASK,4,2 ; @SIRFSOC_GPIO_CTL_OUT_EN_MASK
	.comm	_SIRFSOC_GPIO_CTL_INTR_HIGH_MASK,4,2 ; @SIRFSOC_GPIO_CTL_INTR_HIGH_MASK
	.comm	_SIRFSOC_GPIO_CTL_INTR_TYPE_MASK,4,2 ; @SIRFSOC_GPIO_CTL_INTR_TYPE_MASK
	.comm	_SIRFSOC_GPIO_CTL_INTR_LOW_MASK,4,2 ; @SIRFSOC_GPIO_CTL_INTR_LOW_MASK
	.no_dead_strip	_sirfsoc_gpio_irq_type
.subsections_via_symbols
