	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_delta_ipc_decode               ## -- Begin function delta_ipc_decode
	.p2align	4, 0x90
_delta_ipc_decode:                      ## @delta_ipc_decode
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_to_ctx
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_to_pctx
	movq	%rax, %r15
	movq	8(%rax), %r13
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.1:
	movq	8(%r13), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.4:
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.5:
	testq	%r14, %r14
	je	LBB0_13
## %bb.6:
	movq	%r14, %rax
	cmpq	$0, (%r14)
	je	LBB0_13
## %bb.7:
	movq	8(%rax), %r8
	testq	%r8, %r8
	je	LBB0_13
## %bb.8:
	leaq	(%r8,%rcx), %rax
	movq	8(%r12), %rdx
	movq	(%rdx), %r9
	cmpq	%r9, %rax
	jle	LBB0_18
## %bb.9:
	movl	(%r13), %edi
	movl	4(%r15), %edx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_24
LBB0_10:
	movl	(%r13), %edi
	movl	4(%r15), %edx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_14
LBB0_11:
	movl	(%r13), %edi
	movl	4(%r15), %edx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_14
LBB0_12:
	movl	(%r13), %edi
	movl	4(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_14
LBB0_13:
	movl	(%r13), %edi
	movl	4(%r15), %edx
	leaq	L_.str.3(%rip), %rsi
LBB0_14:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_16:
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	%r12, %rdi
	movl	%ecx, %edx
	callq	_is_valid_data
	testl	%eax, %eax
	je	LBB0_22
## %bb.19:
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	%r12, %rdi
	callq	_is_valid_data
	testl	%eax, %eax
	je	LBB0_23
## %bb.20:
	movq	_DELTA_IPC_DECODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	callq	_build_msg_header
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	8(%rcx), %eax
	movl	%eax, -80(%rbp)
	movq	(%rcx), %rsi
	movq	%r12, %rdi
	callq	_to_paddr
	movq	%rax, -64(%rbp)
	movl	8(%r14), %eax
	movl	%eax, -76(%rbp)
	movq	(%r14), %rsi
	movq	%r12, %rdi
	callq	_to_paddr
	movq	%rax, -72(%rbp)
	movl	(%rbx), %edi
	leaq	-80(%rbp), %rsi
	movl	$32, %edx
	callq	_rpmsg_send
	testl	%eax, %eax
	je	LBB0_25
## %bb.21:
	movl	%eax, %ebx
	movl	(%r13), %edi
	movl	4(%r15), %edx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r9
	movq	8(%rax), %r8
	leaq	L_.str.7(%rip), %rsi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	incl	(%r15)
	jmp	LBB0_17
LBB0_22:
	movl	(%r13), %edi
	movl	4(%r15), %edx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r8
	movq	8(%rax), %rcx
	movq	8(%r12), %rax
	movq	(%rax), %rsi
	movq	8(%rax), %r9
	leaq	(%r9,%rsi), %rax
	decq	%rax
	movq	%rax, (%rsp)
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_24
LBB0_23:
	movl	(%r13), %edi
	movl	4(%r15), %edx
	movq	(%r14), %r8
	movq	8(%r14), %rcx
	movq	8(%r12), %rax
	movq	(%rax), %rsi
	movq	8(%rax), %r9
	leaq	(%r9,%rsi), %rax
	decq	%rax
	movq	%rax, (%rsp)
	leaq	L_.str.6(%rip), %rsi
LBB0_24:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_25:
	movq	%r12, %rbx
	addq	$4, %rbx
	movq	_IPC_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_wait_for_completion_timeout
	testl	%eax, %eax
	je	LBB0_28
## %bb.26:
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	je	LBB0_29
## %bb.27:
	movl	(%r13), %edi
	movl	4(%r15), %edx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r9
	movq	8(%rax), %r8
	leaq	L_.str.9(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	incl	(%r15)
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_28:
	movl	(%r13), %edi
	movl	4(%r15), %edx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r8
	movq	8(%rax), %rcx
	leaq	L_.str.8(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	incl	(%r15)
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_29:
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s   ipc: failed to decode, invalid ipc handle\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"%s   ipc: failed to decode, rpmsg is not initialized\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s  ipc: failed to decode, empty parameter\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s  ipc: failed to decode, empty status\n"

L_.str.4:                               ## @.str.4
	.asciz	"%s   ipc: failed to decode, too large ipc parameter (%d bytes (param) + %d bytes (status) while max %d expected)\n"

L_.str.5:                               ## @.str.5
	.asciz	"%s   ipc: failed to decode, parameter is not in expected address range (size=%d, data=%p not in %p..%p)\n"

L_.str.6:                               ## @.str.6
	.asciz	"%s   ipc: failed to decode, status is not in expected address range (size=%d, data=%p not in %p..%p)\n"

	.comm	_DELTA_IPC_DECODE,4,2           ## @DELTA_IPC_DECODE
L_.str.7:                               ## @.str.7
	.asciz	"%s   ipc: failed to decode, rpmsg_send failed (%d) for DELTA_IPC_DECODE (size=%d, data=%p)\n"

	.comm	_IPC_TIMEOUT,4,2                ## @IPC_TIMEOUT
L_.str.8:                               ## @.str.8
	.asciz	"%s   ipc: failed to decode, timeout waiting for DELTA_IPC_DECODE callback (size=%d, data=%p)\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.9:                               ## @.str.9
	.asciz	"%s   ipc: failed to decode, DELTA_IPC_DECODE completed but with error (%d) (size=%d, data=%p)\n"

	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_delta_ipc_decode               ; -- Begin function delta_ipc_decode
	.p2align	2
_delta_ipc_decode:                      ; @delta_ipc_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, x2
	mov	x20, x1
	mov	x23, x0
	bl	_to_ctx
	mov	x21, x0
	bl	_to_pctx
	mov	x19, x0
	ldr	x24, [x0, #8]
	cbz	x23, LBB0_10
; %bb.1:
	ldr	x23, [x24, #8]
	cbz	x23, LBB0_12
; %bb.2:
	cbz	x20, LBB0_11
; %bb.3:
	ldr	x1, [x20]
	cbz	x1, LBB0_11
; %bb.4:
	ldr	x2, [x20, #8]
	cbz	x2, LBB0_11
; %bb.5:
	cbz	x22, LBB0_13
; %bb.6:
	ldr	x8, [x22]
	cbz	x8, LBB0_13
; %bb.7:
	ldr	x9, [x22, #8]
	cbz	x9, LBB0_13
; %bb.8:
	ldr	x8, [x21, #8]
	ldr	x10, [x8]
	add	x8, x9, x2
	cmp	x8, x10
	b.le	LBB0_17
; %bb.9:
	ldr	w0, [x24]
	ldr	w8, [x19, #4]
	stp	x9, x10, [sp, #8]
	str	x2, [sp]
Lloh0:
	adrp	x1, l_.str.4@PAGE
Lloh1:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x8
	b	LBB0_14
LBB0_10:
	ldr	w0, [x24]
	ldr	w2, [x19, #4]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_11:
	ldr	w0, [x24]
	ldr	w2, [x19, #4]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_12:
	ldr	w0, [x24]
	ldr	w2, [x19, #4]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_13:
	ldr	w0, [x24]
	ldr	w2, [x19, #4]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_14:
	bl	_dev_err
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_16:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_17:
	mov	x0, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_is_valid_data
	cbz	w0, LBB0_21
; %bb.18:
	ldr	x1, [x22]
	ldr	w2, [x22, #8]
	mov	x0, x21
	bl	_is_valid_data
	cbz	w0, LBB0_22
; %bb.19:
Lloh12:
	adrp	x8, _DELTA_IPC_DECODE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DELTA_IPC_DECODE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x8, sp, #32
	add	x2, x8, #24
	mov	x0, x21
	bl	_build_msg_header
	ldp	x1, x8, [x20]
	str	w8, [sp, #32]
	mov	x0, x21
	bl	_to_paddr
	str	x0, [sp, #48]
	ldp	x1, x8, [x22]
	str	w8, [sp, #36]
	mov	x0, x21
	bl	_to_paddr
	str	x0, [sp, #40]
	ldr	w0, [x23]
	add	x1, sp, #32
	mov	w2, #32
	bl	_rpmsg_send
	cbz	w0, LBB0_23
; %bb.20:
	mov	x22, x0
	ldr	w0, [x24]
	ldr	w2, [x19, #4]
	ldp	x9, x8, [x20]
	stp	x8, x9, [sp, #8]
	str	x22, [sp]
Lloh15:
	adrp	x1, l_.str.7@PAGE
Lloh16:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_err
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_16
LBB0_21:
	ldr	w0, [x24]
	ldr	w2, [x19, #4]
	ldp	x9, x8, [x20]
	ldr	x10, [x21, #8]
	ldp	x10, x11, [x10]
	add	x10, x11, x10
	sub	x10, x10, #1
	stp	x11, x10, [sp, #16]
	stp	x8, x9, [sp]
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_14
LBB0_22:
	ldr	w0, [x24]
	ldr	w2, [x19, #4]
	ldp	x9, x8, [x22]
	ldr	x10, [x21, #8]
	ldp	x10, x11, [x10]
	add	x10, x11, x10
	sub	x10, x10, #1
	stp	x11, x10, [sp, #16]
	stp	x8, x9, [sp]
Lloh19:
	adrp	x1, l_.str.6@PAGE
Lloh20:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_14
LBB0_23:
	add	x22, x21, #4
Lloh21:
	adrp	x8, _IPC_TIMEOUT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IPC_TIMEOUT@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x22
	bl	_wait_for_completion_timeout
	cbz	w0, LBB0_26
; %bb.24:
	ldr	w8, [x21]
	cbz	w8, LBB0_27
; %bb.25:
	ldr	w0, [x24]
	ldr	w2, [x19, #4]
	ldp	x10, x9, [x20]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh24:
	adrp	x1, l_.str.9@PAGE
Lloh25:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_dev_err
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
Lloh26:
	adrp	x8, _EIO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_15
LBB0_26:
	ldr	w0, [x24]
	ldr	w2, [x19, #4]
	ldp	x9, x8, [x20]
	stp	x8, x9, [sp]
Lloh28:
	adrp	x1, l_.str.8@PAGE
Lloh29:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_dev_err
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
Lloh30:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_15
LBB0_27:
	mov	w22, #0
	b	LBB0_16
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s   ipc: failed to decode, invalid ipc handle\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"%s   ipc: failed to decode, rpmsg is not initialized\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s  ipc: failed to decode, empty parameter\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s  ipc: failed to decode, empty status\n"

l_.str.4:                               ; @.str.4
	.asciz	"%s   ipc: failed to decode, too large ipc parameter (%d bytes (param) + %d bytes (status) while max %d expected)\n"

l_.str.5:                               ; @.str.5
	.asciz	"%s   ipc: failed to decode, parameter is not in expected address range (size=%d, data=%p not in %p..%p)\n"

l_.str.6:                               ; @.str.6
	.asciz	"%s   ipc: failed to decode, status is not in expected address range (size=%d, data=%p not in %p..%p)\n"

	.comm	_DELTA_IPC_DECODE,4,2           ; @DELTA_IPC_DECODE
l_.str.7:                               ; @.str.7
	.asciz	"%s   ipc: failed to decode, rpmsg_send failed (%d) for DELTA_IPC_DECODE (size=%d, data=%p)\n"

	.comm	_IPC_TIMEOUT,4,2                ; @IPC_TIMEOUT
l_.str.8:                               ; @.str.8
	.asciz	"%s   ipc: failed to decode, timeout waiting for DELTA_IPC_DECODE callback (size=%d, data=%p)\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.9:                               ; @.str.9
	.asciz	"%s   ipc: failed to decode, DELTA_IPC_DECODE completed but with error (%d) (size=%d, data=%p)\n"

	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
