	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asic3_irq_demux
_asic3_irq_demux:                       ## @asic3_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	$40, %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, %r14
	movq	%rbx, %rdi
	callq	_irq_desc_get_irq_data
	movq	(%rax), %rcx
	movq	%rax, %rdi
	callq	*(%rcx)
	movq	_MAX_ASIC_ISR_LOOPS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	%r14, %rax
	addq	$20, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	incl	%ebx
	movq	_MAX_ASIC_ISR_LOOPS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jge	LBB0_22
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
                                        ##     Child Loop BB0_17 Depth 2
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_raw_spin_lock_irqsave
	movq	_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_P_INT_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ASIC3_OFFSET
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_asic3_read_register
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_raw_spin_unlock_irqrestore
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	testl	$1023, %r12d                    ## imm = 0x3FF
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	_ASIC3_NUM_GPIO_BANKS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=2
	incq	%r12
	movq	_ASIC3_NUM_GPIO_BANKS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r12
	jge	LBB0_15
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	btl	%r12d, %eax
	jae	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	_ASIC3_GPIO_A_BASE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	_ASIC3_GPIO_BASE_INCR@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movslq	%r12d, %r13
	imulq	%rcx, %r13
	addq	%rax, %r13
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_raw_spin_lock_irqsave
	movq	_ASIC3_GPIO_INT_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r13, %rsi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_asic3_read_register
	movq	%rax, %rbx
	movq	_ASIC3_GPIO_INT_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	addq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_asic3_write_register
	movq	%r15, %rdi
	callq	_raw_spin_unlock_irqrestore
	movq	_ASIC3_GPIOS_PER_BANK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%edi, %edi
	jle	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=3
	incl	%r14d
	movq	_ASIC3_GPIOS_PER_BANK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	%edi, %r14d
	jge	LBB0_14
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	$1, %r15d
	movl	%r14d, %ecx
	shll	%cl, %r15d
	movslq	%r15d, %rax
	testq	%rbx, %rax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=3
	imull	%r12d, %edi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	addl	(%r13), %edi
	addl	%r14d, %edi
	callq	_generic_handle_irq
	movq	8(%r13), %rax
	testl	%r15d, (%rax,%r12,4)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=3
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_asic3_irq_flip_edge
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_ASIC3_NUM_GPIOS@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	_ASIC3_NR_IRQS@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	cmpl	%eax, %ecx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jge	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edx
	subl	%ecx, %edx
	addb	$4, %dl
	movzbl	%dl, %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	btl	%ecx, %edx
	jae	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	movl	(%r14), %edi
	addl	%ebx, %edi
	callq	_generic_handle_irq
	movl	(%r12), %eax
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=2
	incl	%ebx
	cmpl	%eax, %ebx
	jge	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=2
	movl	(%r15), %ecx
	jmp	LBB0_17
LBB0_1:
	xorl	%ebx, %ebx
LBB0_22:
	cmpl	%eax, %ebx
	jge	LBB0_24
LBB0_23:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_MAX_ASIC_ISR_LOOPS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jl	LBB0_23
LBB0_24:
	movl	16(%r14), %edi
	leaq	L_.str(%rip), %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_ASIC_ISR_LOOPS,4,2         ## @MAX_ASIC_ISR_LOOPS
	.comm	_INTR,4,2                       ## @INTR
	.comm	_P_INT_STAT,4,2                 ## @P_INT_STAT
	.comm	_ASIC3_NUM_GPIO_BANKS,4,2       ## @ASIC3_NUM_GPIO_BANKS
	.comm	_ASIC3_GPIO_A_BASE,4,2          ## @ASIC3_GPIO_A_BASE
	.comm	_ASIC3_GPIO_BASE_INCR,4,2       ## @ASIC3_GPIO_BASE_INCR
	.comm	_ASIC3_GPIO_INT_STATUS,8,3      ## @ASIC3_GPIO_INT_STATUS
	.comm	_ASIC3_GPIOS_PER_BANK,4,2       ## @ASIC3_GPIOS_PER_BANK
	.comm	_ASIC3_NUM_GPIOS,4,2            ## @ASIC3_NUM_GPIOS
	.comm	_ASIC3_NR_IRQS,4,2              ## @ASIC3_NR_IRQS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"interrupt processing overrun\n"

	.no_dead_strip	_asic3_irq_demux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asic3_irq_demux
_asic3_irq_demux:                       ; @asic3_irq_demux
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x0
	bl	_irq_desc_get_handler_data
	mov	x19, x0
	mov	x0, x20
	bl	_irq_desc_get_irq_data
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
Lloh0:
	adrp	x8, _MAX_ASIC_ISR_LOOPS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_ASIC_ISR_LOOPS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.1:
	mov	w22, #0
Lloh3:
	adrp	x26, _ASIC3_GPIOS_PER_BANK@GOTPAGE
