	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_scu_ipc_command          ## -- Begin function intel_scu_ipc_command
	.p2align	4, 0x90
_intel_scu_ipc_command:                 ## @intel_scu_ipc_command
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movq	%r8, %r14
	movl	%ecx, %ebx
	movq	%rdx, %r13
	movl	%esi, %r12d
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	movq	_ipclock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_ipcdev@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.1:
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_4
## %bb.2:
	xorl	%r12d, %r12d
	movq	_ipcdev@GOTPCREL(%rip), %rbx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%r12), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_ipc_data_writel
	addq	$4, %r12
	decl	%r14d
	jne	LBB0_3
LBB0_4:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	shll	$16, %eax
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	shll	$12, %esi
	orl	-52(%rbp), %esi                 ## 4-byte Folded Reload
	orl	%eax, %esi
	movq	_ipcdev@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_ipc_command
	movq	%rbx, %rdi
	callq	_intel_scu_ipc_check_status
	movl	%eax, %r12d
	testl	%eax, %eax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_8
## %bb.5:
	testl	%r15d, %r15d
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	movq	_ipcdev@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_ipc_data_readl
	movl	%eax, (%r14,%rbx)
	addq	$4, %rbx
	decl	%r15d
	jne	LBB0_7
LBB0_8:
	movq	_ipclock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	jmp	LBB0_9
LBB0_10:
	movq	_ipclock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_9:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ipcdev,8,3                     ## @ipcdev
	.comm	_ipclock,4,2                    ## @ipclock
	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_scu_ipc_command          ; -- Begin function intel_scu_ipc_command
	.p2align	2
_intel_scu_ipc_command:                 ; @intel_scu_ipc_command
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x24, x0
Lloh0:
	adrp	x0, _ipclock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _ipclock@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x8, _ipcdev@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ipcdev@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.1:
	cmp	w21, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x25, #0
Lloh5:
	adrp	x26, _ipcdev@GOTPAGE
Lloh6:
	ldr	x26, [x26, _ipcdev@GOTPAGEOFF]
	mov	x27, x21
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23, x25]
	mov	x0, x26
	mov	x2, x25
	bl	_ipc_data_writel
	add	x25, x25, #4
	subs	w27, w27, #1
	b.ne	LBB0_3
LBB0_4:
	orr	w8, w24, w22, lsl #12
	orr	w1, w8, w21, lsl #16
Lloh7:
	adrp	x21, _ipcdev@GOTPAGE
Lloh8:
	ldr	x21, [x21, _ipcdev@GOTPAGEOFF]
	mov	x0, x21
	bl	_ipc_command
	mov	x0, x21
	bl	_intel_scu_ipc_check_status
	mov	x21, x0
	cmp	w0, #0
	ccmp	w19, #1, #8, eq
	b.lt	LBB0_7
; %bb.5:
	mov	x22, #0
Lloh9:
	adrp	x23, _ipcdev@GOTPAGE
Lloh10:
	ldr	x23, [x23, _ipcdev@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x22
	bl	_ipc_data_readl
	str	w0, [x20, x22]
	add	x22, x22, #4
	subs	w19, w19, #1
	b.ne	LBB0_6
LBB0_7:
Lloh11:
	adrp	x0, _ipclock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _ipclock@GOTPAGEOFF]
	bl	_mutex_unlock
	b	LBB0_9
LBB0_8:
Lloh13:
	adrp	x0, _ipclock@GOTPAGE
Lloh14:
	ldr	x0, [x0, _ipclock@GOTPAGEOFF]
	bl	_mutex_unlock
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ipcdev,8,3                     ; @ipcdev
	.comm	_ipclock,4,2                    ; @ipclock
	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
