	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_imx_scu_enable_general_irq_channel ## -- Begin function imx_scu_enable_general_irq_channel
	.p2align	4, 0x90
_imx_scu_enable_general_irq_channel:    ## @imx_scu_enable_general_irq_channel
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_imx_sc_irq_ipc_handle@GOTPCREL(%rip), %rdi
	callq	_imx_scu_get_handle
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r15
	movq	%r14, 8(%rax)
	movq	_imx_scu_irq_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_mbox_request_channel_byname
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_devm_kfree
	jmp	LBB0_9
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_5:
	movq	_imx_scu_irq_work_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_imx_sc_irq_work@GOTPCREL(%rip), %rdi
	callq	_INIT_WORK
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	xorl	%ebx, %ebx
	leaq	-32(%rbp), %r8
	xorl	%ecx, %ecx
	callq	_of_parse_phandle_with_args
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	xorl	%ecx, %ecx
	jmp	LBB0_8
LBB0_7:
	movl	-32(%rbp), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_of_alias_get_id
	testl	%eax, %eax
	movl	$1, %ecx
	cmovnsl	%eax, %ecx
LBB0_8:
	movq	_IMX_SC_R_MU_0A@GOTPCREL(%rip), %rax
	addq	(%rax), %rcx
	movq	_mu_resource_id@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_imx_sc_irq_ipc_handle,4,2      ## @imx_sc_irq_ipc_handle
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_imx_scu_irq_callback,4,2       ## @imx_scu_irq_callback
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gip3"

L_.str.1:                               ## @.str.1
	.asciz	"failed to request mbox chan gip3, ret %d\n"

	.comm	_imx_sc_irq_work,4,2            ## @imx_sc_irq_work
	.comm	_imx_scu_irq_work_handler,4,2   ## @imx_scu_irq_work_handler
L_.str.2:                               ## @.str.2
	.asciz	"mboxes"

L_.str.3:                               ## @.str.3
	.asciz	"#mbox-cells"

L_.str.4:                               ## @.str.4
	.asciz	"mu"

	.comm	_IMX_SC_R_MU_0A,8,3             ## @IMX_SC_R_MU_0A
	.comm	_mu_resource_id,8,3             ## @mu_resource_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_imx_scu_enable_general_irq_channel ; -- Begin function imx_scu_enable_general_irq_channel
	.p2align	2
_imx_scu_enable_general_irq_channel:    ; @imx_scu_enable_general_irq_channel
	.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	x19, x0
Lloh0:
	adrp	x0, _imx_sc_irq_ipc_handle@GOTPAGE
Lloh1:
	ldr	x0, [x0, _imx_sc_irq_ipc_handle@GOTPAGEOFF]
	bl	_imx_scu_get_handle
	mov	x21, x0
	cbz	w0, LBB0_2
LBB0_1:
	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
LBB0_2:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	str	x19, [x0, #8]
Lloh5:
	adrp	x8, _imx_scu_irq_callback@GOTPAGE
Lloh6:
	ldr	x8, [x8, _imx_scu_irq_callback@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x0]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_mbox_request_channel_byname
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x21, x0
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
	mov	x0, x19
	mov	x1, x20
	bl	_devm_kfree
	b	LBB0_1
LBB0_5:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_1
LBB0_6:
Lloh15:
	adrp	x8, _imx_scu_irq_work_handler@GOTPAGE
Lloh16:
	ldr	x8, [x8, _imx_scu_irq_work_handler@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x0, _imx_sc_irq_work@GOTPAGE
Lloh19:
	ldr	x0, [x0, _imx_sc_irq_work@GOTPAGEOFF]
	bl	_INIT_WORK
	ldr	w0, [x19]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh22:
	adrp	x2, l_.str.3@PAGE
Lloh23:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x4, sp, #8
	mov	w3, #0
	bl	_of_parse_phandle_with_args
	cbz	w0, LBB0_8
; %bb.7:
	mov	x8, #0
	b	LBB0_9
LBB0_8:
	ldr	w0, [sp, #8]
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_of_alias_get_id
	cmp	w0, #0
	csinc	w8, w0, wzr, ge
LBB0_9:
	mov	w21, #0
Lloh26:
	adrp	x9, _IMX_SC_R_MU_0A@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IMX_SC_R_MU_0A@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	add	x8, x9, x8
Lloh29:
	adrp	x9, _mu_resource_id@GOTPAGE
Lloh30:
	ldr	x9, [x9, _mu_resource_id@GOTPAGEOFF]
Lloh31:
	str	x8, [x9]
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_imx_sc_irq_ipc_handle,4,2      ; @imx_sc_irq_ipc_handle
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_imx_scu_irq_callback,4,2       ; @imx_scu_irq_callback
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gip3"

l_.str.1:                               ; @.str.1
	.asciz	"failed to request mbox chan gip3, ret %d\n"

	.comm	_imx_sc_irq_work,4,2            ; @imx_sc_irq_work
	.comm	_imx_scu_irq_work_handler,4,2   ; @imx_scu_irq_work_handler
l_.str.2:                               ; @.str.2
	.asciz	"mboxes"

l_.str.3:                               ; @.str.3
	.asciz	"#mbox-cells"

l_.str.4:                               ; @.str.4
	.asciz	"mu"

	.comm	_IMX_SC_R_MU_0A,8,3             ; @IMX_SC_R_MU_0A
	.comm	_mu_resource_id,8,3             ; @mu_resource_id
.subsections_via_symbols
