	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ti_sci_cmd_get_revision
_ti_sci_cmd_get_revision:               ## @ti_sci_cmd_get_revision
	.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
	movq	%rdi, %r14
	movq	24(%rdi), %r12
	movq	_TI_SCI_MSG_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TI_SCI_FLAG_REQ_ACK_ON_PROCESSED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %ecx
	movl	$16, %r8d
	callq	_ti_sci_get_one_xfer
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_6
LBB0_2:
	movq	(%rbx), %r13
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ti_sci_do_xfer
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_dev_err
	jmp	LBB0_5
LBB0_4:
	movl	12(%r13), %eax
	movl	%eax, 16(%r14)
	movl	8(%r13), %eax
	movl	%eax, 12(%r14)
	movl	4(%r13), %eax
	movl	%eax, 8(%r14)
	movl	4(%r14), %edi
	movl	(%r13), %esi
	movl	$4, %edx
	callq	_strncpy
LBB0_5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ti_sci_put_one_xfer
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TI_SCI_MSG_VERSION,4,2         ## @TI_SCI_MSG_VERSION
	.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	"Message alloc failed(%d)\n"

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

	.no_dead_strip	_ti_sci_cmd_get_revision
.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_get_revision
_ti_sci_cmd_get_revision:               ; @ti_sci_cmd_get_revision
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x21, [x0, #24]
Lloh0:
	adrp	x8, _TI_SCI_MSG_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TI_SCI_MSG_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _TI_SCI_FLAG_REQ_ACK_ON_PROCESSED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TI_SCI_FLAG_REQ_ACK_ON_PROCESSED@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w3, #4
	mov	w4, #16
	bl	_ti_sci_get_one_xfer
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x22, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_dev_err
	b	LBB0_6
LBB0_2:
	ldr	x23, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_ti_sci_do_xfer
	mov	x22, x0
	cbz	w0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_dev_err
	b	LBB0_5
LBB0_4:
	ldr	w8, [x23, #12]
	str	w8, [x19, #16]
	ldur	d0, [x23, #4]
	str	d0, [x19, #8]
	ldr	w0, [x19, #4]
	ldr	w1, [x23]
	mov	w2, #4
	bl	_strncpy
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_ti_sci_put_one_xfer
LBB0_6:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_TI_SCI_MSG_VERSION,4,2         ; @TI_SCI_MSG_VERSION
	.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	"Message alloc failed(%d)\n"

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

	.no_dead_strip	_ti_sci_cmd_get_revision
.subsections_via_symbols