Lloh4:
	ldr	x26, [x26, _ASIC3_GPIOS_PER_BANK@GOTPAGEOFF]
	add	x20, x19, #20
	mov	w25, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w22, [sp, #12]                  ; 4-byte Folded Reload
	add	w22, w22, #1
Lloh5:
	adrp	x8, _MAX_ASIC_ISR_LOOPS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX_ASIC_ISR_LOOPS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ge	LBB0_21
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
                                        ;     Child Loop BB0_16 Depth 2
	mov	x0, x20
	bl	_raw_spin_lock_irqsave
Lloh8:
	adrp	x8, _INTR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INTR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _P_INT_STAT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _P_INT_STAT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_ASIC3_OFFSET
	mov	x1, x0
	mov	x0, x19
	bl	_asic3_read_register
	mov	x21, x0
	mov	x0, x20
	bl	_raw_spin_unlock_irqrestore
	tst	w21, #0x3ff
	b.eq	LBB0_23
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w22, [sp, #12]                  ; 4-byte Folded Spill
Lloh14:
	adrp	x8, _ASIC3_NUM_GPIO_BANKS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ASIC3_NUM_GPIO_BANKS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x27, x27, #1
Lloh17:
	adrp	x8, _ASIC3_NUM_GPIO_BANKS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ASIC3_NUM_GPIO_BANKS@GOTPAGEOFF]
Lloh19:
	ldrsw	x8, [x8]
	cmp	x27, x8
	b.ge	LBB0_14
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
	lsr	w8, w21, w27
	tbz	w8, #0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
Lloh20:
	adrp	x8, _ASIC3_GPIO_A_BASE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ASIC3_GPIO_A_BASE@GOTPAGEOFF]
Lloh22:
	ldrsw	x8, [x8]
Lloh23:
	adrp	x9, _ASIC3_GPIO_BASE_INCR@GOTPAGE
Lloh24:
	ldr	x9, [x9, _ASIC3_GPIO_BASE_INCR@GOTPAGEOFF]
Lloh25:
	ldrsw	x9, [x9]
	mov	x10, x27
	sxtw	x10, w10
	madd	x22, x9, x10, x8
	mov	x0, x20
	bl	_raw_spin_lock_irqsave
Lloh26:
	adrp	x24, _ASIC3_GPIO_INT_STATUS@GOTPAGE
Lloh27:
	ldr	x24, [x24, _ASIC3_GPIO_INT_STATUS@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x1, x8, x22
	mov	x0, x19
	bl	_asic3_read_register
	mov	x23, x0
	ldr	x8, [x24]
	add	x1, x8, x22
	mov	x0, x19
	mov	w2, #0
	bl	_asic3_write_register
	mov	x0, x20
	bl	_raw_spin_unlock_irqrestore
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	w28, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=3
	add	w28, w28, #1
	ldr	w8, [x26]
	cmp	w28, w8
	b.ge	LBB0_6
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	lsl	w24, w25, w28
	sxtw	x9, w24
	tst	x9, x23
	b.eq	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=3
	ldr	w9, [x19]
	madd	w8, w27, w8, w9
	add	w0, w28, w8
	bl	_generic_handle_irq
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x27, lsl #2]
	tst	w8, w24
	b.eq	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=3
	mov	x0, x19
	mov	x1, x22
	mov	x2, x24
	bl	_asic3_irq_flip_edge
	b	LBB0_10
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh28:
	adrp	x23, _ASIC3_NUM_GPIOS@GOTPAGE
Lloh29:
	ldr	x23, [x23, _ASIC3_NUM_GPIOS@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh30:
	adrp	x24, _ASIC3_NR_IRQS@GOTPAGE
Lloh31:
	ldr	x24, [x24, _ASIC3_NR_IRQS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w9, w8
	b.ge	LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x9
LBB0_16:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w9, w22, w9
	add	w9, w9, #4
	lsr	w9, w21, w9
	tbz	w9, #0, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	w8, [x19]
	add	w0, w22, w8
	bl	_generic_handle_irq
	ldr	w8, [x24]
LBB0_18:                                ;   in Loop: Header=BB0_16 Depth=2
	add	w22, w22, #1
	cmp	w22, w8
	b.ge	LBB0_2
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	w9, [x23]
	b	LBB0_16
LBB0_20:
	mov	w22, #0
LBB0_21:
	cmp	w22, w8
	b.ge	LBB0_24
LBB0_22:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_23:
Lloh32:
	adrp	x8, _MAX_ASIC_ISR_LOOPS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MAX_ASIC_ISR_LOOPS@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	cmp	w22, w8
	b.lt	LBB0_22
LBB0_24:
	ldr	w0, [x19, #16]
Lloh35:
	adrp	x1, l_.str@PAGE
Lloh36:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_dev_err
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_ASIC_ISR_LOOPS,4,2         ; @MAX_ASIC_ISR_LOOPS
	.comm	_INTR,4,2                       ; @INTR
	.comm	_P_INT_STAT,4,2                 ; @P_INT_STAT
	.comm	_ASIC3_NUM_GPIO_BANKS,4,2       ; @ASIC3_NUM_GPIO_BANKS
	.comm	_ASIC3_GPIO_A_BASE,4,2          ; @ASIC3_GPIO_A_BASE
	.comm	_ASIC3_GPIO_BASE_INCR,4,2       ; @ASIC3_GPIO_BASE_INCR
	.comm	_ASIC3_GPIO_INT_STATUS,8,3      ; @ASIC3_GPIO_INT_STATUS
	.comm	_ASIC3_GPIOS_PER_BANK,4,2       ; @ASIC3_GPIOS_PER_BANK
	.comm	_ASIC3_NUM_GPIOS,4,2            ; @ASIC3_NUM_GPIOS
	.comm	_ASIC3_NR_IRQS,4,2              ; @ASIC3_NR_IRQS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"interrupt processing overrun\n"

	.no_dead_strip	_asic3_irq_demux
.subsections_via_symbols
