	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mips_cpu_intc_map
_mips_cpu_intc_map:                     ## @mips_cpu_intc_map
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	_cpu_has_mipsmt@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_cpu_has_vint@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_plat_irq_dispatch@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_set_vi_handler
LBB0_2:
	movq	_mips_cpu_irq_controller@GOTPCREL(%rip), %rsi
	movq	%rsi, %rax
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	movq	_mips_mt_cpu_irq_controller@GOTPCREL(%rip), %rax
LBB0_4:
	cmpl	$2, %ebx
	cmovlq	%rax, %rsi
	movq	_handle_percpu_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	callq	_irq_set_chip_and_handler
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu_has_mipsmt,8,3             ## @cpu_has_mipsmt
	.comm	_mips_mt_cpu_irq_controller,4,2 ## @mips_mt_cpu_irq_controller
	.comm	_mips_cpu_irq_controller,4,2    ## @mips_cpu_irq_controller
	.comm	_cpu_has_vint,8,3               ## @cpu_has_vint
	.comm	_plat_irq_dispatch,4,2          ## @plat_irq_dispatch
	.comm	_handle_percpu_irq,4,2          ## @handle_percpu_irq
	.no_dead_strip	_mips_cpu_intc_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mips_cpu_intc_map
_mips_cpu_intc_map:                     ; @mips_cpu_intc_map
	.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	x20, x2
	mov	x19, x1
Lloh0:
	adrp	x8, _cpu_has_mipsmt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cpu_has_mipsmt@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x8, _cpu_has_vint@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cpu_has_vint@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _plat_irq_dispatch@GOTPAGE
Lloh7:
	ldr	x8, [x8, _plat_irq_dispatch@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_set_vi_handler
LBB0_2:
	cmp	x21, #0
	ccmp	w20, #2, #0, ne
Lloh9:
	adrp	x8, _mips_cpu_irq_controller@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mips_cpu_irq_controller@GOTPAGEOFF]
Lloh11:
	adrp	x9, _mips_mt_cpu_irq_controller@GOTPAGE
Lloh12:
	ldr	x9, [x9, _mips_mt_cpu_irq_controller@GOTPAGEOFF]
	csel	x1, x9, x8, lt
Lloh13:
	adrp	x8, _handle_percpu_irq@GOTPAGE
Lloh14:
	ldr	x8, [x8, _handle_percpu_irq@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_irq_set_chip_and_handler
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu_has_mipsmt,8,3             ; @cpu_has_mipsmt
	.comm	_mips_mt_cpu_irq_controller,4,2 ; @mips_mt_cpu_irq_controller
	.comm	_mips_cpu_irq_controller,4,2    ; @mips_cpu_irq_controller
	.comm	_cpu_has_vint,8,3               ; @cpu_has_vint
	.comm	_plat_irq_dispatch,4,2          ; @plat_irq_dispatch
	.comm	_handle_percpu_irq,4,2          ; @handle_percpu_irq
	.no_dead_strip	_mips_cpu_intc_map
.subsections_via_symbols
