	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_irqsteer_probe
_imx_irqsteer_probe:                    ## @imx_irqsteer_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
	movq	(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movq	%rax, 40(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.25:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	40(%r14), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_clk_get
	movq	%rax, 16(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	16(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_24
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
LBB0_6:
	movq	%r12, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_24
LBB0_7:
	movq	%r14, %rdi
	addq	$56, %rdi
	callq	_raw_spin_lock_init
	leaq	L_.str.3(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_property_read_u32
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_24
## %bb.8:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_of_property_read_u32
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_24
## %bb.9:
	movl	-44(%rbp), %edi
	movl	$64, %esi
	callq	_DIV_ROUND_UP
	movl	%eax, 4(%r14)
	movl	-44(%rbp), %eax
	leal	31(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$5, %ecx
	movl	%ecx, 8(%r14)
	movq	_CONFIG_PM_SLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	8(%r14), %esi
	shll	$2, %esi
	movl	(%r13), %edx
	movq	%r12, %rdi
	callq	_devm_kzalloc
	movq	%rax, 48(%r14)
	testq	%rax, %rax
	je	LBB0_1
LBB0_11:
	movq	16(%r14), %rdi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_24:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	(%r14), %edi
	callq	_BIT
	movq	_CHANCTRL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	40(%r14), %rsi
	movl	%eax, %edi
	callq	_writel_relaxed
	movl	8(%r14), %esi
	shll	$5, %esi
	movq	_imx_irqsteer_domain_ops@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rcx
	callq	_irq_domain_add_linear
	movl	%eax, 32(%r14)
	testl	%eax, %eax
	je	LBB0_14
## %bb.16:
	movl	4(%r14), %eax
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	testl	%eax, %eax
	je	LBB0_15
## %bb.17:
	movq	_CHAN_MAX_OUTPUT_INT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_15
## %bb.18:
	testl	%eax, %eax
	jle	LBB0_23
## %bb.19:
	xorl	%ebx, %ebx
	movq	_imx_irqsteer_irq_handler@GOTPCREL(%rip), %r13
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_irq_of_parse_and_map
	movq	24(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	testl	%eax, %eax
	je	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	(%r13), %esi
	movl	%eax, %edi
	movq	%r14, %rdx
	callq	_irq_set_chained_handler_and_data
	incq	%rbx
	movslq	4(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_20
LBB0_23:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_24
LBB0_14:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rdx
LBB0_15:
	xorl	%ebx, %ebx
	subl	(%rdx), %ebx
	movq	16(%r14), %rdi
	callq	_clk_disable_unprepare
	jmp	LBB0_24
LBB0_21:
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to initialize reg\n"

L_.str.1:                               ## @.str.1
	.asciz	"ipg"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.2:                               ## @.str.2
	.asciz	"failed to get ipg clk: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"fsl,num-irqs"

L_.str.4:                               ## @.str.4
	.asciz	"fsl,channel"

	.comm	_CONFIG_PM_SLEEP,4,2            ## @CONFIG_PM_SLEEP
L_.str.5:                               ## @.str.5
	.asciz	"failed to enable ipg clk: %d\n"

	.comm	_CHANCTRL,8,3                   ## @CHANCTRL
	.comm	_imx_irqsteer_domain_ops,4,2    ## @imx_irqsteer_domain_ops
L_.str.6:                               ## @.str.6
	.asciz	"failed to create IRQ domain\n"

	.comm	_CHAN_MAX_OUTPUT_INT,4,2        ## @CHAN_MAX_OUTPUT_INT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_imx_irqsteer_irq_handler,4,2   ## @imx_irqsteer_irq_handler
	.no_dead_strip	_imx_irqsteer_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx_irqsteer_probe
_imx_irqsteer_probe:                    ; @imx_irqsteer_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_12
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	x0, [x20, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #40]
	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
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_3:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x0, [x20, #16]
	bl	_PTR_ERR
	mov	x22, x0
Lloh6:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_13
; %bb.5:
	str	x22, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_13
LBB0_6:
	add	x0, x20, #56
	bl	_raw_spin_lock_init
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #12
	mov	x0, x21
	bl	_of_property_read_u32
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.7:
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_of_property_read_u32
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.8:
	ldr	w0, [sp, #12]
	mov	w1, #64
	bl	_DIV_ROUND_UP
	ldr	w8, [sp, #12]
	add	w9, w8, #31
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #5
	stp	w0, w8, [x20, #4]
Lloh15:
	adrp	x8, _CONFIG_PM_SLEEP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CONFIG_PM_SLEEP@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w8, [x20, #8]
	lsl	w1, w8, #2
	ldr	w2, [x23]
	mov	x0, x19
	bl	_devm_kzalloc
	str	x0, [x20, #48]
	cbz	x0, LBB0_12
LBB0_10:
	ldr	x0, [x20, #16]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_14
; %bb.11:
	mov	x22, x0
	str	x22, [sp]
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_13
LBB0_12:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_13:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
LBB0_14:
	ldr	w0, [x20]
	bl	_BIT
	ldr	x8, [x20, #40]
Lloh23:
	adrp	x9, _CHANCTRL@GOTPAGE
Lloh24:
	ldr	x9, [x9, _CHANCTRL@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	w8, [x20, #8]
	lsl	w1, w8, #5
Lloh26:
	adrp	x2, _imx_irqsteer_domain_ops@GOTPAGE
Lloh27:
	ldr	x2, [x2, _imx_irqsteer_domain_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	x3, x20
	bl	_irq_domain_add_linear
	str	w0, [x20, #32]
	cbz	w0, LBB0_22
; %bb.15:
	ldr	w8, [x20, #4]
Lloh28:
	adrp	x23, _EINVAL@GOTPAGE
Lloh29:
	ldr	x23, [x23, _EINVAL@GOTPAGEOFF]
	cbz	w8, LBB0_23
; %bb.16:
Lloh30:
	adrp	x9, _CHAN_MAX_OUTPUT_INT@GOTPAGE
Lloh31:
	ldr	x9, [x9, _CHAN_MAX_OUTPUT_INT@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_23
; %bb.17:
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.18:
	mov	x22, #0
Lloh33:
	adrp	x23, _EINVAL@GOTPAGE
Lloh34:
	ldr	x23, [x23, _EINVAL@GOTPAGEOFF]
Lloh35:
	adrp	x24, _imx_irqsteer_irq_handler@GOTPAGE
Lloh36:
	ldr	x24, [x24, _imx_irqsteer_irq_handler@GOTPAGEOFF]
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_irq_of_parse_and_map
	ldr	x8, [x20, #24]
	str	w0, [x8, x22, lsl #2]
	cbz	w0, LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w1, [x24]
	mov	x2, x20
	bl	_irq_set_chained_handler_and_data
	add	x22, x22, #1
	ldrsw	x8, [x20, #4]
	cmp	x22, x8
	b.lt	LBB0_19
LBB0_21:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	w22, #0
	b	LBB0_13
LBB0_22:
Lloh37:
	adrp	x1, l_.str.6@PAGE
Lloh38:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh39:
	adrp	x23, _ENOMEM@GOTPAGE
Lloh40:
	ldr	x23, [x23, _ENOMEM@GOTPAGEOFF]
LBB0_23:
	ldr	w8, [x23]
	neg	w22, w8
	ldr	x0, [x20, #16]
	bl	_clk_disable_unprepare
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to initialize reg\n"

l_.str.1:                               ; @.str.1
	.asciz	"ipg"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.2:                               ; @.str.2
	.asciz	"failed to get ipg clk: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"fsl,num-irqs"

l_.str.4:                               ; @.str.4
	.asciz	"fsl,channel"

	.comm	_CONFIG_PM_SLEEP,4,2            ; @CONFIG_PM_SLEEP
l_.str.5:                               ; @.str.5
	.asciz	"failed to enable ipg clk: %d\n"

	.comm	_CHANCTRL,8,3                   ; @CHANCTRL
	.comm	_imx_irqsteer_domain_ops,4,2    ; @imx_irqsteer_domain_ops
l_.str.6:                               ; @.str.6
	.asciz	"failed to create IRQ domain\n"

	.comm	_CHAN_MAX_OUTPUT_INT,4,2        ; @CHAN_MAX_OUTPUT_INT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_imx_irqsteer_irq_handler,4,2   ; @imx_irqsteer_irq_handler
	.no_dead_strip	_imx_irqsteer_probe
.subsections_via_symbols
