	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ti_sci_manage_irq
_ti_sci_manage_irq:                     ## @ti_sci_manage_irq
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -104(%rbp)                 ## 8-byte Spill
	movq	%r8, -128(%rbp)                 ## 8-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	56(%rbp), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	48(%rbp), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	40(%rbp), %r12
	movq	32(%rbp), %r13
	movq	24(%rbp), %r15
	movq	16(%rbp), %r14
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.10:
	movq	%rbx, %rdi
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	-120(%rbp), %r15                ## 8-byte Reload
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	-128(%rbp), %r14                ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	_handle_to_ti_sci_info
	movq	%rax, %rbx
	movq	8(%rax), %r12
	movq	_TI_SCI_FLAG_REQ_ACK_ON_PROCESSED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movl	$80, %ecx
	movl	$4, %r8d
	callq	_ti_sci_get_one_xfer
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_9
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_5:
	movq	(%r13), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 72(%rax)
	movq	%r15, 64(%rax)
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 56(%rax)
	movq	%r14, 48(%rax)
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	%rcx, 40(%rax)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 32(%rax)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 24(%rax)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 16(%rax)
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%rax)
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	%rbx, %r14
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ti_sci_do_xfer
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_8
LBB0_7:
	movq	(%r13), %rdi
	callq	_ti_sci_is_response_ack
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovnel	%ecx, %ebx
LBB0_8:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ti_sci_put_one_xfer
LBB0_9:
	movl	%ebx, %eax
	addq	$88, %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_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
	.no_dead_strip	_ti_sci_manage_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ti_sci_manage_irq
_ti_sci_manage_irq:                     ; @ti_sci_manage_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	stp	x7, x6, [sp, #48]               ; 16-byte Folded Spill
	mov	x25, x5
	mov	x21, x4
	mov	x22, x3
	mov	x28, x2
	mov	x24, x1
	mov	x19, x0
	ldp	x26, x23, [x29, #32]
	ldp	x20, x27, [x29, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_PTR_ERR
LBB0_2:
	stp	x26, x23, [sp, #32]             ; 16-byte Folded Spill
	str	w24, [sp, #12]                  ; 4-byte Folded Spill
	stp	x20, x27, [sp, #16]             ; 16-byte Folded Spill
	ldr	x23, [sp, #56]                  ; 8-byte Folded Reload
	cbz	x19, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_handle_to_ti_sci_info
	mov	x19, x0
	ldr	x24, [x0, #8]
Lloh0:
	adrp	x8, _TI_SCI_FLAG_REQ_ACK_ON_PROCESSED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TI_SCI_FLAG_REQ_ACK_ON_PROCESSED@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	ldr	x1, [sp, #40]                   ; 8-byte Folded Reload
	mov	w3, #80
	mov	w4, #4
	bl	_ti_sci_get_one_xfer
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	mov	x2, x21
	bl	_dev_err
	b	LBB0_10
LBB0_5:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_6:
	ldr	x8, [x20]
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	str	w9, [x8, #72]
	stp	x22, x28, [x8, #56]
	stp	x25, x21, [x8, #40]
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	stp	x9, x23, [x8, #24]
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	stp	x9, x10, [x8, #8]
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	str	x9, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_ti_sci_do_xfer
	cbz	w0, LBB0_8
; %bb.7:
	mov	x21, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x24
	mov	x2, x21
	bl	_dev_err
	b	LBB0_9
LBB0_8:
	ldr	x0, [x20]
	bl	_ti_sci_is_response_ack
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w21, wzr, w8, ne
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	bl	_ti_sci_put_one_xfer
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.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
	.no_dead_strip	_ti_sci_manage_irq
.subsections_via_symbols
