	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipu_irq_handler
_ipu_irq_handler:                       ## @ipu_irq_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_irq_desc_get_handler_data
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_IPU_IRQ_NR_BANKS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_9
## %bb.1:
	xorl	%r12d, %r12d
	movq	_bank_lock@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movq	_IPU_IRQ_NR_BANKS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r12
	jge	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	_irq_bank@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%r13, %rdi
	callq	_raw_spin_lock
	movl	4(%r15,%r12,8), %esi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_ipu_read_reg
	movq	%rax, %r14
	movl	(%r15,%r12,8), %esi
	movq	%rbx, %rdi
	callq	_ipu_read_reg
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_raw_spin_unlock
	andq	%r14, %rbx
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %r15d
	shll	$5, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	(%rax), %r14d
	movq	%r13, %rdi
	callq	_raw_spin_unlock
	movl	%r14d, %edi
	callq	_generic_handle_irq
	testq	%rbx, %rbx
	je	LBB0_8
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	bsfq	%rbx, %r14
	btrq	%r14, %rbx
	movq	%r13, %rdi
	callq	_raw_spin_lock
	leal	(%r15,%r14), %edi
	callq	_src2map
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%r13, %rdi
	callq	_raw_spin_unlock
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	_pr_err
	testq	%rbx, %rbx
	jne	LBB0_4
	jmp	LBB0_8
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPU_IRQ_NR_BANKS,4,2           ## @IPU_IRQ_NR_BANKS
	.comm	_irq_bank,8,3                   ## @irq_bank
	.comm	_bank_lock,4,2                  ## @bank_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IPU: Interrupt on unmapped source %u bank %d\n"

	.no_dead_strip	_ipu_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipu_irq_handler
_ipu_irq_handler:                       ; @ipu_irq_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
	bl	_irq_desc_get_handler_data
Lloh0:
	adrp	x8, _IPU_IRQ_NR_BANKS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPU_IRQ_NR_BANKS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x0
	mov	x20, #0
Lloh3:
	adrp	x26, _irq_bank@GOTPAGE
Lloh4:
	ldr	x26, [x26, _irq_bank@GOTPAGEOFF]
Lloh5:
	adrp	x21, _bank_lock@GOTPAGE
Lloh6:
	ldr	x21, [x21, _bank_lock@GOTPAGEOFF]
	mov	w27, #1
Lloh7:
	adrp	x22, l_.str@PAGE
Lloh8:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
Lloh9:
	adrp	x8, _IPU_IRQ_NR_BANKS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IPU_IRQ_NR_BANKS@GOTPAGEOFF]
Lloh11:
	ldrsw	x8, [x8]
	cmp	x20, x8
	b.ge	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x23, [x26]
	mov	x0, x21
	bl	_raw_spin_lock
	add	x24, x23, x20, lsl #3
	ldr	w1, [x24, #4]
	mov	x0, x19
	bl	_ipu_read_reg
	mov	x23, x0
	ldr	w1, [x24]
	mov	x0, x19
	bl	_ipu_read_reg
	and	x28, x0, x23
	mov	x0, x21
	bl	_raw_spin_unlock
	cbz	x28, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	w25, w20, #5
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldr	w24, [x0]
	mov	x0, x21
	bl	_raw_spin_unlock
	mov	x0, x24
	bl	_generic_handle_irq
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	lsl	x8, x27, x23
	bic	x28, x28, x8
	cbz	x28, LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	rbit	x8, x28
	clz	x23, x8
	mov	x0, x21
	bl	_raw_spin_lock
	add	w0, w25, w23
	bl	_src2map
	cbnz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x21
	bl	_raw_spin_unlock
	mov	x0, x22
	mov	x1, x23
	mov	x2, x20
	bl	_pr_err
	b	LBB0_6
LBB0_9:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IPU_IRQ_NR_BANKS,4,2           ; @IPU_IRQ_NR_BANKS
	.comm	_irq_bank,8,3                   ; @irq_bank
	.comm	_bank_lock,4,2                  ; @bank_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IPU: Interrupt on unmapped source %u bank %d\n"

	.no_dead_strip	_ipu_irq_handler
.subsections_via_symbols
