	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvebu_icu_irq_domain_translate
_mvebu_icu_irq_domain_translate:        ## @mvebu_icu_irq_domain_translate
	.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	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_platform_msi_get_host_data
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_platform_msi_get_host_data
	movq	%rax, %rbx
	movq	_legacy_bindings@GOTPCREL(%rip), %rdi
	callq	_static_branch_unlikely
	cmpq	$1, %rax
	movl	$3, %eax
	sbbl	$0, %eax
	xorl	%edi, %edi
	cmpl	%eax, (%r14)
	setne	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
LBB0_9:
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_legacy_bindings@GOTPCREL(%rip), %rdi
	callq	_static_branch_unlikely
	movq	8(%r14), %rcx
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	8(%rcx), %rdx
	movq	%rdx, (%r13)
	movq	_IRQ_TYPE_SENSE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	16(%rcx), %eax
	movl	%eax, (%r12)
	movq	(%rcx), %rax
	movq	_ICU_GRP_NSR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpq	%rcx, %rax
	je	LBB0_7
## %bb.4:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdx
	jmp	LBB0_9
LBB0_5:
	movq	(%rcx), %rdx
	movq	%rdx, (%r13)
	movq	_IRQ_TYPE_SENSE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	8(%rcx), %eax
	movl	%eax, (%r12)
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_ICU_GRP_SEI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	_IRQ_TYPE_EDGE_RISING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
LBB0_7:
	movq	_ICU_MAX_IRQS@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	(%rcx), %rdx
	jb	LBB0_10
## %bb.8:
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_legacy_bindings,4,2            ## @legacy_bindings
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wrong ICU parameter count %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IRQ_TYPE_SENSE_MASK,4,2        ## @IRQ_TYPE_SENSE_MASK
	.comm	_ICU_GRP_NSR,4,2                ## @ICU_GRP_NSR
L_.str.1:                               ## @.str.1
	.asciz	"wrong ICU group type %x\n"

	.comm	_ICU_GRP_SEI,8,3                ## @ICU_GRP_SEI
	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ## @IRQ_TYPE_EDGE_RISING
	.comm	_ICU_MAX_IRQS,8,3               ## @ICU_MAX_IRQS
L_.str.2:                               ## @.str.2
	.asciz	"invalid interrupt number %ld\n"

	.no_dead_strip	_mvebu_icu_irq_domain_translate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvebu_icu_irq_domain_translate
_mvebu_icu_irq_domain_translate:        ; @mvebu_icu_irq_domain_translate
	.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	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	bl	_platform_msi_get_host_data
	mov	x22, x0
	mov	x0, x19
	bl	_platform_msi_get_host_data
	mov	x19, x0
Lloh0:
	adrp	x0, _legacy_bindings@GOTPAGE
Lloh1:
	ldr	x0, [x0, _legacy_bindings@GOTPAGEOFF]
	bl	_static_branch_unlikely
	cmp	x0, #0
	mov	w8, #2
	cinc	w8, w8, ne
	ldr	w9, [x23]
	cmp	w9, w8
	cset	w0, ne
	bl	_WARN_ON
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w0, [x19]
	ldr	w2, [x23]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	bl	_dev_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	ret
LBB0_4:
Lloh7:
	adrp	x0, _legacy_bindings@GOTPAGE
Lloh8:
	ldr	x0, [x0, _legacy_bindings@GOTPAGEOFF]
	bl	_static_branch_unlikely
	ldr	x8, [x23, #8]
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x2, [x8, #8]
	str	x2, [x21]
	ldr	w9, [x8, #16]
Lloh9:
	adrp	x10, _IRQ_TYPE_SENSE_MASK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _IRQ_TYPE_SENSE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	and	w9, w10, w9
	str	w9, [x20]
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _ICU_GRP_NSR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ICU_GRP_NSR@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.6:
	ldr	w0, [x19]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x8
	b	LBB0_2
LBB0_7:
	ldr	x2, [x8]
	str	x2, [x21]
	ldr	w8, [x8, #8]
Lloh17:
	adrp	x9, _IRQ_TYPE_SENSE_MASK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IRQ_TYPE_SENSE_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	and	w8, w9, w8
	str	w8, [x20]
	ldr	x8, [x22]
	ldr	x8, [x8]
Lloh20:
	adrp	x9, _ICU_GRP_SEI@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ICU_GRP_SEI@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
Lloh23:
	adrp	x8, _IRQ_TYPE_EDGE_RISING@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IRQ_TYPE_EDGE_RISING@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_9:
Lloh26:
	adrp	x8, _ICU_MAX_IRQS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ICU_MAX_IRQS@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cmp	x2, x8
	b.hs	LBB0_11
; %bb.10:
	mov	w0, #0
	b	LBB0_3
LBB0_11:
	ldr	w0, [x19]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_legacy_bindings,4,2            ; @legacy_bindings
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wrong ICU parameter count %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IRQ_TYPE_SENSE_MASK,4,2        ; @IRQ_TYPE_SENSE_MASK
	.comm	_ICU_GRP_NSR,4,2                ; @ICU_GRP_NSR
l_.str.1:                               ; @.str.1
	.asciz	"wrong ICU group type %x\n"

	.comm	_ICU_GRP_SEI,8,3                ; @ICU_GRP_SEI
	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ; @IRQ_TYPE_EDGE_RISING
	.comm	_ICU_MAX_IRQS,8,3               ; @ICU_MAX_IRQS
l_.str.2:                               ; @.str.2
	.asciz	"invalid interrupt number %ld\n"

	.no_dead_strip	_mvebu_icu_irq_domain_translate
.subsections_via_symbols
