	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmtp_recv_capimsg              ## -- Begin function cmtp_recv_capimsg
	.p2align	4, 0x90
_cmtp_recv_capimsg:                     ## @cmtp_recv_capimsg
	.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, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rcx
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_BT_DBG
	movq	(%rbx), %rax
	movq	_CAPI_MSG_BASELEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_1
## %bb.7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	8(%rbx), %edi
	callq	_CAPIMSG_COMMAND
	movq	_CAPI_INTEROPERABILITY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cmtp_recv_interopmsg           ## TAILCALL
LBB0_2:
	movl	(%r14), %eax
	movq	_CMTP_LOOPBACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	jae	LBB0_3
LBB0_10:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree_skb                      ## TAILCALL
LBB0_3:
	movl	8(%rbx), %edi
	callq	_CAPIMSG_COMMAND
	movq	%rax, %r15
	movl	8(%rbx), %edi
	callq	_CAPIMSG_SUBCOMMAND
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_CAPICMD
	movl	8(%rbx), %edi
	callq	_CAPIMSG_APPID
	movl	%eax, %r12d
	movl	8(%rbx), %edi
	callq	_CAPIMSG_CONTROL
	movl	%eax, %r15d
	movq	_CMTP_MAPPING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_cmtp_application_get
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	leaq	8(%r14), %r12
	movl	(%rax), %r13d
	movl	8(%rbx), %edi
	movl	%r13d, %esi
	callq	_CAPIMSG_SETAPPID
	movl	%r15d, %eax
	andl	$127, %eax
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.5:
	andl	$-128, %r15d
	orl	4(%r14), %r15d
	movl	8(%rbx), %edi
	movl	%r15d, %esi
	callq	_CAPIMSG_SETCONTROL
LBB0_6:
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_capi_ctr_handle_message        ## TAILCALL
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	callq	_BT_ERR
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"session %p skb %p len %d"

	.comm	_CAPI_MSG_BASELEN,8,3           ## @CAPI_MSG_BASELEN
	.comm	_CAPI_INTEROPERABILITY,8,3      ## @CAPI_INTEROPERABILITY
	.comm	_CMTP_LOOPBACK,4,2              ## @CMTP_LOOPBACK
	.comm	_CMTP_MAPPING,4,2               ## @CMTP_MAPPING
L_.str.1:                               ## @.str.1
	.asciz	"Can't find application with id %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmtp_recv_capimsg              ; -- Begin function cmtp_recv_capimsg
	.p2align	2
_cmtp_recv_capimsg:                     ; @cmtp_recv_capimsg
	.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, x1
	mov	x20, x0
	ldr	x3, [x1]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_BT_DBG
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _CAPI_MSG_BASELEN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CAPI_MSG_BASELEN@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	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
LBB0_2:
	ldr	w0, [x19, #8]
	bl	_CAPIMSG_COMMAND
Lloh5:
	adrp	x8, _CAPI_INTEROPERABILITY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CAPI_INTEROPERABILITY@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	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
	b	_cmtp_recv_interopmsg
LBB0_4:
	ldr	w8, [x20]
Lloh8:
	adrp	x9, _CMTP_LOOPBACK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CMTP_LOOPBACK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_6
LBB0_5:
	mov	x0, x19
	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
	b	_kfree_skb
LBB0_6:
	ldr	w0, [x19, #8]
	bl	_CAPIMSG_COMMAND
	mov	x21, x0
	ldr	w0, [x19, #8]
	bl	_CAPIMSG_SUBCOMMAND
	mov	x1, x0
	mov	x0, x21
	bl	_CAPICMD
	ldr	w0, [x19, #8]
	bl	_CAPIMSG_APPID
	mov	x22, x0
	ldr	w0, [x19, #8]
	bl	_CAPIMSG_CONTROL
	mov	x21, x0
Lloh11:
	adrp	x8, _CMTP_MAPPING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CMTP_MAPPING@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_cmtp_application_get
	cbz	x0, LBB0_10
; %bb.7:
	add	x22, x20, #8
	ldr	w23, [x0]
	ldr	w0, [x19, #8]
	mov	x1, x23
	bl	_CAPIMSG_SETAPPID
	and	w8, w21, #0x7f
	cmp	w8, #1
	b.ne	LBB0_9
; %bb.8:
	and	w8, w21, #0xffffff80
	ldr	w9, [x20, #4]
	orr	w1, w9, w8
	ldr	w0, [x19, #8]
	bl	_CAPIMSG_SETCONTROL
LBB0_9:
	mov	x0, x22
	mov	x1, x23
	mov	x2, x19
	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
	b	_capi_ctr_handle_message
LBB0_10:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_BT_ERR
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"session %p skb %p len %d"

	.comm	_CAPI_MSG_BASELEN,8,3           ; @CAPI_MSG_BASELEN
	.comm	_CAPI_INTEROPERABILITY,8,3      ; @CAPI_INTEROPERABILITY
	.comm	_CMTP_LOOPBACK,4,2              ; @CMTP_LOOPBACK
	.comm	_CMTP_MAPPING,4,2               ; @CMTP_MAPPING
l_.str.1:                               ; @.str.1
	.asciz	"Can't find application with id %d"

.subsections_via_symbols
