	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ts4800_ic_chained_handle_irq
_ts4800_ic_chained_handle_irq:          ## @ts4800_ic_chained_handle_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	%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
	movq	%rdi, %r15
	callq	_irq_desc_get_handler_data
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_irq_desc_get_chip
	movq	%rax, %r14
	movq	_IRQ_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r12), %rdi
	callq	_readw
	movl	%eax, %ebx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_chained_irq_enter
	xorl	%edi, %edi
	testl	%ebx, %ebx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_handle_bad_irq
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	___ffs
	movl	%eax, %r13d
	movl	(%r12), %edi
	movl	%eax, %esi
	callq	_irq_find_mapping
	movl	$-2, %r14d
	movl	%r13d, %ecx
	roll	%cl, %r14d
	movl	%eax, %edi
	callq	_generic_handle_irq
	andl	%r14d, %ebx
	jne	LBB0_2
LBB0_3:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_chained_irq_exit               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_STATUS,8,3                 ## @IRQ_STATUS
	.no_dead_strip	_ts4800_ic_chained_handle_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ts4800_ic_chained_handle_irq
_ts4800_ic_chained_handle_irq:          ; @ts4800_ic_chained_handle_irq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_irq_desc_get_handler_data
	mov	x21, x0
	mov	x0, x19
	bl	_irq_desc_get_chip
	mov	x20, x0
	ldr	x8, [x21, #8]
Lloh0:
	adrp	x9, _IRQ_STATUS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IRQ_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readw
	mov	x22, x0
	mov	x0, x20
	mov	x1, x19
	bl	_chained_irq_enter
	cmp	w22, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_handle_bad_irq
	b	LBB0_4
LBB0_2:
	mov	w24, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	___ffs
	mov	x23, x0
	ldr	w0, [x21]
	mov	x1, x23
	bl	_irq_find_mapping
	lsl	w8, w24, w23
	bic	w22, w22, w8
	bl	_generic_handle_irq
	cbnz	w22, LBB0_3
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_chained_irq_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_STATUS,8,3                 ; @IRQ_STATUS
	.no_dead_strip	_ts4800_ic_chained_handle_irq
.subsections_via_symbols
