	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvebu_pic_probe
_mvebu_pic_probe:                       ## @mvebu_pic_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r12
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 28(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	28(%r12), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	%r14, %rdi
	callq	_dev_name
	movl	%eax, 24(%r12)
	movq	_mvebu_pic_mask_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movq	_mvebu_pic_unmask_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_mvebu_pic_eoi_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_irq_of_parse_and_map
	movq	%rax, (%r12)
	testq	%rax, %rax
	jle	LBB0_6
## %bb.4:
	movq	_PIC_MAX_IRQS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_mvebu_pic_domain_ops@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movq	%r12, %rcx
	callq	_irq_domain_add_linear
	movl	%eax, 8(%r12)
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movq	(%r12), %rdi
	movq	_mvebu_pic_handle_cascade_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_irq_set_chained_handler
	movq	(%r12), %rdi
	movq	%r12, %rsi
	callq	_irq_set_handler_data
	movq	_mvebu_pic_enable_percpu_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_on_each_cpu
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_9:
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	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	_mvebu_pic_mask_irq,4,2         ## @mvebu_pic_mask_irq
	.comm	_mvebu_pic_unmask_irq,4,2       ## @mvebu_pic_unmask_irq
	.comm	_mvebu_pic_eoi_irq,4,2          ## @mvebu_pic_eoi_irq
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to parse parent interrupt\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PIC_MAX_IRQS,4,2               ## @PIC_MAX_IRQS
	.comm	_mvebu_pic_domain_ops,4,2       ## @mvebu_pic_domain_ops
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate irq domain\n"

	.comm	_mvebu_pic_handle_cascade_irq,4,2 ## @mvebu_pic_handle_cascade_irq
	.comm	_mvebu_pic_enable_percpu_irq,4,2 ## @mvebu_pic_enable_percpu_irq
	.no_dead_strip	_mvebu_pic_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvebu_pic_probe
_mvebu_pic_probe:                       ; @mvebu_pic_probe
	.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	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	w0, [x20, #28]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x20, #28]
	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
	b	_PTR_ERR
LBB0_3:
	mov	x0, x19
	bl	_dev_name
Lloh6:
	adrp	x8, _mvebu_pic_mask_irq@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mvebu_pic_mask_irq@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stp	w8, w0, [x20, #20]
Lloh9:
	adrp	x8, _mvebu_pic_unmask_irq@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mvebu_pic_unmask_irq@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _mvebu_pic_eoi_irq@GOTPAGE
Lloh13:
	ldr	x9, [x9, _mvebu_pic_eoi_irq@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #12]
	mov	x0, x21
	mov	w1, #0
	bl	_irq_of_parse_and_map
	str	x0, [x20]
	cmp	x0, #0
	b.le	LBB0_6
; %bb.4:
Lloh15:
	adrp	x8, _PIC_MAX_IRQS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PIC_MAX_IRQS@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, _mvebu_pic_domain_ops@GOTPAGE
Lloh19:
	ldr	x2, [x2, _mvebu_pic_domain_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	x3, x20
	bl	_irq_domain_add_linear
	str	w0, [x20, #8]
	cbz	w0, LBB0_7
; %bb.5:
	ldr	x0, [x20]
Lloh20:
	adrp	x8, _mvebu_pic_handle_cascade_irq@GOTPAGE
Lloh21:
	ldr	x8, [x8, _mvebu_pic_handle_cascade_irq@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_irq_set_chained_handler
	ldr	x0, [x20]
	mov	x1, x20
	bl	_irq_set_handler_data
Lloh23:
	adrp	x8, _mvebu_pic_enable_percpu_irq@GOTPAGE
Lloh24:
	ldr	x8, [x8, _mvebu_pic_enable_percpu_irq@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	x1, x20
	mov	w2, #1
	bl	_on_each_cpu
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	w0, #0
	b	LBB0_10
LBB0_6:
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_8:
Lloh32:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_mvebu_pic_mask_irq,4,2         ; @mvebu_pic_mask_irq
	.comm	_mvebu_pic_unmask_irq,4,2       ; @mvebu_pic_unmask_irq
	.comm	_mvebu_pic_eoi_irq,4,2          ; @mvebu_pic_eoi_irq
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to parse parent interrupt\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PIC_MAX_IRQS,4,2               ; @PIC_MAX_IRQS
	.comm	_mvebu_pic_domain_ops,4,2       ; @mvebu_pic_domain_ops
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate irq domain\n"

	.comm	_mvebu_pic_handle_cascade_irq,4,2 ; @mvebu_pic_handle_cascade_irq
	.comm	_mvebu_pic_enable_percpu_irq,4,2 ; @mvebu_pic_enable_percpu_irq
	.no_dead_strip	_mvebu_pic_probe
.subsections_via_symbols
