	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_apb_ictl_handler
_dw_apb_ictl_handler:                   ## @dw_apb_ictl_handler
	.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_handler_data
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_irq_desc_get_chip
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_chained_irq_enter
	cmpl	$0, (%r13)
	jle	LBB0_6
## %bb.1:
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	$32, %r12d
	cmpl	(%r13), %r12d
	jge	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_irq_get_domain_generic_chip
	movq	%rax, %rbx
	movq	_APB_INT_FINALSTATUS_L@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl_relaxed
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	bsfl	%r15d, %r14d
	movq	(%rbx), %rsi
	addq	%r14, %rsi
	movq	%r13, %rdi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_generic_handle_irq
	movl	$-2, %eax
	movl	%r14d, %ecx
	roll	%cl, %eax
	andl	%eax, %r15d
	jne	LBB0_4
	jmp	LBB0_5
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%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	_APB_INT_FINALSTATUS_L,8,3      ## @APB_INT_FINALSTATUS_L
	.no_dead_strip	_dw_apb_ictl_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_apb_ictl_handler
_dw_apb_ictl_handler:                   ; @dw_apb_ictl_handler
	.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_desc_get_handler_data
	mov	x20, x0
	mov	x0, x19
	bl	_irq_desc_get_chip
	mov	x21, x0
	mov	x1, x19
	bl	_chained_irq_enter
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w22, #0
Lloh0:
	adrp	x25, _APB_INT_FINALSTATUS_L@GOTPAGE
Lloh1:
	ldr	x25, [x25, _APB_INT_FINALSTATUS_L@GOTPAGEOFF]
	mov	w26, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w22, #32
	ldr	w8, [x20]
	cmp	w22, w8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	x0, x20
	mov	x1, x22
	bl	_irq_get_domain_generic_chip
	mov	x23, x0
	ldr	x8, [x0, #8]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_readl_relaxed
	cbz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	rbit	w8, w24
	clz	w27, w8
	ldr	x8, [x23]
	add	x1, x8, x27
	mov	x0, x20
	bl	_irq_find_mapping
	bl	_generic_handle_irq
	lsl	w8, w26, w27
	bics	w24, w24, w8
	b.ne	LBB0_5
	b	LBB0_2
LBB0_6:
	mov	x0, x21
	mov	x1, 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	_chained_irq_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_APB_INT_FINALSTATUS_L,8,3      ; @APB_INT_FINALSTATUS_L
	.no_dead_strip	_dw_apb_ictl_handler
.subsections_via_symbols
