	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ti_sci_inta_irq_domain_probe
_ti_sci_inta_irq_domain_probe:          ## @ti_sci_inta_irq_domain_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, %r13
	leaq	4(%rdi), %r12
	movq	%r12, %rdi
	callq	_dev_of_node
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_of_irq_find_parent
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rdi
	callq	_irq_find_host
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%rax, %r14
	movq	%r13, 40(%rax)
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_ti_sci_get_by_phandle
	movq	%rax, 32(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:
	movq	32(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_6:
	movq	$0, 32(%r14)
	jmp	LBB0_13
LBB0_7:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_8:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_9:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	4(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_16:
	movq	32(%r14), %rdi
	movl	(%r13), %edx
	leaq	L_.str.5(%rip), %rcx
	movq	%r12, %rsi
	callq	_devm_ti_sci_get_of_resource
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	8(%r14), %rdi
	jmp	LBB0_20
LBB0_18:
	movq	32(%r14), %rdi
	movl	(%r13), %edx
	leaq	L_.str.7(%rip), %rcx
	movq	%r12, %rsi
	callq	_devm_ti_sci_get_of_resource
	movq	%rax, 24(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	24(%r14), %rdi
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_21:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 16(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_8
## %bb.22:
	movq	%r12, %rdi
	callq	_dev_of_node
	movq	%rax, %rbx
	movq	8(%r14), %rdi
	callq	_ti_sci_get_num_resources
	movq	_ti_sci_inta_irq_domain_ops@GOTPCREL(%rip), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r14, %rcx
	callq	_irq_domain_add_linear
	testq	%rax, %rax
	je	LBB0_25
## %bb.23:
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_of_node_to_fwnode
	movq	_ti_sci_inta_msi_domain_info@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	movq	%rbx, %rdx
	callq	_ti_sci_inta_msi_create_irq_domain
	testq	%rax, %rax
	je	LBB0_26
## %bb.24:
	movq	%r14, %rdi
	addq	$4, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r14, %rdi
	callq	_mutex_init
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_25:
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_27
LBB0_26:
	movq	%rbx, %rdi
	callq	_irq_domain_remove
	leaq	L_.str.10(%rip), %rsi
LBB0_27:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get IRQ parent node\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"ti,sci"

L_.str.2:                               ## @.str.2
	.asciz	"ti,sci read fail %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"ti,sci-dev-id"

L_.str.4:                               ## @.str.4
	.asciz	"missing 'ti,sci-dev-id' property\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.5:                               ## @.str.5
	.asciz	"ti,sci-rm-range-vint"

L_.str.6:                               ## @.str.6
	.asciz	"VINT resource allocation failed\n"

L_.str.7:                               ## @.str.7
	.asciz	"ti,sci-rm-range-global-event"

L_.str.8:                               ## @.str.8
	.asciz	"Global event resource allocation failed\n"

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_ti_sci_inta_irq_domain_ops,4,2 ## @ti_sci_inta_irq_domain_ops
L_.str.9:                               ## @.str.9
	.asciz	"Failed to allocate IRQ domain\n"

	.comm	_ti_sci_inta_msi_domain_info,4,2 ## @ti_sci_inta_msi_domain_info
L_.str.10:                              ## @.str.10
	.asciz	"Failed to allocate msi domain\n"

	.no_dead_strip	_ti_sci_inta_irq_domain_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ti_sci_inta_irq_domain_probe
_ti_sci_inta_irq_domain_probe:          ; @ti_sci_inta_irq_domain_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x22, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_dev_of_node
	mov	x21, x0
	bl	_of_irq_find_parent
	cbz	x0, LBB0_7
; %bb.1:
	bl	_irq_find_host
	cbz	x0, LBB0_9
; %bb.2:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_24
; %bb.3:
	mov	x20, x0
	str	x22, [x0, #40]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_ti_sci_get_by_phandle
	str	x0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.4:
	ldr	x0, [x20, #32]
	bl	_PTR_ERR
	mov	x21, x0
Lloh5:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_6
; %bb.5:
	str	x21, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_6:
	str	xzr, [x20, #32]
	b	LBB0_26
LBB0_7:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_8:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_25
LBB0_9:
Lloh14:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_25
LBB0_10:
	ldr	w0, [x22, #4]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x22
	bl	_of_property_read_u32
	cbz	w0, LBB0_12
; %bb.11:
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_25
LBB0_12:
	ldr	x0, [x20, #32]
	ldr	w2, [x22]
Lloh22:
	adrp	x3, l_.str.5@PAGE
Lloh23:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x1, x19
	bl	_devm_ti_sci_get_of_resource
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.13:
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #8]
	b	LBB0_16
LBB0_14:
	ldr	x0, [x20, #32]
	ldr	w2, [x22]
Lloh26:
	adrp	x3, l_.str.7@PAGE
Lloh27:
	add	x3, x3, l_.str.7@PAGEOFF
	mov	x1, x19
	bl	_devm_ti_sci_get_of_resource
	str	x0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_17
; %bb.15:
Lloh28:
	adrp	x1, l_.str.8@PAGE
Lloh29:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #24]
LBB0_16:
	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
	add	sp, sp, #64
	b	_PTR_ERR
LBB0_17:
Lloh30:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbnz	x0, LBB0_8
; %bb.18:
	mov	x0, x19
	bl	_dev_of_node
	mov	x22, x0
	ldr	x0, [x20, #8]
	bl	_ti_sci_get_num_resources
	mov	x1, x0
Lloh33:
	adrp	x2, _ti_sci_inta_irq_domain_ops@GOTPAGE
Lloh34:
	ldr	x2, [x2, _ti_sci_inta_irq_domain_ops@GOTPAGEOFF]
	mov	x0, x22
	mov	x3, x20
	bl	_irq_domain_add_linear
	cbz	x0, LBB0_21
; %bb.19:
	mov	x22, x0
	mov	x0, x21
	bl	_of_node_to_fwnode
Lloh35:
	adrp	x1, _ti_sci_inta_msi_domain_info@GOTPAGE
Lloh36:
	ldr	x1, [x1, _ti_sci_inta_msi_domain_info@GOTPAGEOFF]
	mov	x2, x22
	bl	_ti_sci_inta_msi_create_irq_domain
	cbz	x0, LBB0_22
; %bb.20:
	add	x0, x20, #4
	bl	_INIT_LIST_HEAD
	mov	x0, x20
	bl	_mutex_init
	mov	w21, #0
	b	LBB0_26
LBB0_21:
Lloh37:
	adrp	x1, l_.str.9@PAGE
Lloh38:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_23
LBB0_22:
	mov	x0, x22
	bl	_irq_domain_remove
Lloh39:
	adrp	x1, l_.str.10@PAGE
Lloh40:
	add	x1, x1, l_.str.10@PAGEOFF
LBB0_23:
	mov	x0, x19
	bl	_dev_err
LBB0_24:
Lloh41:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_25:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_26:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get IRQ parent node\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"ti,sci"

l_.str.2:                               ; @.str.2
	.asciz	"ti,sci read fail %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"ti,sci-dev-id"

l_.str.4:                               ; @.str.4
	.asciz	"missing 'ti,sci-dev-id' property\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.5:                               ; @.str.5
	.asciz	"ti,sci-rm-range-vint"

l_.str.6:                               ; @.str.6
	.asciz	"VINT resource allocation failed\n"

l_.str.7:                               ; @.str.7
	.asciz	"ti,sci-rm-range-global-event"

l_.str.8:                               ; @.str.8
	.asciz	"Global event resource allocation failed\n"

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_ti_sci_inta_irq_domain_ops,4,2 ; @ti_sci_inta_irq_domain_ops
l_.str.9:                               ; @.str.9
	.asciz	"Failed to allocate IRQ domain\n"

	.comm	_ti_sci_inta_msi_domain_info,4,2 ; @ti_sci_inta_msi_domain_info
l_.str.10:                              ; @.str.10
	.asciz	"Failed to allocate msi domain\n"

	.no_dead_strip	_ti_sci_inta_irq_domain_probe
.subsections_via_symbols
