	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvebu_sei_probe
_mvebu_sei_probe:                       ## @mvebu_sei_probe
	.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	%rdi, %rbx
	movq	(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r13
	movq	%rbx, 32(%rax)
	leaq	52(%rax), %rdi
	callq	_mutex_init
	movq	%r13, %rdi
	addq	$48, %rdi
	callq	_raw_spin_lock_init
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movl	%eax, 44(%r13)
	movq	32(%r13), %rdi
	movl	%eax, %esi
	callq	_devm_ioremap_resource
	movl	%eax, 40(%r13)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	32(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movl	40(%r13), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r12d, %r12d
LBB0_5:
	subl	(%rax), %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	callq	_of_device_get_match_data
	movq	%rax, 24(%r13)
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_irq_of_parse_and_map
	testq	%rax, %rax
	jle	LBB0_15
## %bb.9:
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_of_node_to_fwnode
	movq	24(%r13), %rcx
	movq	(%rcx), %rsi
	addq	8(%rcx), %rsi
	movq	_mvebu_sei_domain_ops@GOTPCREL(%rip), %rdx
	movl	%eax, %edi
	movq	%r13, %rcx
	callq	_irq_domain_create_linear
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:
	movq	_DOMAIN_BUS_NEXUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_irq_domain_update_bus_token
	movq	(%r13), %rbx
	movq	24(%r13), %rax
	movq	8(%rax), %r12
	movq	%r15, %rdi
	callq	_of_node_to_fwnode
	movq	_mvebu_sei_ap_domain_ops@GOTPCREL(%rip), %r8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	movl	%eax, %ecx
	movq	%r13, %r9
	callq	_irq_domain_create_hierarchy
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_17
## %bb.11:
	movq	_DOMAIN_BUS_WIRED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_irq_domain_update_bus_token
	movq	(%r13), %rbx
	movq	24(%r13), %rax
	movq	(%rax), %r12
	movq	%r15, %rdi
	callq	_of_node_to_fwnode
	movq	_mvebu_sei_cp_domain_ops@GOTPCREL(%rip), %r8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	movl	%eax, %ecx
	movq	%r13, %r9
	callq	_irq_domain_create_hierarchy
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_18
## %bb.12:
	movq	_DOMAIN_BUS_GENERIC_MSI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_irq_domain_update_bus_token
	movq	%r15, %rdi
	callq	_of_node_to_fwnode
	movq	16(%r13), %rdx
	movq	_mvebu_sei_msi_domain_info@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	callq	_platform_msi_create_irq_domain
	testq	%rax, %rax
	je	LBB0_19
## %bb.13:
	movq	%r13, %rdi
	callq	_mvebu_sei_reset
	movq	_mvebu_sei_handle_cascade_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_irq_set_chained_handler_and_data
	xorl	%r12d, %r12d
	jmp	LBB0_6
LBB0_14:
	movq	32(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_15:
	movq	32(%r13), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_16:
	movq	32(%r13), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_22
LBB0_17:
	movq	32(%r13), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_21
LBB0_18:
	leaq	L_.str.5(%rip), %rdi
	callq	_pr_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_20
LBB0_19:
	leaq	L_.str.6(%rip), %rdi
	callq	_pr_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	16(%r13), %rdi
	callq	_irq_domain_remove
LBB0_20:
	movq	8(%r13), %rdi
	callq	_irq_domain_remove
LBB0_21:
	movq	(%r13), %rdi
	callq	_irq_domain_remove
LBB0_22:
	negl	%r12d
	movq	%r14, %rdi
	callq	_irq_dispose_mapping
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to remap SEI resource\n"

L_.str.1:                               ## @.str.1
	.asciz	"Could not retrieve controller capabilities\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"Failed to retrieve top-level SPI IRQ\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_mvebu_sei_domain_ops,4,2       ## @mvebu_sei_domain_ops
L_.str.3:                               ## @.str.3
	.asciz	"Failed to create SEI IRQ domain\n"

	.comm	_DOMAIN_BUS_NEXUS,4,2           ## @DOMAIN_BUS_NEXUS
	.comm	_mvebu_sei_ap_domain_ops,4,2    ## @mvebu_sei_ap_domain_ops
L_.str.4:                               ## @.str.4
	.asciz	"Failed to create AP IRQ domain\n"

	.comm	_DOMAIN_BUS_WIRED,4,2           ## @DOMAIN_BUS_WIRED
	.comm	_mvebu_sei_cp_domain_ops,4,2    ## @mvebu_sei_cp_domain_ops
L_.str.5:                               ## @.str.5
	.asciz	"Failed to create CPs IRQ domain\n"

	.comm	_DOMAIN_BUS_GENERIC_MSI,4,2     ## @DOMAIN_BUS_GENERIC_MSI
	.comm	_mvebu_sei_msi_domain_info,4,2  ## @mvebu_sei_msi_domain_info
L_.str.6:                               ## @.str.6
	.asciz	"Failed to create CPs MSI domain\n"

	.comm	_mvebu_sei_handle_cascade_irq,4,2 ## @mvebu_sei_handle_cascade_irq
	.no_dead_strip	_mvebu_sei_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvebu_sei_probe
_mvebu_sei_probe:                       ; @mvebu_sei_probe
	.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, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #32]
	add	x0, x0, #52
	bl	_mutex_init
	add	x0, x19, #48
	bl	_raw_spin_lock_init
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	str	w0, [x19, #44]
	ldr	x0, [x19, #32]
	bl	_devm_ioremap_resource
	str	w0, [x19, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x0, [x19, #32]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	w0, [x19, #40]
	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
	b	_PTR_ERR
LBB0_3:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_5:
	mov	x0, x19
	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_6:
	mov	x0, x20
	bl	_of_device_get_match_data
	str	x0, [x19, #24]
	cbz	x0, LBB0_13
; %bb.7:
	mov	x0, x21
	mov	w1, #0
	bl	_irq_of_parse_and_map
	cmp	x0, #0
	b.le	LBB0_14
; %bb.8:
	mov	x20, x0
	mov	x0, x21
	bl	_of_node_to_fwnode
	ldr	x8, [x19, #24]
	ldp	x8, x9, [x8]
	add	x1, x8, x9
Lloh10:
	adrp	x2, _mvebu_sei_domain_ops@GOTPAGE
Lloh11:
	ldr	x2, [x2, _mvebu_sei_domain_ops@GOTPAGEOFF]
	mov	x3, x19
	bl	_irq_domain_create_linear
	str	x0, [x19]
	cbz	x0, LBB0_15
; %bb.9:
Lloh12:
	adrp	x8, _DOMAIN_BUS_NEXUS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DOMAIN_BUS_NEXUS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_irq_domain_update_bus_token
	ldr	x22, [x19]
	ldr	x8, [x19, #24]
	ldr	x23, [x8, #8]
	mov	x0, x21
	bl	_of_node_to_fwnode
	mov	x3, x0
Lloh15:
	adrp	x4, _mvebu_sei_ap_domain_ops@GOTPAGE
Lloh16:
	ldr	x4, [x4, _mvebu_sei_ap_domain_ops@GOTPAGEOFF]
	mov	x0, x22
	mov	w1, #0
	mov	x2, x23
	mov	x5, x19
	bl	_irq_domain_create_hierarchy
	str	x0, [x19, #8]
	cbz	x0, LBB0_16
; %bb.10:
Lloh17:
	adrp	x8, _DOMAIN_BUS_WIRED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DOMAIN_BUS_WIRED@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_irq_domain_update_bus_token
	ldr	x22, [x19]
	ldr	x8, [x19, #24]
	ldr	x23, [x8]
	mov	x0, x21
	bl	_of_node_to_fwnode
	mov	x3, x0
Lloh20:
	adrp	x4, _mvebu_sei_cp_domain_ops@GOTPAGE
Lloh21:
	ldr	x4, [x4, _mvebu_sei_cp_domain_ops@GOTPAGEOFF]
	mov	x0, x22
	mov	w1, #0
	mov	x2, x23
	mov	x5, x19
	bl	_irq_domain_create_hierarchy
	str	x0, [x19, #16]
	cbz	x0, LBB0_17
; %bb.11:
Lloh22:
	adrp	x8, _DOMAIN_BUS_GENERIC_MSI@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DOMAIN_BUS_GENERIC_MSI@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_irq_domain_update_bus_token
	mov	x0, x21
	bl	_of_node_to_fwnode
	ldr	x2, [x19, #16]
Lloh25:
	adrp	x1, _mvebu_sei_msi_domain_info@GOTPAGE
Lloh26:
	ldr	x1, [x1, _mvebu_sei_msi_domain_info@GOTPAGEOFF]
	bl	_platform_msi_create_irq_domain
	cbz	x0, LBB0_18
; %bb.12:
	mov	x0, x19
	bl	_mvebu_sei_reset
Lloh27:
	adrp	x8, _mvebu_sei_handle_cascade_irq@GOTPAGE
Lloh28:
	ldr	x8, [x8, _mvebu_sei_handle_cascade_irq@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_irq_set_chained_handler_and_data
	mov	w19, #0
	b	LBB0_5
LBB0_13:
	ldr	x0, [x19, #32]
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_14:
	ldr	x0, [x19, #32]
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
Lloh36:
	adrp	x8, _ENODEV@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_4
LBB0_15:
	ldr	x0, [x19, #32]
Lloh38:
	adrp	x1, l_.str.3@PAGE
Lloh39:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
Lloh40:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh42:
	ldr	w21, [x8]
	b	LBB0_21
LBB0_16:
	ldr	x0, [x19, #32]
Lloh43:
	adrp	x1, l_.str.4@PAGE
Lloh44:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
Lloh45:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh47:
	ldr	w21, [x8]
	b	LBB0_20
LBB0_17:
Lloh48:
	adrp	x0, l_.str.5@PAGE
Lloh49:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_err
Lloh50:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh52:
	ldr	w21, [x8]
	b	LBB0_19
LBB0_18:
Lloh53:
	adrp	x0, l_.str.6@PAGE
Lloh54:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_pr_err
Lloh55:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh56:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh57:
	ldr	w21, [x8]
	ldr	x0, [x19, #16]
	bl	_irq_domain_remove
LBB0_19:
	ldr	x0, [x19, #8]
	bl	_irq_domain_remove
LBB0_20:
	ldr	x0, [x19]
	bl	_irq_domain_remove
LBB0_21:
	neg	w19, w21
	mov	x0, x20
	bl	_irq_dispose_mapping
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to remap SEI resource\n"

l_.str.1:                               ; @.str.1
	.asciz	"Could not retrieve controller capabilities\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"Failed to retrieve top-level SPI IRQ\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_mvebu_sei_domain_ops,4,2       ; @mvebu_sei_domain_ops
l_.str.3:                               ; @.str.3
	.asciz	"Failed to create SEI IRQ domain\n"

	.comm	_DOMAIN_BUS_NEXUS,4,2           ; @DOMAIN_BUS_NEXUS
	.comm	_mvebu_sei_ap_domain_ops,4,2    ; @mvebu_sei_ap_domain_ops
l_.str.4:                               ; @.str.4
	.asciz	"Failed to create AP IRQ domain\n"

	.comm	_DOMAIN_BUS_WIRED,4,2           ; @DOMAIN_BUS_WIRED
	.comm	_mvebu_sei_cp_domain_ops,4,2    ; @mvebu_sei_cp_domain_ops
l_.str.5:                               ; @.str.5
	.asciz	"Failed to create CPs IRQ domain\n"

	.comm	_DOMAIN_BUS_GENERIC_MSI,4,2     ; @DOMAIN_BUS_GENERIC_MSI
	.comm	_mvebu_sei_msi_domain_info,4,2  ; @mvebu_sei_msi_domain_info
l_.str.6:                               ; @.str.6
	.asciz	"Failed to create CPs MSI domain\n"

	.comm	_mvebu_sei_handle_cascade_irq,4,2 ; @mvebu_sei_handle_cascade_irq
	.no_dead_strip	_mvebu_sei_probe
.subsections_via_symbols
