	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_scu_irq_work_handler
_imx_scu_irq_work_handler:              ## @imx_scu_irq_work_handler
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -48(%rbp)
	movq	_IMX_SC_IRQ_NUM_GROUP@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_7
## %bb.1:
	xorl	%eax, %eax
	movq	_IMX_SC_RPC_SVC_IRQ@GOTPCREL(%rip), %r13
	movq	_IMX_SC_IRQ_FUNC_STATUS@GOTPCREL(%rip), %r14
	movq	_mu_resource_id@GOTPCREL(%rip), %r12
	movq	_imx_sc_irq_ipc_handle@GOTPCREL(%rip), %r15
	leaq	-88(%rbp), %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax
	incq	%rax
	movq	%rax, -48(%rbp)
	movq	_IMX_SC_IRQ_NUM_GROUP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_IMX_SC_RPC_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -52(%rbp)
	movl	(%r13), %ecx
	movl	%ecx, -56(%rbp)
	movl	(%r14), %ecx
	movl	%ecx, -60(%rbp)
	movl	$2, -64(%rbp)
	movl	(%r12), %ecx
	movl	%ecx, -72(%rbp)
	movq	%rax, -80(%rbp)
	movl	(%r15), %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_imx_scu_call_rpc
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-88(%rbp), %edi
	testl	%edi, %edi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	-48(%rbp), %rsi
	callq	_imx_scu_irq_notifier_call_chain
	jmp	LBB0_6
LBB0_3:
	movq	-48(%rbp), %rsi
	leaq	L_.str(%rip), %rdi
	movl	%eax, %edx
	callq	_pr_err
LBB0_7:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IMX_SC_IRQ_NUM_GROUP,8,3       ## @IMX_SC_IRQ_NUM_GROUP
	.comm	_IMX_SC_RPC_VERSION,4,2         ## @IMX_SC_RPC_VERSION
	.comm	_IMX_SC_RPC_SVC_IRQ,4,2         ## @IMX_SC_RPC_SVC_IRQ
	.comm	_IMX_SC_IRQ_FUNC_STATUS,4,2     ## @IMX_SC_IRQ_FUNC_STATUS
	.comm	_mu_resource_id,4,2             ## @mu_resource_id
	.comm	_imx_sc_irq_ipc_handle,4,2      ## @imx_sc_irq_ipc_handle
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get irq group %d status failed, ret %d\n"

	.no_dead_strip	_imx_scu_irq_work_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx_scu_irq_work_handler
_imx_scu_irq_work_handler:              ; @imx_scu_irq_work_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	str	xzr, [sp]
Lloh0:
	adrp	x19, _IMX_SC_IRQ_NUM_GROUP@GOTPAGE
Lloh1:
	ldr	x19, [x19, _IMX_SC_IRQ_NUM_GROUP@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x8, #0
Lloh2:
	adrp	x20, _IMX_SC_RPC_VERSION@GOTPAGE
Lloh3:
	ldr	x20, [x20, _IMX_SC_RPC_VERSION@GOTPAGEOFF]
Lloh4:
	adrp	x21, _IMX_SC_RPC_SVC_IRQ@GOTPAGE
Lloh5:
	ldr	x21, [x21, _IMX_SC_RPC_SVC_IRQ@GOTPAGEOFF]
Lloh6:
	adrp	x22, _IMX_SC_IRQ_FUNC_STATUS@GOTPAGE
Lloh7:
	ldr	x22, [x22, _IMX_SC_IRQ_FUNC_STATUS@GOTPAGEOFF]
	mov	w23, #2
Lloh8:
	adrp	x24, _mu_resource_id@GOTPAGE
Lloh9:
	ldr	x24, [x24, _mu_resource_id@GOTPAGEOFF]
Lloh10:
	adrp	x25, _imx_sc_irq_ipc_handle@GOTPAGE
Lloh11:
	ldr	x25, [x25, _imx_sc_irq_ipc_handle@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp]
	add	x8, x8, #1
	str	x8, [sp]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x20]
	ldr	w9, [x21]
	ldr	w10, [x22]
	stp	w9, w11, [sp, #40]
	stp	w23, w10, [sp, #32]
	ldr	w9, [x24]
	str	w9, [sp, #24]
	str	x8, [sp, #16]
	ldr	w0, [x25]
	add	x1, sp, #8
	mov	w2, #1
	bl	_imx_scu_call_rpc
	cbnz	w0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [sp, #8]
	cbz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, sp
	bl	_imx_scu_irq_notifier_call_chain
	b	LBB0_2
LBB0_6:
	mov	x2, x0
	ldr	x1, [sp]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_7:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_IMX_SC_IRQ_NUM_GROUP,8,3       ; @IMX_SC_IRQ_NUM_GROUP
	.comm	_IMX_SC_RPC_VERSION,4,2         ; @IMX_SC_RPC_VERSION
	.comm	_IMX_SC_RPC_SVC_IRQ,4,2         ; @IMX_SC_RPC_SVC_IRQ
	.comm	_IMX_SC_IRQ_FUNC_STATUS,4,2     ; @IMX_SC_IRQ_FUNC_STATUS
	.comm	_mu_resource_id,4,2             ; @mu_resource_id
	.comm	_imx_sc_irq_ipc_handle,4,2      ; @imx_sc_irq_ipc_handle
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get irq group %d status failed, ret %d\n"

	.no_dead_strip	_imx_scu_irq_work_handler
.subsections_via_symbols
