	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvebu_gicp_probe
_mvebu_gicp_probe:                      ## @mvebu_gicp_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
	subq	$40, %rsp
	.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), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.1:
	movq	%rbx, 32(%rax)
	movq	%rax, %rdi
	addq	$28, %rdi
	movq	%rax, %r13
	callq	_spin_lock_init
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, 24(%r13)
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_property_count_u32_elems
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_23
## %bb.3:
	shrl	%r12d
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	%r12d, (%r13)
	movl	(%r15), %ecx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	$4, %edx
	callq	_devm_kcalloc
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_20
## %bb.4:
	movq	%r13, %rcx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r13)
	jle	LBB0_8
## %bb.5:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rax,%r14), %rcx
	addq	$8, %rcx
	movq	%r13, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_of_property_read_u32_index
	movq	16(%r12), %rcx
	addq	%r14, %rcx
	leal	1(%rbx), %edx
	movq	%r13, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_of_property_read_u32_index
	movq	16(%r12), %rax
	movl	4(%r12), %edi
	addl	(%rax,%r14), %edi
	movl	%edi, 4(%r12)
	incq	%r15
	movslq	(%r12), %rcx
	addl	$2, %ebx
	addq	$16, %r14
	cmpq	%rcx, %r15
	jl	LBB0_6
	jmp	LBB0_9
LBB0_7:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_8:
	movl	4(%rcx), %edi
LBB0_9:
	callq	_BITS_TO_LONGS
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$8, %edx
	callq	_devm_kcalloc
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	je	LBB0_20
## %bb.10:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_of_irq_find_parent
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:
	movq	%rax, %rdi
	callq	_irq_find_host
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	movq	%rax, %rbx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	4(%r13), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_of_node_to_fwnode
	movq	_gicp_domain_ops@GOTPCREL(%rip), %r8
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	movq	%r13, %r9
	callq	_irq_domain_create_hierarchy
	testq	%rax, %rax
	je	LBB0_18
## %bb.13:
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_of_node_to_fwnode
	movq	_gicp_msi_domain_info@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	movq	%rbx, %rdx
	callq	_platform_msi_create_irq_domain
	testq	%rax, %rax
	je	LBB0_19
## %bb.14:
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_platform_set_drvdata
	xorl	%r12d, %r12d
	jmp	LBB0_23
LBB0_15:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_17
LBB0_16:
	leaq	L_.str.2(%rip), %rsi
LBB0_17:
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_18:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_19:
	movq	%rbx, %rdi
	callq	_irq_domain_remove
LBB0_20:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_21:
	xorl	%r12d, %r12d
LBB0_22:
	subl	(%rax), %r12d
LBB0_23:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"marvell,spi-ranges"

L_.str.1:                               ## @.str.1
	.asciz	"failed to find parent IRQ node\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to find parent IRQ domain\n"

	.comm	_gicp_domain_ops,4,2            ## @gicp_domain_ops
	.comm	_gicp_msi_domain_info,4,2       ## @gicp_msi_domain_info
	.no_dead_strip	_mvebu_gicp_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvebu_gicp_probe
_mvebu_gicp_probe:                      ; @mvebu_gicp_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_19
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #32]
	add	x0, x0, #28
	bl	_spin_lock_init
Lloh2:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	str	w0, [x20, #24]
	cbz	w0, LBB0_17
; %bb.2:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_of_property_count_u32_elems
	tbnz	w0, #31, LBB0_21
; %bb.3:
	lsr	w1, w0, #1
	str	w1, [x20]
	ldr	w3, [x24]
	mov	x0, x19
	mov	w2, #4
	bl	_devm_kcalloc
	str	x0, [x20, #16]
	cbz	x0, LBB0_19
; %bb.4:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x25, #0
	mov	w22, #0
	mov	x26, #0
Lloh7:
	adrp	x23, l_.str@PAGE
Lloh8:
	add	x23, x23, l_.str@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x0, x25
	add	x3, x8, #8
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	_of_property_read_u32_index
	ldr	x8, [x20, #16]
	add	x3, x8, x25
	add	w2, w22, #1
	mov	x0, x21
	mov	x1, x23
	bl	_of_property_read_u32_index
	ldr	x0, [x20, #16]
	ldr	w8, [x0, x25]
	ldp	w10, w9, [x20]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	add	w8, w9, w8
	str	w8, [x20, #4]
	add	x26, x26, #1
	add	w22, w22, #2
	add	x25, x25, #16
	cmp	x26, x10
	b.lt	LBB0_6
	b	LBB0_8
LBB0_7:
	ldr	w8, [x20, #4]
LBB0_8:
	mov	x0, x8
	bl	_BITS_TO_LONGS
	mov	x1, x0
	ldr	w3, [x24]
	mov	x0, x19
	mov	w2, #8
	bl	_devm_kcalloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_19
; %bb.9:
	mov	x0, x21
	bl	_of_irq_find_parent
	cbz	x0, LBB0_14
; %bb.10:
	bl	_irq_find_host
	cbz	x0, LBB0_15
; %bb.11:
	mov	x22, x0
	ldr	w23, [x20, #4]
	mov	x0, x21
	bl	_of_node_to_fwnode
	mov	x3, x0
Lloh9:
	adrp	x4, _gicp_domain_ops@GOTPAGE
Lloh10:
	ldr	x4, [x4, _gicp_domain_ops@GOTPAGEOFF]
	mov	x0, x22
	mov	w1, #0
	mov	x2, x23
	mov	x5, x20
	bl	_irq_domain_create_hierarchy
	cbz	x0, LBB0_19
; %bb.12:
	mov	x22, x0
	mov	x0, x21
	bl	_of_node_to_fwnode
Lloh11:
	adrp	x1, _gicp_msi_domain_info@GOTPAGE
Lloh12:
	ldr	x1, [x1, _gicp_msi_domain_info@GOTPAGEOFF]
	mov	x2, x22
	bl	_platform_msi_create_irq_domain
	cbz	x0, LBB0_18
; %bb.13:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	w0, #0
	b	LBB0_21
LBB0_14:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_15:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_16:
	mov	x0, x19
	bl	_dev_err
LBB0_17:
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:
	mov	x0, x22
	bl	_irq_domain_remove
LBB0_19:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_21:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"marvell,spi-ranges"

l_.str.1:                               ; @.str.1
	.asciz	"failed to find parent IRQ node\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to find parent IRQ domain\n"

	.comm	_gicp_domain_ops,4,2            ; @gicp_domain_ops
	.comm	_gicp_msi_domain_info,4,2       ; @gicp_msi_domain_info
	.no_dead_strip	_mvebu_gicp_probe
.subsections_via_symbols
