	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc8xxx_gpio_irq_cascade
_mpc8xxx_gpio_irq_cascade:              ## @mpc8xxx_gpio_irq_cascade
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_irq_desc_get_handler_data
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_irq_desc_get_chip
	movq	%rax, %r14
	movq	_GPIO_IER@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	*16(%rbx)
	movl	%eax, %r12d
	movq	_GPIO_IMR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	*16(%rbx)
	andl	%r12d, %eax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %ebx
	movl	%eax, %edi
	callq	_ffs
	movl	$32, %esi
	subq	%rax, %rsi
	movl	%ebx, %edi
	callq	_irq_linear_revmap
	movl	%eax, %edi
	callq	_generic_handle_irq
LBB0_2:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO_IER,8,3                   ## @GPIO_IER
	.comm	_GPIO_IMR,8,3                   ## @GPIO_IMR
	.no_dead_strip	_mpc8xxx_gpio_irq_cascade
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpc8xxx_gpio_irq_cascade
_mpc8xxx_gpio_irq_cascade:              ; @mpc8xxx_gpio_irq_cascade
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_irq_desc_get_handler_data
	mov	x21, x0
	mov	x0, x19
	bl	_irq_desc_get_chip
	mov	x20, x0
	ldp	x9, x8, [x21, #8]
Lloh0:
	adrp	x10, _GPIO_IER@GOTPAGE
Lloh1:
	ldr	x10, [x10, _GPIO_IER@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	add	x0, x10, x9
	blr	x8
	mov	x22, x0
	ldp	x9, x8, [x21, #8]
Lloh3:
	adrp	x10, _GPIO_IMR@GOTPAGE
Lloh4:
	ldr	x10, [x10, _GPIO_IMR@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	add	x0, x10, x9
	blr	x8
	ands	w0, w0, w22
	b.eq	LBB0_2
; %bb.1:
	ldr	w21, [x21]
	bl	_ffs
	mov	w8, #32
	sub	x1, x8, x0
	mov	x0, x21
	bl	_irq_linear_revmap
	bl	_generic_handle_irq
LBB0_2:
	ldr	x1, [x20]
	cbz	x1, LBB0_4
; %bb.3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	br	x1
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO_IER,8,3                   ; @GPIO_IER
	.comm	_GPIO_IMR,8,3                   ; @GPIO_IMR
	.no_dead_strip	_mpc8xxx_gpio_irq_cascade
.subsections_via_symbols
