	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmtp_process_transmit
_cmtp_process_transmit:                 ## @cmtp_process_transmit
	.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	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_BT_DBG
	movl	(%r14), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_alloc_skb
	testq	%rax, %rax
	je	LBB0_18
## %bb.1:
	movq	%rax, %r12
	leaq	4(%r14), %rbx
	movq	%rbx, %rdi
	callq	_skb_dequeue
	testq	%rax, %rax
	je	LBB0_17
## %bb.2:
	movq	%rax, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_skb_queue_head
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_skb_dequeue
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_17
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %r15
	movl	(%r14), %esi
	movl	(%r12), %edx
	subl	%edx, %esi
	cmpl	$4, %esi
	ja	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r12), %esi
	movq	%r14, %rdi
	callq	_cmtp_send_frame
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_skb_trim
	movl	(%r14), %esi
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_uint@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	$258, %esi                      ## imm = 0x102
	adcl	$-3, %esi
	movl	(%r13), %edx
	callq	_min_t
	movl	%eax, %ebx
	cmpq	$0, (%r15)
	jns	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_cmtp_alloc_block_id
	movq	%rax, (%r15)
	testq	%rax, %rax
	js	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	cmpl	$255, %ebx
	ja	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$2, %esi
	callq	_skb_put
	movl	(%r15), %ecx
	andl	$15, %ecx
	xorl	%edx, %edx
	cmpl	%ebx, (%r13)
	setne	%dl
	leal	(%rdx,%rcx,4), %ecx
	orb	$64, %cl
	movb	%cl, (%rax)
	movb	%bl, 1(%rax)
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$3, %esi
	callq	_skb_put
	movl	(%r15), %ecx
	andl	$15, %ecx
	xorl	%edx, %edx
	cmpl	%ebx, (%r13)
	setne	%dl
	leal	(%rdx,%rcx,4), %ecx
	orb	$-128, %cl
	movb	%cl, (%rax)
	movb	%bl, 1(%rax)
	movb	%bh, 2(%rax)
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_skb_put
	movq	%r13, %rdi
	movq	%rax, %rsi
	movl	%ebx, %edx
	callq	_skb_copy_from_linear_data
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_skb_pull
	cmpl	$0, (%r13)
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_cmtp_free_block_id
	cmpq	$0, 8(%r15)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movq	%r14, %rdi
	callq	_cmtp_send_frame
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_skb_trim
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_kfree_skb
	jmp	LBB0_16
LBB0_18:
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BT_ERR                         ## TAILCALL
LBB0_7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_skb_queue_head
LBB0_17:
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movq	%r14, %rdi
	callq	_cmtp_send_frame
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree_skb                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"session %p"

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.1:                               ## @.str.1
	.asciz	"Can't allocate memory for new frame"

	.comm	_uint,4,2                       ## @uint
	.no_dead_strip	_cmtp_process_transmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmtp_process_transmit
_cmtp_process_transmit:                 ; @cmtp_process_transmit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_BT_DBG
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_alloc_skb
	cbz	x0, LBB0_16
; %bb.1:
	mov	x20, x0
	add	x21, x19, #4
	mov	x0, x21
	bl	_skb_dequeue
	cbz	x0, LBB0_18
; %bb.2:
	mov	x22, x0
Lloh5:
	adrp	x24, _uint@GOTPAGE
Lloh6:
	ldr	x24, [x24, _uint@GOTPAGEOFF]
	mov	w25, #-3
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_skb_queue_head
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_skb_dequeue
	mov	x22, x0
	cbz	x0, LBB0_18
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x22, #8]
	ldr	w8, [x19]
	ldr	w2, [x20]
	sub	w8, w8, w2
	cmp	w8, #4
	b.hi	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_cmtp_send_frame
	mov	x0, x20
	mov	w1, #0
	bl	_skb_trim
	ldr	w8, [x19]
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x24]
	cmp	w8, #258
	cinc	w9, w25, lo
	add	w1, w9, w8
	ldr	w2, [x22]
	bl	_min_t
	mov	x23, x0
	ldr	x8, [x26]
	tbz	x8, #63, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_cmtp_alloc_block_id
	str	x0, [x26]
	tbnz	x0, #63, LBB0_17
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	cmp	w23, #255
	b.hi	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w1, #2
	bl	_skb_put
	ldr	w8, [x26]
	ldr	w9, [x22]
	cmp	w9, w23
	cset	w9, ne
	bfi	w9, w8, #2, #4
	orr	w8, w9, #0x40
	strb	w8, [x0]
	strb	w23, [x0, #1]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w1, #3
	bl	_skb_put
	ldr	w8, [x26]
	ldr	w9, [x22]
	cmp	w9, w23
	cset	w9, ne
	bfi	w9, w8, #2, #4
	orr	w8, w9, #0x80
	strb	w8, [x0]
	strb	w23, [x0, #1]
	lsr	w8, w23, #8
	strb	w8, [x0, #2]
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_skb_put
	mov	x1, x0
	mov	x0, x22
	mov	x2, x23
	bl	_skb_copy_from_linear_data
	mov	x0, x22
	mov	x1, x23
	bl	_skb_pull
	ldr	w8, [x22]
	cbnz	w8, LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x26]
	mov	x0, x19
	bl	_cmtp_free_block_id
	ldr	x8, [x26, #8]
	cbz	x8, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldp	w2, w1, [x20]
	mov	x0, x19
	bl	_cmtp_send_frame
	mov	x0, x20
	mov	w1, #0
	bl	_skb_trim
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_kfree_skb
	b	LBB0_4
LBB0_16:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_BT_ERR
LBB0_17:
	mov	x0, x21
	mov	x1, x22
	bl	_skb_queue_head
LBB0_18:
	ldp	w2, w1, [x20]
	mov	x0, x19
	bl	_cmtp_send_frame
	mov	x0, 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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_kfree_skb
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"session %p"

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.1:                               ; @.str.1
	.asciz	"Can't allocate memory for new frame"

	.comm	_uint,4,2                       ; @uint
	.no_dead_strip	_cmtp_process_transmit
.subsections_via_symbols
