	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scmi_domain_reset
_scmi_domain_reset:                     ## @scmi_domain_reset
	.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	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	(%rax), %r13
	movslq	%esi, %r12
	movq	(%r13,%r12,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_ASYNCHRONOUS_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SCMI_PROTOCOL_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %r9
	movl	$24, %ecx
	xorl	%r8d, %r8d
	callq	_scmi_xfer_get_init
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	movl	$0, %eax
	cmovel	%eax, %ebx
	orl	-52(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	-48(%rbp), %rax
	movq	(%rax), %r14
	movl	%r12d, %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%r14)
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%r14)
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le32
	movq	%rax, (%r14)
	cmpq	$0, (%r13,%r12,8)
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	je	LBB0_3
## %bb.2:
	callq	_scmi_do_xfer_with_response
	jmp	LBB0_4
LBB0_3:
	callq	_scmi_do_xfer
LBB0_4:
	movl	%eax, %r14d
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_scmi_xfer_put
LBB0_5:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASYNCHRONOUS_RESET,4,2         ## @ASYNCHRONOUS_RESET
	.comm	_RESET,4,2                      ## @RESET
	.comm	_SCMI_PROTOCOL_RESET,4,2        ## @SCMI_PROTOCOL_RESET
	.no_dead_strip	_scmi_domain_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scmi_domain_reset
_scmi_domain_reset:                     ; @scmi_domain_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x24, [x8]
	ldr	x25, [x24, w1, sxtw #3]
Lloh0:
	adrp	x8, _ASYNCHRONOUS_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASYNCHRONOUS_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
Lloh3:
	adrp	x8, _RESET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RESET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _SCMI_PROTOCOL_RESET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SCMI_PROTOCOL_RESET@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x5, sp, #8
	mov	w3, #24
	mov	w4, #0
	bl	_scmi_xfer_get_init
	mov	x23, x0
	cbnz	w0, LBB0_5
; %bb.1:
	sxtw	x23, w21
	cmp	x25, #0
	csel	w8, wzr, w26, eq
	orr	w22, w8, w22
	ldr	x8, [sp, #8]
	ldr	x25, [x8]
	mov	x0, x21
	bl	_cpu_to_le32
	str	x0, [x25, #16]
	mov	x0, x22
	bl	_cpu_to_le32
	str	x0, [x25, #8]
	mov	x0, x20
	bl	_cpu_to_le32
	str	x0, [x25]
	ldr	x8, [x24, x23, lsl #3]
	ldr	x1, [sp, #8]
	mov	x0, x19
	cbz	x8, LBB0_3
; %bb.2:
	bl	_scmi_do_xfer_with_response
	b	LBB0_4
LBB0_3:
	bl	_scmi_do_xfer
LBB0_4:
	mov	x23, x0
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_scmi_xfer_put
LBB0_5:
	mov	x0, x23
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ASYNCHRONOUS_RESET,4,2         ; @ASYNCHRONOUS_RESET
	.comm	_RESET,4,2                      ; @RESET
	.comm	_SCMI_PROTOCOL_RESET,4,2        ; @SCMI_PROTOCOL_RESET
	.no_dead_strip	_scmi_domain_reset
.subsections_via_symbols
