	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ti_sci_cmd_proc_get_status
_ti_sci_cmd_proc_get_status:            ## @ti_sci_cmd_proc_get_status
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%r8, %r14
	movq	%rcx, %r13
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.12:
	movq	%rbx, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_3:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_handle_to_ti_sci_info
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_TI_SCI_MSG_GET_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TI_SCI_FLAG_REQ_ACK_ON_PROCESSED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$4, %ecx
	movl	$24, %r8d
	callq	_ti_sci_get_one_xfer
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_11
LBB0_5:
	movq	8(%r14), %rax
	movl	%r12d, (%rax)
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ti_sci_do_xfer
	testl	%eax, %eax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_10
LBB0_7:
	movq	(%r14), %rbx
	movq	%rbx, %rdi
	callq	_ti_sci_is_response_ack
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	_TI_SCI_ADDR_LOW_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	movl	16(%rbx), %edx
	movq	_TI_SCI_ADDR_HIGH_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_TI_SCI_ADDR_HIGH_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	orl	%eax, %edx
	movl	%edx, (%r15)
	movl	12(%rbx), %eax
	movl	%eax, (%r13)
	movl	8(%rbx), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	4(%rbx), %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_8:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_ti_sci_put_one_xfer
LBB0_11:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TI_SCI_MSG_GET_STATUS,4,2      ## @TI_SCI_MSG_GET_STATUS
	.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"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_TI_SCI_ADDR_LOW_MASK,4,2       ## @TI_SCI_ADDR_LOW_MASK
	.comm	_TI_SCI_ADDR_HIGH_SHIFT,4,2     ## @TI_SCI_ADDR_HIGH_SHIFT
	.comm	_TI_SCI_ADDR_HIGH_MASK,4,2      ## @TI_SCI_ADDR_HIGH_MASK
	.no_dead_strip	_ti_sci_cmd_proc_get_status
.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_proc_get_status
_ti_sci_cmd_proc_get_status:            ; @ti_sci_cmd_proc_get_status
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x24, x2
	mov	x25, x1
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_12
LBB0_4:
	mov	x0, x19
	bl	_handle_to_ti_sci_info
	mov	x19, x0
	ldr	x26, [x0, #8]
Lloh3:
	adrp	x8, _TI_SCI_MSG_GET_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TI_SCI_MSG_GET_STATUS@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, #4
	mov	w4, #24
	bl	_ti_sci_get_one_xfer
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x23
	bl	_PTR_ERR
	mov	x25, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x26
	mov	x2, x25
	bl	_dev_err
	b	LBB0_12
LBB0_6:
	ldr	x8, [x23, #8]
	str	w25, [x8]
	mov	x0, x19
	mov	x1, x23
	bl	_ti_sci_do_xfer
	cbz	w0, LBB0_8
; %bb.7:
	mov	x25, x0
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x26
	mov	x2, x25
	bl	_dev_err
	b	LBB0_11
LBB0_8:
	ldr	x26, [x23]
	mov	x0, x26
	bl	_ti_sci_is_response_ack
	cbz	w0, LBB0_10
; %bb.9:
	mov	w25, #0
	ldr	w8, [x26]
Lloh13:
	adrp	x9, _TI_SCI_ADDR_LOW_MASK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TI_SCI_ADDR_LOW_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	and	w8, w9, w8
	ldr	w9, [x26, #16]
Lloh16:
	adrp	x10, _TI_SCI_ADDR_HIGH_SHIFT@GOTPAGE
Lloh17:
	ldr	x10, [x10, _TI_SCI_ADDR_HIGH_SHIFT@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	lsl	w9, w9, w10
Lloh19:
	adrp	x10, _TI_SCI_ADDR_HIGH_MASK@GOTPAGE
Lloh20:
	ldr	x10, [x10, _TI_SCI_ADDR_HIGH_MASK@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	and	w9, w9, w10
	orr	w8, w9, w8
	str	w8, [x24]
	ldr	w8, [x26, #12]
	str	w8, [x22]
	ldr	w8, [x26, #8]
	str	w8, [x21]
	ldr	w8, [x26, #4]
	str	w8, [x20]
	b	LBB0_11
LBB0_10:
Lloh22:
	adrp	x8, _ENODEV@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_11:
	mov	x0, x19
	mov	x1, x23
	bl	_ti_sci_put_one_xfer
LBB0_12:
	mov	x0, x25
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TI_SCI_MSG_GET_STATUS,4,2      ; @TI_SCI_MSG_GET_STATUS
	.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"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_TI_SCI_ADDR_LOW_MASK,4,2       ; @TI_SCI_ADDR_LOW_MASK
	.comm	_TI_SCI_ADDR_HIGH_SHIFT,4,2     ; @TI_SCI_ADDR_HIGH_SHIFT
	.comm	_TI_SCI_ADDR_HIGH_MASK,4,2      ; @TI_SCI_ADDR_HIGH_MASK
	.no_dead_strip	_ti_sci_cmd_proc_get_status
.subsections_via_symbols
