	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmtp_recv_frame
_cmtp_recv_frame:                       ## @cmtp_recv_frame
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rsi
	movq	(%r14), %rcx
	leaq	L_.str(%rip), %rdi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_BT_DBG
	cmpq	$0, (%r14)
	jle	LBB0_12
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %r13d
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_skb_pull
	cmpq	$0, (%r14)
	jle	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movl	(%rax), %r14d
	movl	%r14d, %ecx
	andb	$-64, %cl
	cmpb	$-128, %cl
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %r12d
	movl	$0, %ebx
	cmpb	$64, %cl
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rax), %ebx
	movl	$2, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rax), %ebx
	shll	$8, %ebx
	orl	4(%rax), %ebx
	movl	$3, %r12d
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %r15d
	shrl	$2, %r15d
	andl	$15, %r15d
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_BT_DBG
	leal	(%rbx,%r12), %r13d
	movslq	%r13d, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rax, (%rcx)
	jl	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	andl	$3, %r14d
	cmpl	$1, %r14d
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%r14d, %r14d
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %edx
	shlq	$2, %rdx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	addq	8(%r14), %rdx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %ecx
	callq	_cmtp_add_msgpart
	movq	(%r12), %rax
	movq	(%rax,%r15,8), %rsi
	movq	%r12, %rdi
	callq	_cmtp_recv_capimsg
	movq	(%r12), %rax
	movq	$0, (%rax,%r15,8)
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %edx
	shlq	$2, %rdx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	addq	8(%r14), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	%ebx, %ecx
	callq	_cmtp_add_msgpart
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rax
	movl	%r15d, %ebx
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	callq	_kfree_skb
	movq	(%r14), %rax
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, (%rax,%rbx,8)
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	callq	_BT_ERR
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_12:
	movq	%r14, %rdi
	callq	_kfree_skb
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"session %p skb %p len %d"

L_.str.1:                               ## @.str.1
	.asciz	"hdr 0x%02x hdrlen %d len %d id %d"

L_.str.2:                               ## @.str.2
	.asciz	"Wrong size or header information in CMTP frame"

	.no_dead_strip	_cmtp_recv_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmtp_recv_frame
_cmtp_recv_frame:                       ; @cmtp_recv_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1]
	stp	x1, x8, [sp, #8]
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BT_DBG
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_19
; %bb.1:
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x26
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_skb_pull
	ldr	x8, [x19]
	cmp	x8, #0
	b.le	LBB0_19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w25, [x8]
	and	w9, w25, #0xc0
	cmp	w9, #128
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, #64
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w23, [x8, #4]
	mov	w26, #2
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	w9, w8, [x8, #4]
	orr	w23, w9, w8, lsl #8
	mov	w26, #3
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w23, #0
	mov	w26, #1
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ubfx	x24, x25, #2, #4
	stp	x23, x24, [sp, #16]
	stp	x25, x26, [sp]
	mov	x0, x21
	bl	_BT_DBG
	add	w22, w23, w26
	ldr	x8, [x19]
	cmp	x8, w22, sxtw
	b.lt	LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	cbz	w23, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	and	w8, w25, #0x3
	cmp	w8, #1
	b.eq	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w8, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	add	x2, x8, w26, uxtw #2
	mov	x0, x20
	mov	x1, x24
	mov	x3, x23
	bl	_cmtp_add_msgpart
	ldr	x8, [x20]
	lsl	x23, x24, #3
	ldr	x1, [x8, x23]
	mov	x0, x20
	bl	_cmtp_recv_capimsg
	ldr	x8, [x20]
	str	xzr, [x8, x23]
	b	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	add	x2, x8, w26, uxtw #2
	mov	x0, x20
	mov	x1, x24
	mov	x3, x23
	bl	_cmtp_add_msgpart
	b	LBB0_3
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	ldr	x0, [x8, w24, uxtw #3]
	cbz	x0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	bl	_kfree_skb
	ldr	x8, [x20]
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, w24
	str	xzr, [x8, x9, lsl #3]
	b	LBB0_3
LBB0_18:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_BT_ERR
LBB0_19:
	mov	x0, x19
	bl	_kfree_skb
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.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	"session %p skb %p len %d"

l_.str.1:                               ; @.str.1
	.asciz	"hdr 0x%02x hdrlen %d len %d id %d"

l_.str.2:                               ; @.str.2
	.asciz	"Wrong size or header information in CMTP frame"

	.no_dead_strip	_cmtp_recv_frame
.subsections_via_symbols
