	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3c_irq_demux
_s3c_irq_demux:                         ## @s3c_irq_demux
	.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, %rbx
	callq	_irq_desc_get_chip
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_irq_desc_get_chip_data
	movq	%rax, %r12
	movq	8(%rax), %r14
	movq	16(%rax), %rax
	movl	(%rax), %edi
	callq	_irq_domain_get_of_node
	xorl	%r15d, %r15d
	testq	%rax, %rax
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_chained_irq_enter
	movl	8(%r14), %edi
	callq	_readl_relaxed
	movq	%rax, %r13
	movl	4(%r14), %edi
	callq	_readl_relaxed
	movq	%rax, %rbx
	notq	%rbx
	andq	%r13, %rbx
	andq	(%r12), %rbx
	je	LBB0_3
## %bb.1:
	movb	-41(%rbp), %al                  ## 1-byte Reload
	movb	%al, %r15b
	shll	$5, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	___ffs
                                        ## kill: def $eax killed $eax def $rax
	movl	$-2, %edx
	movl	%eax, %ecx
	roll	%cl, %edx
	movslq	%edx, %r12
	movl	(%r14), %edi
	leal	(%rax,%r15), %esi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_generic_handle_irq
	andq	%r12, %rbx
	jne	LBB0_2
LBB0_3:
	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
	.no_dead_strip	_s3c_irq_demux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3c_irq_demux
_s3c_irq_demux:                         ; @s3c_irq_demux
	.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	x19, x0
	bl	_irq_desc_get_chip
	mov	x20, x0
	mov	x0, x19
	bl	_irq_desc_get_chip_data
	mov	x21, x0
	ldp	x23, x8, [x0, #8]
	ldr	w0, [x8]
	bl	_irq_domain_get_of_node
	cmp	x0, #0
	cset	w24, ne
	mov	x0, x20
	mov	x1, x19
	bl	_chained_irq_enter
	ldr	w0, [x23, #8]
	bl	_readl_relaxed
	mov	x22, x0
	ldr	w0, [x23, #4]
	bl	_readl_relaxed
	bic	x8, x22, x0
	ldr	x9, [x21]
	ands	x21, x8, x9
	b.eq	LBB0_3
; %bb.1:
	lsl	w22, w24, #5
	mov	w24, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	___ffs
	lsl	w8, w24, w0
	mvn	w8, w8
	sxtw	x8, w8
	and	x21, x21, x8
	ldr	w8, [x23]
	add	w1, w0, w22
	mov	x0, x8
	bl	_irq_find_mapping
	bl	_generic_handle_irq
	cbnz	x21, LBB0_2
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	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	_chained_irq_exit
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_s3c_irq_demux
.subsections_via_symbols
