	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function keystone_irq_probe
_keystone_irq_probe:                    ## @keystone_irq_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), %r12
	testq	%r12, %r12
	je	LBB0_1
## %bb.3:
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_syscon_regmap_lookup_by_phandle
	movl	%eax, 60(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.16:
	movl	60(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	56(%r15), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_of_property_read_u32_index
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_15
LBB0_8:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%rax, (%r15)
	testq	%rax, %rax
	js	LBB0_9
## %bb.10:
	movq	%r14, 48(%r15)
	movl	$-1, 8(%r15)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, 24(%r15)
	movq	_keystone_irq_ack@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movq	_keystone_irq_setmask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r15)
	movq	_keystone_irq_unmask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movq	_KEYSTONE_N_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_keystone_irq_ops@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rcx
	callq	_irq_domain_add_linear
	movl	%eax, 12(%r15)
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movq	%r15, %rdi
	addq	$16, %rdi
	callq	_raw_spin_lock_init
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movl	(%r15), %r12d
	movq	_keystone_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r14, %rdi
	callq	_dev_name
	xorl	%ebx, %ebx
	movl	%r12d, %edi
	movl	%r13d, %esi
	xorl	%edx, %edx
	movl	%eax, %ecx
	movq	%r15, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %r12d
	movl	12(%r15), %edi
	callq	_irq_domain_remove
	movl	%r12d, %ebx
	jmp	LBB0_15
LBB0_9:
	movq	%rax, %rbx
	jmp	LBB0_15
LBB0_11:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_14:
	movq	%r15, %rdi
	movl	$-1, %esi
	callq	_keystone_irq_writel
	movq	_KEYSTONE_N_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ti,syscon-dev"

L_.str.1:                               ## @.str.1
	.asciz	"couldn't read the devctrl_offset offset!\n"

L_.str.2:                               ## @.str.2
	.asciz	"keystone-irq"

	.comm	_keystone_irq_ack,4,2           ## @keystone_irq_ack
	.comm	_keystone_irq_setmask,4,2       ## @keystone_irq_setmask
	.comm	_keystone_irq_unmask,4,2        ## @keystone_irq_unmask
	.comm	_KEYSTONE_N_IRQ,4,2             ## @KEYSTONE_N_IRQ
	.comm	_keystone_irq_ops,4,2           ## @keystone_irq_ops
L_.str.3:                               ## @.str.3
	.asciz	"IRQ domain registration failed\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_keystone_irq_handler,4,2       ## @keystone_irq_handler
L_.str.4:                               ## @.str.4
	.asciz	"irqchip registered, nr_irqs %u\n"

	.no_dead_strip	_keystone_irq_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function keystone_irq_probe
_keystone_irq_probe:                    ; @keystone_irq_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
	ldr	x21, [x0]
	cbz	x21, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_syscon_regmap_lookup_by_phandle
	str	w0, [x20, #60]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.3:
	ldr	w0, [x20, #60]
	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_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	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_8:
	add	x3, x20, #56
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	w2, #1
	bl	_of_property_read_u32_index
	cbz	w0, LBB0_10
; %bb.9:
	mov	x22, x0
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_7
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	str	x0, [x20]
	tbnz	x0, #63, LBB0_14
; %bb.11:
	str	x19, [x20, #48]
	mov	w8, #-1
	str	w8, [x20, #8]
Lloh13:
	adrp	x8, l_.str.2@PAGE
Lloh14:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [x20, #24]
Lloh15:
	adrp	x8, _keystone_irq_ack@GOTPAGE
Lloh16:
	ldr	x8, [x8, _keystone_irq_ack@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x20, #40]
Lloh18:
	adrp	x8, _keystone_irq_setmask@GOTPAGE
Lloh19:
	ldr	x8, [x8, _keystone_irq_setmask@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _keystone_irq_unmask@GOTPAGE
Lloh22:
	ldr	x9, [x9, _keystone_irq_unmask@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #32]
Lloh24:
	adrp	x23, _KEYSTONE_N_IRQ@GOTPAGE
Lloh25:
	ldr	x23, [x23, _KEYSTONE_N_IRQ@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh26:
	adrp	x2, _keystone_irq_ops@GOTPAGE
Lloh27:
	ldr	x2, [x2, _keystone_irq_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	x3, x20
	bl	_irq_domain_add_linear
	str	w0, [x20, #12]
	cbz	w0, LBB0_15
; %bb.12:
	add	x0, x20, #16
	bl	_raw_spin_lock_init
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	ldr	w21, [x20]
Lloh28:
	adrp	x8, _keystone_irq_handler@GOTPAGE
Lloh29:
	ldr	x8, [x8, _keystone_irq_handler@GOTPAGEOFF]
Lloh30:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_dev_name
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
	mov	x4, x20
	bl	_request_irq
	mov	x22, x0
	cbz	w0, LBB0_16
; %bb.13:
	ldr	w0, [x20, #12]
	bl	_irq_domain_remove
	b	LBB0_7
LBB0_14:
	mov	x22, x0
	b	LBB0_7
LBB0_15:
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh33:
	adrp	x8, _ENODEV@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_6
LBB0_16:
	mov	x0, x20
	mov	w1, #-1
	bl	_keystone_irq_writel
	ldr	w2, [x23]
Lloh35:
	adrp	x1, l_.str.4@PAGE
Lloh36:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ti,syscon-dev"

l_.str.1:                               ; @.str.1
	.asciz	"couldn't read the devctrl_offset offset!\n"

l_.str.2:                               ; @.str.2
	.asciz	"keystone-irq"

	.comm	_keystone_irq_ack,4,2           ; @keystone_irq_ack
	.comm	_keystone_irq_setmask,4,2       ; @keystone_irq_setmask
	.comm	_keystone_irq_unmask,4,2        ; @keystone_irq_unmask
	.comm	_KEYSTONE_N_IRQ,4,2             ; @KEYSTONE_N_IRQ
	.comm	_keystone_irq_ops,4,2           ; @keystone_irq_ops
l_.str.3:                               ; @.str.3
	.asciz	"IRQ domain registration failed\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_keystone_irq_handler,4,2       ; @keystone_irq_handler
l_.str.4:                               ; @.str.4
	.asciz	"irqchip registered, nr_irqs %u\n"

	.no_dead_strip	_keystone_irq_probe
.subsections_via_symbols
