	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a10_pending_irq
_a10_pending_irq:                       ## @a10_pending_irq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_SW_INT_IRQ_PENDING_REG
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_aintc_read_4
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	btl	%ebx, %eax
	jb	LBB0_28
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %edx
	movl	%ebx, %ecx
	shrl	%cl, %edx
	testb	$2, %dl
	jne	LBB0_21
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %edx
	movl	%ebx, %ecx
	shrl	%cl, %edx
	testb	$4, %dl
	jne	LBB0_26
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %edx
	movl	%ebx, %ecx
	shrl	%cl, %edx
	testb	$8, %dl
	jne	LBB0_27
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	$4, %ebx
	cmpl	$32, %ebx
	jne	LBB0_2
LBB0_7:
	movl	$1, %edi
	callq	_SW_INT_IRQ_PENDING_REG
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_aintc_read_4
	testl	%eax, %eax
	je	LBB0_14
## %bb.8:
	xorl	%ebx, %ebx
	movl	$32, %esi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	btl	%ebx, %eax
	jb	LBB0_28
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %edx
	movl	%ebx, %ecx
	shrl	%cl, %edx
	testb	$2, %dl
	jne	LBB0_21
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %edx
	movl	%ebx, %ecx
	shrl	%cl, %edx
	testb	$4, %dl
	jne	LBB0_26
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %edx
	movl	%ebx, %ecx
	shrl	%cl, %edx
	testb	$8, %dl
	jne	LBB0_27
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	addl	$4, %ebx
	cmpl	$32, %ebx
	jne	LBB0_9
LBB0_14:
	movl	$2, %edi
	callq	_SW_INT_IRQ_PENDING_REG
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_aintc_read_4
	movl	%eax, %edx
	movl	$-1, %eax
	testl	%edx, %edx
	je	LBB0_29
## %bb.15:
	xorl	%ebx, %ebx
	movl	$64, %esi
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	btl	%ebx, %edx
	jb	LBB0_28
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%edx, %edi
	movl	%ebx, %ecx
	shrl	%cl, %edi
	testb	$2, %dil
	jne	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%edx, %edi
	movl	%ebx, %ecx
	shrl	%cl, %edi
	testb	$4, %dil
	jne	LBB0_26
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%edx, %edi
	movl	%ebx, %ecx
	shrl	%cl, %edi
	testb	$8, %dil
	jne	LBB0_27
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=1
	addl	$4, %ebx
	cmpl	$32, %ebx
	jne	LBB0_16
	jmp	LBB0_29
LBB0_21:
	incl	%ebx
	jmp	LBB0_28
LBB0_26:
	addl	$2, %ebx
	jmp	LBB0_28
LBB0_27:
	addl	$3, %ebx
LBB0_28:
	addl	%ebx, %esi
	movl	%esi, %eax
LBB0_29:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_a10_pending_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a10_pending_irq
_a10_pending_irq:                       ; @a10_pending_irq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w0, #0
	bl	_SW_INT_IRQ_PENDING_REG
	mov	x1, x0
	mov	x0, x19
	bl	_aintc_read_4
	cbz	w0, LBB0_4
; %bb.1:
	mov	w8, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w9, w0, w8
	tbnz	w9, #0, LBB0_13
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w8, #1
	cmp	w8, #32
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #1
	bl	_SW_INT_IRQ_PENDING_REG
	mov	x1, x0
	mov	x0, x19
	bl	_aintc_read_4
	cbz	w0, LBB0_8
; %bb.5:
	mov	w8, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w9, w0, w8
	tbnz	w9, #0, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w8, w8, #1
	cmp	w8, #32
	b.ne	LBB0_6
LBB0_8:
	mov	w0, #2
	bl	_SW_INT_IRQ_PENDING_REG
	mov	x1, x0
	mov	x0, x19
	bl	_aintc_read_4
	cbz	w0, LBB0_12
; %bb.9:
	mov	w8, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	lsr	w9, w0, w8
	tbnz	w9, #0, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w8, w8, #1
	cmp	w8, #32
	b.ne	LBB0_10
LBB0_12:
	mov	w0, #-1
	b	LBB0_17
LBB0_13:
	mov	w9, #0
	add	w0, w8, wzr
	b	LBB0_17
LBB0_14:
	mov	w9, #32
	b	LBB0_16
LBB0_15:
	mov	w9, #64
LBB0_16:
	add	w0, w8, w9
LBB0_17:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_a10_pending_irq
.subsections_via_symbols
