	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function demux_irqs
_demux_irqs:                            ## @demux_irqs
	.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
	movq	%rsi, %r15
	movl	%edi, %r14d
	movq	%rsi, %rdi
	callq	_get_irq_desc_data
	movq	%rax, %r12
	movq	(%r15), %rax
	movl	%r14d, %edi
	callq	*16(%rax)
	movq	(%r15), %rax
	movl	%r14d, %edi
	callq	*8(%rax)
	movq	_S6_REG_GPIO@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	xorl	%edi, %edi
	callq	_S6_GPIO_BANK
	addq	%rax, %rbx
	movq	_S6_GPIO_MIS@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_readb
	movl	%eax, %ebx
	andl	(%r12), %ebx
	je	LBB0_3
## %bb.1:
	movq	_IRQ_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	decl	%r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	bsfl	%ebx, %eax
	addl	%eax, %r12d
	incl	%r12d
	movl	%eax, %ecx
	incl	%ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %ebx
	movl	%r12d, %edi
	callq	_generic_handle_irq
	testl	%ebx, %ebx
	jne	LBB0_2
LBB0_3:
	movq	(%r15), %rax
	movl	%r14d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*(%rax)                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_S6_REG_GPIO,8,3                ## @S6_REG_GPIO
	.comm	_S6_GPIO_MIS,8,3                ## @S6_GPIO_MIS
	.comm	_IRQ_BASE,4,2                   ## @IRQ_BASE
	.no_dead_strip	_demux_irqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function demux_irqs
_demux_irqs:                            ; @demux_irqs
	.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	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_get_irq_desc_data
	mov	x21, x0
	ldr	x8, [x20]
	ldr	x8, [x8, #16]
	mov	x0, x19
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
Lloh0:
	adrp	x8, _S6_REG_GPIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S6_REG_GPIO@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	mov	w0, #0
	bl	_S6_GPIO_BANK
Lloh3:
	adrp	x8, _S6_GPIO_MIS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _S6_GPIO_MIS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x9, x0, x22
	add	x0, x9, x8
	bl	_readb
	ldr	w8, [x21]
	ands	w22, w8, w0
	b.eq	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _IRQ_BASE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQ_BASE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	sub	w21, w8, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	rbit	w8, w22
	clz	w8, w8
	add	w8, w8, #1
	add	w21, w8, w21
	asr	w22, w22, w8
	mov	x0, x21
	bl	_generic_handle_irq
	cbnz	w22, LBB0_2
LBB0_3:
	ldr	x8, [x20]
	ldr	x1, [x8]
	mov	x0, x19
	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
	br	x1
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_S6_REG_GPIO,8,3                ; @S6_REG_GPIO
	.comm	_S6_GPIO_MIS,8,3                ; @S6_GPIO_MIS
	.comm	_IRQ_BASE,4,2                   ; @IRQ_BASE
	.no_dead_strip	_demux_irqs
.subsections_via_symbols
