	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmtp_add_msgpart
_cmtp_add_msgpart:                      ## @cmtp_add_msgpart
	.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
	movl	%ecx, %r13d
	movq	%rdx, %r12
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movslq	%esi, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rcx,8), %r15
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movl	%r13d, %ecx
	callq	_BT_DBG
	testq	%r15, %r15
	je	LBB0_1
## %bb.3:
	movl	(%r15), %edi
	addl	%r13d, %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_alloc_skb
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rax, %rbx
	movl	(%r15), %esi
	testl	%esi, %esi
	jle	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_skb_put
	movl	(%r15), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_skb_copy_from_linear_data
	jmp	LBB0_6
LBB0_1:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_alloc_skb
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
LBB0_6:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_skb_put
	movl	%eax, %edi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movq	(%r14), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, (%rax,%rcx,8)
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree_skb                      ## TAILCALL
LBB0_2:
	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
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"session %p buf %p count %d"

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

	.no_dead_strip	_cmtp_add_msgpart
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmtp_add_msgpart
_cmtp_add_msgpart:                      ; @cmtp_add_msgpart
	.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	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x19, [x8, w1, sxtw #3]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_BT_DBG
	cbz	x19, LBB0_4
; %bb.1:
	ldr	w8, [x19]
	add	w0, w8, w21
Lloh2:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_alloc_skb
	cbz	x0, LBB0_6
; %bb.2:
	mov	x24, x0
	ldr	w1, [x19]
	cmp	w1, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x0, x24
	bl	_skb_put
	mov	x1, x0
	ldr	w2, [x19]
	mov	x0, x19
	bl	_skb_copy_from_linear_data
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_alloc_skb
	mov	x24, x0
	cbz	x0, LBB0_6
LBB0_5:
	sxtw	x23, w23
	mov	x0, x24
	mov	x1, x21
	bl	_skb_put
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [x20]
	str	x24, [x8, x23, lsl #3]
	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:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	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	_BT_ERR
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"session %p buf %p count %d"

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

	.no_dead_strip	_cmtp_add_msgpart
.subsections_via_symbols
