	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ti_sci_cmd_ring_get_config
_ti_sci_cmd_ring_get_config:            ## @ti_sci_cmd_ring_get_config
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, %r15
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_8
LBB0_2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_handle_to_ti_sci_info
	movq	%rax, %rbx
	movq	8(%rax), %r14
	movq	_TI_SCI_MSG_RM_RING_GET_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TI_SCI_FLAG_REQ_ACK_ON_PROCESSED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$16, %ecx
	movl	$40, %r8d
	callq	_ti_sci_get_one_xfer
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_8
LBB0_4:
	movq	(%r12), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%rax)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_ti_sci_do_xfer
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	movl	%eax, %r13d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_7:
	movq	%r12, %rsi
	callq	_ti_sci_put_one_xfer
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, %ecx
	callq	_dev_dbg
LBB0_8:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	(%r12), %r13
	movq	%r13, %rdi
	callq	_ti_sci_is_response_ack
	testl	%eax, %eax
	je	LBB0_22
## %bb.10:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.11:
	movl	32(%r13), %eax
	movl	%eax, (%rcx)
LBB0_12:
	testq	%r15, %r15
	je	LBB0_14
## %bb.13:
	movq	24(%r13), %rax
	movq	%rax, (%r15)
LBB0_14:
	movq	16(%rbp), %rax
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.15:
	movq	16(%r13), %rcx
	movq	%rcx, (%rdx)
LBB0_16:
	movq	24(%rbp), %rcx
	testq	%rax, %rax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_18
## %bb.17:
	movq	8(%r13), %rdx
	movq	%rdx, (%rax)
LBB0_18:
	movq	32(%rbp), %rax
	testq	%rcx, %rcx
	je	LBB0_20
## %bb.19:
	movl	4(%r13), %edx
	movl	%edx, (%rcx)
LBB0_20:
	movq	%r13, %rcx
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_7
## %bb.21:
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	jmp	LBB0_7
LBB0_22:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TI_SCI_MSG_RM_RING_GET_CFG,4,2 ## @TI_SCI_MSG_RM_RING_GET_CFG
	.comm	_TI_SCI_FLAG_REQ_ACK_ON_PROCESSED,4,2 ## @TI_SCI_FLAG_REQ_ACK_ON_PROCESSED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RM_RA:Message get config failed(%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"RM_RA:Mbox get config send fail %d\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"RM_RA:get config ring %u ret:%d\n"

	.no_dead_strip	_ti_sci_cmd_ring_get_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ti_sci_cmd_ring_get_config
_ti_sci_cmd_ring_get_config:            ; @ti_sci_cmd_ring_get_config
	.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	x23, x7
	mov	x24, x6
	mov	x25, x5
	mov	x26, x4
	mov	x27, x3
	mov	x19, x2
	mov	x28, x1
	mov	x20, x0
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w28, w8
	b	LBB0_7
LBB0_2:
	mov	x0, x20
	bl	_handle_to_ti_sci_info
	mov	x21, x0
	ldr	x20, [x0, #8]
Lloh3:
	adrp	x8, _TI_SCI_MSG_RM_RING_GET_CFG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TI_SCI_MSG_RM_RING_GET_CFG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _TI_SCI_FLAG_REQ_ACK_ON_PROCESSED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TI_SCI_FLAG_REQ_ACK_ON_PROCESSED@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w3, #16
	mov	w4, #40
	bl	_ti_sci_get_one_xfer
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_PTR_ERR
	mov	x28, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x28
	bl	_dev_err
	b	LBB0_7
LBB0_4:
	ldr	x8, [x22]
	stp	x19, x28, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_ti_sci_do_xfer
	cbz	w0, LBB0_8
; %bb.5:
	mov	x28, x0
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x28
	bl	_dev_err
LBB0_6:
	mov	x0, x21
	mov	x1, x22
	bl	_ti_sci_put_one_xfer
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x3, x28
	bl	_dev_dbg
LBB0_7:
	mov	x0, x28
	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
LBB0_8:
	ldr	x28, [x22]
	mov	x0, x28
	bl	_ti_sci_is_response_ack
	cbz	w0, LBB0_21
; %bb.9:
	cbz	x27, LBB0_11
; %bb.10:
	ldr	w8, [x28, #32]
	str	w8, [x27]
LBB0_11:
	cbz	x26, LBB0_13
; %bb.12:
	ldr	x8, [x28, #24]
	str	x8, [x26]
LBB0_13:
	cbz	x25, LBB0_15
; %bb.14:
	ldr	x8, [x28, #16]
	str	x8, [x25]
LBB0_15:
	ldr	x8, [x29, #16]
	cbz	x24, LBB0_17
; %bb.16:
	ldr	x9, [x28, #8]
	str	x9, [x24]
LBB0_17:
	cbz	x23, LBB0_19
; %bb.18:
	ldr	w9, [x28, #4]
	str	w9, [x23]
LBB0_19:
	cbz	x8, LBB0_22
; %bb.20:
	mov	x9, x28
	mov	w28, #0
	ldr	w9, [x9]
	str	w9, [x8]
	b	LBB0_6
LBB0_21:
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w28, w8
	b	LBB0_6
LBB0_22:
	mov	w28, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TI_SCI_MSG_RM_RING_GET_CFG,4,2 ; @TI_SCI_MSG_RM_RING_GET_CFG
	.comm	_TI_SCI_FLAG_REQ_ACK_ON_PROCESSED,4,2 ; @TI_SCI_FLAG_REQ_ACK_ON_PROCESSED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RM_RA:Message get config failed(%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"RM_RA:Mbox get config send fail %d\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"RM_RA:get config ring %u ret:%d\n"

	.no_dead_strip	_ti_sci_cmd_ring_get_config
.subsections_via_symbols
