	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rfcomm_send_pn
_rfcomm_send_pn:                        ## @rfcomm_send_pn
	.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	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	12(%rdx), %ecx
	movq	(%rdx), %r8
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_BT_DBG
	movl	8(%r14), %edi
	xorl	%esi, %esi
	callq	___addr
	movl	%eax, -84(%rbp)
	movq	_RFCOMM_UIH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	___ctrl
	movl	%eax, -88(%rbp)
	movl	$64, %edi
	callq	___len8
	movq	%rax, -96(%rbp)
	movq	_RFCOMM_PN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	___mcc_type
	movl	%eax, -24(%rbp)
	movl	$48, %edi
	callq	___len8
	movq	%rax, -32(%rbp)
	movl	12(%rbx), %eax
	movl	%eax, 76(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, 72(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%rbp)
	cmpq	$0, (%r14)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	testl	%r15d, %r15d
	setne	%al
	orl	$14, %eax
	shll	$4, %eax
	movl	%eax, 32(%rbp)
	movq	_RFCOMM_DEFAULT_CREDITS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_3
LBB0_2:
	movl	$0, 32(%rbp)
	xorl	%eax, %eax
LBB0_3:
	movq	%rax, 48(%rbp)
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.4:
	movq	_channel_mtu@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	jns	LBB0_6
LBB0_5:
	movq	(%rbx), %rdi
LBB0_6:
	callq	_cpu_to_le16
	movq	%rax, 40(%rbp)
	leaq	-96(%rbp), %rbx
	movq	%rbx, %rdi
	callq	___fcs
	movl	%eax, 224(%rbp)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$81, %edx
	callq	_rfcomm_send_frame
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%p cr %d dlci %d mtu %d"

	.comm	_RFCOMM_UIH,4,2                 ## @RFCOMM_UIH
	.comm	_RFCOMM_PN,4,2                  ## @RFCOMM_PN
	.comm	_RFCOMM_DEFAULT_CREDITS,8,3     ## @RFCOMM_DEFAULT_CREDITS
	.comm	_channel_mtu,8,3                ## @channel_mtu
	.no_dead_strip	_rfcomm_send_pn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rfcomm_send_pn
_rfcomm_send_pn:                        ; @rfcomm_send_pn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	w3, [x2, #12]
	ldr	x4, [x2]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	bl	_BT_DBG
	ldr	w0, [x19, #8]
	mov	w1, #0
	bl	___addr
	str	w0, [sp, #20]
Lloh5:
	adrp	x8, _RFCOMM_UIH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RFCOMM_UIH@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	w1, #0
	bl	___ctrl
	str	w0, [sp, #16]
	mov	w0, #64
	bl	___len8
	str	x0, [sp, #8]
Lloh8:
	adrp	x8, _RFCOMM_PN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RFCOMM_PN@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x21
	bl	___mcc_type
	str	w0, [sp, #80]
	mov	w0, #48
	bl	___len8
	ldr	d0, [x20, #8]
	str	d0, [sp, #176]
	stp	xzr, xzr, [sp, #160]
	str	x0, [sp, #72]
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w8, #240
	mov	w9, #224
	cmp	w21, #0
	csel	w8, w9, w8, eq
	str	w8, [sp, #136]
Lloh11:
	adrp	x8, _RFCOMM_DEFAULT_CREDITS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RFCOMM_DEFAULT_CREDITS@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [sp, #152]
	cbnz	w21, LBB0_3
	b	LBB0_4
LBB0_2:
	str	wzr, [sp, #136]
	str	x8, [sp, #152]
	cbz	w21, LBB0_4
LBB0_3:
Lloh14:
	adrp	x8, _channel_mtu@GOTPAGE
Lloh15:
	ldr	x8, [x8, _channel_mtu@GOTPAGEOFF]
Lloh16:
	ldr	x0, [x8]
	tbz	x0, #63, LBB0_5
LBB0_4:
	ldr	x0, [x20]
LBB0_5:
	bl	_cpu_to_le16
	str	x0, [sp, #144]
	add	x0, sp, #8
	bl	___fcs
	str	w0, [sp, #328]
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #81
	bl	_rfcomm_send_frame
	ldur	x8, [x29, #-40]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%p cr %d dlci %d mtu %d"

	.comm	_RFCOMM_UIH,4,2                 ; @RFCOMM_UIH
	.comm	_RFCOMM_PN,4,2                  ; @RFCOMM_PN
	.comm	_RFCOMM_DEFAULT_CREDITS,8,3     ; @RFCOMM_DEFAULT_CREDITS
	.comm	_channel_mtu,8,3                ; @channel_mtu
	.no_dead_strip	_rfcomm_send_pn
.subsections_via_symbols
