	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gic_get_c0_fdc_int             ## -- Begin function gic_get_c0_fdc_int
	.p2align	4, 0x90
_gic_get_c0_fdc_int:                    ## @gic_get_c0_fdc_int
	.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	_GIC_LOCAL_INT_FDC@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_gic_local_irq_is_routable
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_gic_irq_domain@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r14), %edi
	callq	_GIC_LOCAL_TO_HWIRQ
	movl	%ebx, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_irq_create_mapping             ## TAILCALL
LBB0_1:
	movq	_cp0_fdc_irq@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	js	LBB0_2
## %bb.4:
	movq	_MIPS_CPU_IRQ_BASE@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jmp	LBB0_5
LBB0_2:
	movl	$-1, %eax
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GIC_LOCAL_INT_FDC,4,2          ## @GIC_LOCAL_INT_FDC
	.comm	_cp0_fdc_irq,8,3                ## @cp0_fdc_irq
	.comm	_MIPS_CPU_IRQ_BASE,4,2          ## @MIPS_CPU_IRQ_BASE
	.comm	_gic_irq_domain,4,2             ## @gic_irq_domain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gic_get_c0_fdc_int             ; -- Begin function gic_get_c0_fdc_int
	.p2align	2
_gic_get_c0_fdc_int:                    ; @gic_get_c0_fdc_int
	.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
Lloh0:
	adrp	x20, _GIC_LOCAL_INT_FDC@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GIC_LOCAL_INT_FDC@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_gic_local_irq_is_routable
	cbz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _gic_irq_domain@GOTPAGE
Lloh3:
	ldr	x8, [x8, _gic_irq_domain@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
	ldr	w0, [x20]
	bl	_GIC_LOCAL_TO_HWIRQ
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_irq_create_mapping
LBB0_2:
Lloh5:
	adrp	x8, _cp0_fdc_irq@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cp0_fdc_irq@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	tbnz	x8, #63, LBB0_4
; %bb.3:
Lloh8:
	adrp	x9, _MIPS_CPU_IRQ_BASE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MIPS_CPU_IRQ_BASE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	add	w0, w9, w8
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GIC_LOCAL_INT_FDC,4,2          ; @GIC_LOCAL_INT_FDC
	.comm	_cp0_fdc_irq,8,3                ; @cp0_fdc_irq
	.comm	_MIPS_CPU_IRQ_BASE,4,2          ; @MIPS_CPU_IRQ_BASE
	.comm	_gic_irq_domain,4,2             ; @gic_irq_domain
.subsections_via_symbols
