	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function armada_370_xp_mpic_irq_map
_armada_370_xp_mpic_irq_map:            ## @armada_370_xp_mpic_irq_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	movl	%esi, %edi
	callq	_irq_get_irq_data
	movl	%eax, %edi
	callq	_armada_370_xp_irq_mask
	movl	%ebx, %edi
	callq	_is_percpu_irq
	testq	%rax, %rax
	movq	_main_int_base@GOTPCREL(%rip), %rax
	cmoveq	_per_cpu_int_base@GOTPCREL(%rip), %rax
	movq	_ARMADA_370_XP_INT_SET_ENABLE_OFFS@GOTPCREL(%rip), %rcx
	cmoveq	_ARMADA_370_XP_INT_CLEAR_MASK_OFFS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	_IRQ_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_irq_set_status_flags
	movl	%ebx, %edi
	callq	_is_percpu_irq
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%r14d, %edi
	callq	_irq_set_percpu_devid
	movq	_handle_percpu_devid_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_armada_370_xp_irq_chip@GOTPCREL(%rip), %rsi
	movl	%r14d, %edi
	callq	_irq_set_chip_and_handler
	jmp	LBB0_3
LBB0_2:
	movq	_handle_level_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_armada_370_xp_irq_chip@GOTPCREL(%rip), %rsi
	movl	%r14d, %edi
	callq	_irq_set_chip_and_handler
	movl	%r14d, %edi
	callq	_irq_to_desc
	movl	%eax, %edi
	callq	_irq_desc_get_irq_data
	movl	%eax, %edi
	callq	_irqd_set_single_target
LBB0_3:
	movl	%r14d, %edi
	callq	_irq_set_probe
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_per_cpu_int_base,8,3           ## @per_cpu_int_base
	.comm	_ARMADA_370_XP_INT_CLEAR_MASK_OFFS,8,3 ## @ARMADA_370_XP_INT_CLEAR_MASK_OFFS
	.comm	_main_int_base,8,3              ## @main_int_base
	.comm	_ARMADA_370_XP_INT_SET_ENABLE_OFFS,8,3 ## @ARMADA_370_XP_INT_SET_ENABLE_OFFS
	.comm	_IRQ_LEVEL,4,2                  ## @IRQ_LEVEL
	.comm	_armada_370_xp_irq_chip,4,2     ## @armada_370_xp_irq_chip
	.comm	_handle_percpu_devid_irq,4,2    ## @handle_percpu_devid_irq
	.comm	_handle_level_irq,4,2           ## @handle_level_irq
	.no_dead_strip	_armada_370_xp_mpic_irq_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function armada_370_xp_mpic_irq_map
_armada_370_xp_mpic_irq_map:            ; @armada_370_xp_mpic_irq_map
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x0, x1
	bl	_irq_get_irq_data
	bl	_armada_370_xp_irq_mask
	mov	x0, x20
	bl	_is_percpu_irq
Lloh0:
	adrp	x8, _per_cpu_int_base@GOTPAGE
Lloh1:
	ldr	x8, [x8, _per_cpu_int_base@GOTPAGEOFF]
Lloh2:
	adrp	x9, _main_int_base@GOTPAGE
Lloh3:
	ldr	x9, [x9, _main_int_base@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
Lloh4:
	adrp	x9, _ARMADA_370_XP_INT_CLEAR_MASK_OFFS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ARMADA_370_XP_INT_CLEAR_MASK_OFFS@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh6:
	adrp	x10, _ARMADA_370_XP_INT_SET_ENABLE_OFFS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ARMADA_370_XP_INT_SET_ENABLE_OFFS@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
Lloh8:
	adrp	x8, _IRQ_LEVEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_LEVEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_irq_set_status_flags
	mov	x0, x20
	bl	_is_percpu_irq
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_irq_set_percpu_devid
Lloh11:
	adrp	x8, _handle_percpu_devid_irq@GOTPAGE
Lloh12:
	ldr	x8, [x8, _handle_percpu_devid_irq@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x1, _armada_370_xp_irq_chip@GOTPAGE
Lloh15:
	ldr	x1, [x1, _armada_370_xp_irq_chip@GOTPAGEOFF]
	mov	x0, x19
	bl	_irq_set_chip_and_handler
	b	LBB0_3
LBB0_2:
Lloh16:
	adrp	x8, _handle_level_irq@GOTPAGE
Lloh17:
	ldr	x8, [x8, _handle_level_irq@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x1, _armada_370_xp_irq_chip@GOTPAGE
Lloh20:
	ldr	x1, [x1, _armada_370_xp_irq_chip@GOTPAGEOFF]
	mov	x0, x19
	bl	_irq_set_chip_and_handler
	mov	x0, x19
	bl	_irq_to_desc
	bl	_irq_desc_get_irq_data
	bl	_irqd_set_single_target
LBB0_3:
	mov	x0, x19
	bl	_irq_set_probe
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_per_cpu_int_base,8,3           ; @per_cpu_int_base
	.comm	_ARMADA_370_XP_INT_CLEAR_MASK_OFFS,8,3 ; @ARMADA_370_XP_INT_CLEAR_MASK_OFFS
	.comm	_main_int_base,8,3              ; @main_int_base
	.comm	_ARMADA_370_XP_INT_SET_ENABLE_OFFS,8,3 ; @ARMADA_370_XP_INT_SET_ENABLE_OFFS
	.comm	_IRQ_LEVEL,4,2                  ; @IRQ_LEVEL
	.comm	_armada_370_xp_irq_chip,4,2     ; @armada_370_xp_irq_chip
	.comm	_handle_percpu_devid_irq,4,2    ; @handle_percpu_devid_irq
	.comm	_handle_level_irq,4,2           ; @handle_level_irq
	.no_dead_strip	_armada_370_xp_mpic_irq_map
.subsections_via_symbols
