	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmtp_send_interopmsg
_cmtp_send_interopmsg:                  ## @cmtp_send_interopmsg
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r8d
	movl	%edx, %r14d
	movl	%esi, %edx
	movq	%rdi, %rbx
	movl	16(%rbp), %r15d
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%r14d, %ecx
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	callq	_BT_DBG
	movq	_CAPI_MSG_BASELEN@GOTPCREL(%rip), %rax
	leal	6(%r15), %r13d
	movl	(%rax), %edi
	addl	%r13d, %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_alloc_skb
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	_CAPI_MSG_BASELEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	addl	%r13d, %esi
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_skb_put
	movq	%rax, %r12
	addl	(%rbx), %r13d
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_capimsg_setu16
	movq	%r12, %rdi
	movl	$2, %esi
	movl	%r14d, %edx
	callq	_capimsg_setu16
	movq	_CAPI_INTEROPERABILITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_capimsg_setu8
	movq	%r12, %rdi
	movl	$5, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_capimsg_setu8
	movq	%r12, %rdi
	movl	$6, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_capimsg_setu16
	movq	%r12, %rdi
	movl	$8, %esi
	movl	$1, %edx
	callq	_capimsg_setu16
	leal	3(%r15), %edx
	movq	%r12, %rdi
	movl	$10, %esi
	callq	_capimsg_setu8
	movq	%r12, %rdi
	movl	$11, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_capimsg_setu16
	movq	%r12, %rdi
	movl	$13, %esi
	movl	%r15d, %edx
	callq	_capimsg_setu8
	testl	%r15d, %r15d
	jle	LBB0_3
## %bb.2:
	addq	$14, %r12
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_memcpy
LBB0_3:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cmtp_send_capimsg              ## TAILCALL
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	addq	$40, %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 subcmd 0x%02x appl %d msgnum %d"

	.comm	_CAPI_MSG_BASELEN,4,2           ## @CAPI_MSG_BASELEN
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.1:                               ## @.str.1
	.asciz	"Can't allocate memory for interoperability packet"

	.comm	_CAPI_INTEROPERABILITY,4,2      ## @CAPI_INTEROPERABILITY
	.no_dead_strip	_cmtp_send_interopmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmtp_send_interopmsg
_cmtp_send_interopmsg:                  ; @cmtp_send_interopmsg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x6
	mov	x24, x5
	mov	x22, x4
	mov	x25, x3
	mov	x27, x2
	mov	x26, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x26
	mov	x3, x27
	mov	x4, x25
	bl	_BT_DBG
Lloh2:
	adrp	x28, _CAPI_MSG_BASELEN@GOTPAGE
Lloh3:
	ldr	x28, [x28, _CAPI_MSG_BASELEN@GOTPAGEOFF]
	ldr	w8, [x28]
	add	w21, w19, #6
	add	w0, w21, w8
Lloh4:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_alloc_skb
	cbz	x0, LBB0_4
; %bb.1:
	mov	x23, x0
	str	x24, [sp, #8]                   ; 8-byte Folded Spill
	ldr	w8, [x28]
	add	w1, w21, w8
	bl	_skb_put
	mov	x24, x0
	ldr	w8, [x28]
	add	w2, w21, w8
	mov	w1, #0
	bl	_capimsg_setu16
	mov	x0, x24
	mov	w1, #2
	mov	x2, x27
	bl	_capimsg_setu16
Lloh7:
	adrp	x8, _CAPI_INTEROPERABILITY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CAPI_INTEROPERABILITY@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x24
	mov	w1, #4
	bl	_capimsg_setu8
	mov	x0, x24
	mov	w1, #5
	mov	x2, x26
	bl	_capimsg_setu8
	mov	x0, x24
	mov	w1, #6
	mov	x2, x25
	bl	_capimsg_setu16
	mov	x0, x24
	mov	w1, #8
	mov	w2, #1
	bl	_capimsg_setu16
	add	w2, w19, #3
	mov	x0, x24
	mov	w1, #10
	bl	_capimsg_setu8
	mov	x0, x24
	mov	w1, #11
	mov	x2, x22
	bl	_capimsg_setu16
	mov	x0, x24
	mov	w1, #13
	mov	x2, x19
	bl	_capimsg_setu8
	cmp	w19, #1
	b.lt	LBB0_3
; %bb.2:
	add	x0, x24, #14
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x19
	bl	_memcpy
LBB0_3:
	mov	x0, x20
	mov	x1, x23
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_cmtp_send_capimsg
LBB0_4:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_BT_ERR
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"session %p subcmd 0x%02x appl %d msgnum %d"

	.comm	_CAPI_MSG_BASELEN,4,2           ; @CAPI_MSG_BASELEN
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.1:                               ; @.str.1
	.asciz	"Can't allocate memory for interoperability packet"

	.comm	_CAPI_INTEROPERABILITY,4,2      ; @CAPI_INTEROPERABILITY
	.no_dead_strip	_cmtp_send_interopmsg
.subsections_via_symbols
