	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RIOSuspendBootRta              ## -- Begin function RIOSuspendBootRta
	.p2align	4, 0x90
_RIOSuspendBootRta:                     ## @RIOSuspendBootRta
	.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
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_RIO_DEBUG_CMD@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leal	65(%r12), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_rio_dprintk
	xorl	%eax, %eax
	callq	_RIOGetCmdBlk
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	%ebx, (%rax)
	movq	_BOOT_RUP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 32(%rax)
	movq	$0, 24(%rax)
	movq	%rcx, 16(%rax)
	movl	$132, 4(%rax)
	movq	_IWAIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	8(%rax), %rdx
	movl	%ecx, (%rdx)
	movl	%r12d, 4(%rdx)
	movq	_IWAIT_MAGIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movzbl	%cl, %esi
	movl	%esi, 8(%rdx)
	movzbl	%ch, %ecx
	movl	%ecx, 12(%rdx)
	decl	%ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_RIOQueueCmdBlk
	movq	_RIO_FAIL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	_EIO@GOTPCREL(%rip), %rbx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_4
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rbx
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movl	(%r13), %edi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_rio_dprintk
	subl	(%rbx), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RIO_DEBUG_CMD,4,2              ## @RIO_DEBUG_CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SUSPEND BOOT ON RTA ID %d, link %c\n"

L_.str.1:                               ## @.str.1
	.asciz	"SUSPEND BOOT ON RTA: GetCmdBlk failed\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_BOOT_RUP,8,3                   ## @BOOT_RUP
	.comm	_IWAIT,4,2                      ## @IWAIT
	.comm	_IWAIT_MAGIC,4,2                ## @IWAIT_MAGIC
	.comm	_RIO_FAIL,8,3                   ## @RIO_FAIL
L_.str.2:                               ## @.str.2
	.asciz	"SUSPEND BOOT ON RTA: Failed to queue iwait command\n"

	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RIOSuspendBootRta              ; -- Begin function RIOSuspendBootRta
	.p2align	2
_RIOSuspendBootRta:                     ; @RIOSuspendBootRta
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _RIO_DEBUG_CMD@GOTPAGE
Lloh1:
	ldr	x22, [x22, _RIO_DEBUG_CMD@GOTPAGEOFF]
	ldr	w0, [x22]
	add	w8, w2, #65
	stp	x20, x8, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_rio_dprintk
	bl	_RIOGetCmdBlk
	cbz	x0, LBB0_3
; %bb.1:
	mov	x2, x0
Lloh4:
	adrp	x8, _BOOT_RUP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BOOT_RUP@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	stp	xzr, x8, [x0, #24]
	str	x8, [x0, #16]
	mov	w8, #132
	stp	w20, w8, [x0]
Lloh7:
	adrp	x8, _IWAIT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IWAIT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	x9, [x0, #8]
	stp	w8, w21, [x9]
Lloh10:
	adrp	x8, _IWAIT_MAGIC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IWAIT_MAGIC@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	and	w10, w8, #0xff
	ubfx	w8, w8, #8, #8
	stp	w10, w8, [x9, #8]
	sub	w1, w20, #1
	mov	x0, x19
	bl	_RIOQueueCmdBlk
Lloh13:
	adrp	x8, _RIO_FAIL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RIO_FAIL@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
Lloh16:
	adrp	x19, _EIO@GOTPAGE
Lloh17:
	ldr	x19, [x19, _EIO@GOTPAGEOFF]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh20:
	adrp	x19, _ENXIO@GOTPAGE
Lloh21:
	ldr	x19, [x19, _ENXIO@GOTPAGEOFF]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	ldr	w0, [x22]
	bl	_rio_dprintk
	ldr	w8, [x19]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_RIO_DEBUG_CMD,4,2              ; @RIO_DEBUG_CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SUSPEND BOOT ON RTA ID %d, link %c\n"

l_.str.1:                               ; @.str.1
	.asciz	"SUSPEND BOOT ON RTA: GetCmdBlk failed\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_BOOT_RUP,8,3                   ; @BOOT_RUP
	.comm	_IWAIT,4,2                      ; @IWAIT
	.comm	_IWAIT_MAGIC,4,2                ; @IWAIT_MAGIC
	.comm	_RIO_FAIL,8,3                   ; @RIO_FAIL
l_.str.2:                               ; @.str.2
	.asciz	"SUSPEND BOOT ON RTA: Failed to queue iwait command\n"

	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
