	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3c24xx_demux_eint
_s3c24xx_demux_eint:                    ## @s3c24xx_demux_eint
	.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
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_irq_desc_get_handler_data
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_irq_desc_get_chip
	movq	8(%r13), %r14
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_chained_irq_enter
	movq	_EINTPEND_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movl	%eax, %r12d
	movq	_EINTMASK_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_readl
	notl	%eax
	andl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	andl	%eax, %r12d
	je	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	callq	___ffs
	movl	$-2, %r14d
	movl	%eax, %ecx
	roll	%cl, %r14d
	movq	(%r13), %rcx
	movl	%eax, %edx
	movl	(%rcx,%rdx,4), %edi
	subl	%r15d, %eax
	movl	%eax, %esi
	callq	_irq_linear_revmap
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_BUG_ON
	movl	%ebx, %edi
	callq	_generic_handle_irq
	andl	%r14d, %r12d
	jne	LBB0_1
LBB0_2:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_chained_irq_exit               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINTPEND_REG,8,3               ## @EINTPEND_REG
	.comm	_EINTMASK_REG,8,3               ## @EINTMASK_REG
	.no_dead_strip	_s3c24xx_demux_eint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3c24xx_demux_eint
_s3c24xx_demux_eint:                    ; @s3c24xx_demux_eint
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	bl	_irq_desc_get_handler_data
	mov	x21, x0
	mov	x0, x19
	bl	_irq_desc_get_chip
	mov	x22, x0
	ldr	x25, [x21, #8]
	mov	x1, x19
	bl	_chained_irq_enter
	ldr	x8, [x25]
Lloh0:
	adrp	x9, _EINTPEND_REG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EINTPEND_REG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x24, x0
	ldr	x8, [x25]
Lloh3:
	adrp	x9, _EINTMASK_REG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EINTMASK_REG@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	and	w8, w24, w23
	bics	w23, w8, w0
	b.eq	LBB0_3
; %bb.1:
	mov	w25, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	___ffs
	lsl	w8, w25, w0
	bic	w23, w23, w8
	ldr	x8, [x21]
	ldr	w8, [x8, w0, uxtw #2]
	sub	w1, w0, w20
	mov	x0, x8
	bl	_irq_linear_revmap
	mov	x24, x0
	cmp	w0, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x24
	bl	_generic_handle_irq
	cbnz	w23, LBB0_2
LBB0_3:
	mov	x0, x22
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_chained_irq_exit
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINTPEND_REG,8,3               ; @EINTPEND_REG
	.comm	_EINTMASK_REG,8,3               ; @EINTMASK_REG
	.no_dead_strip	_s3c24xx_demux_eint
.subsections_via_symbols
