	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ti_sci_rx_callback
_ti_sci_rx_callback:                    ## @ti_sci_rx_callback
	.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	%rsi, %r12
	callq	_cl_to_ti_sci_info
	movq	%rax, %rbx
	movq	24(%rax), %r14
	movq	8(%r12), %r15
	movq	(%r15), %r13
	movl	16(%rax), %esi
	movq	%r13, %rdi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	(%rbx), %rax
	movq	(%r12), %rdx
	movq	(%rax), %rcx
	cmpq	%rcx, %rdx
	jle	LBB0_4
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%r13, %rdx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_4:
	movq	8(%rbx), %rbx
	shlq	$4, %r13
	movq	(%rbx,%r13), %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
LBB0_3:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ti_sci_dump_header_dbg         ## TAILCALL
LBB0_6:
	leaq	(%rbx,%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ti_sci_dump_header_dbg
	movl	12(%rbx,%r13), %edi
	movq	8(%r12), %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	callq	_memcpy
	leaq	(%rbx,%r13), %rdi
	addq	$8, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_complete                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Message for %d is not expected!\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unable to handle %zu xfer(max %d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"Recv xfer %zu < expected %d length\n"

	.no_dead_strip	_ti_sci_rx_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ti_sci_rx_callback
_ti_sci_rx_callback:                    ; @ti_sci_rx_callback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x1
	bl	_cl_to_ti_sci_info
	mov	x23, x0
	ldr	x19, [x0, #24]
	ldr	x20, [x21, #8]
	ldr	x22, [x20]
	ldr	w1, [x0, #16]
	mov	x0, x22
	bl	_test_bit
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x2, [x21]
	ldr	x8, [x23]
	ldr	x8, [x8]
	cmp	x2, x8
	b.le	LBB0_4
; %bb.2:
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	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
	add	sp, sp, #80
	b	_dev_err
LBB0_4:
	ldr	x8, [x23, #8]
	add	x22, x8, x22, lsl #4
	ldr	x8, [x22]
	cmp	x2, x8
	b.ge	LBB0_7
; %bb.5:
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_dev_err
	mov	x0, x19
	mov	x1, x20
	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
	add	sp, sp, #80
	b	_ti_sci_dump_header_dbg
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_ti_sci_dump_header_dbg
	ldr	w0, [x22, #12]
	ldr	x1, [x21, #8]
	ldr	x2, [x22]
	bl	_memcpy
	add	x0, x22, #8
	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
	add	sp, sp, #80
	b	_complete
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Message for %d is not expected!\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unable to handle %zu xfer(max %d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"Recv xfer %zu < expected %d length\n"

	.no_dead_strip	_ti_sci_rx_callback
.subsections_via_symbols
