	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rfcomm_recv_pn
_rfcomm_recv_pn:                        ## @rfcomm_recv_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	%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	%esi, %r15d
	movq	%rdi, %r12
	movq	(%rdx), %r14
	movq	(%r14), %rbx
	movl	4(%rdi), %edx
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rcx
	callq	_BT_DBG
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.1:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_rfcomm_dlc_get
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r13
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_rfcomm_apply_pn
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r13, %rdx
	callq	_rfcomm_send_pn
	jmp	LBB0_10
LBB0_6:
	movq	%rbx, %rdi
	callq	___srv_channel
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.7:
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_rfcomm_connect_ind
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rax
	movq	%rbx, 8(%rax)
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	___addr
	movq	-48(%rbp), %rsi
	movl	%eax, 4(%rsi)
	movq	%r12, %rdi
	callq	_rfcomm_dlc_link
	movq	-48(%rbp), %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_rfcomm_apply_pn
	movq	_BT_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rdx
	movl	%eax, (%rdx)
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_rfcomm_send_pn
	jmp	LBB0_10
LBB0_4:
	cmpl	$128, (%r13)
	jne	LBB0_10
## %bb.5:
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_rfcomm_apply_pn
	movq	_BT_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movq	8(%r13), %rsi
	movq	%r12, %rdi
	callq	_rfcomm_send_sabm
	jmp	LBB0_10
LBB0_9:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_rfcomm_send_dm
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %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 state %ld dlci %d"

	.comm	_BT_CONNECT,4,2                 ## @BT_CONNECT
	.comm	_BT_OPEN,4,2                    ## @BT_OPEN
	.no_dead_strip	_rfcomm_recv_pn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rfcomm_recv_pn
_rfcomm_recv_pn:                        ; @rfcomm_recv_pn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	x20, [x2]
	ldr	x22, [x20]
	ldr	w2, [x0, #4]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x3, x22
	bl	_BT_DBG
	cbz	x22, LBB0_10
; %bb.1:
	mov	x0, x19
	mov	x1, x22
	bl	_rfcomm_dlc_get
	str	x0, [sp, #8]
	cbz	x0, LBB0_4
; %bb.2:
	mov	x23, x0
	cbz	w21, LBB0_7
; %bb.3:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	bl	_rfcomm_apply_pn
	mov	x0, x19
	mov	w1, #0
	mov	x2, x23
	bl	_rfcomm_send_pn
	b	LBB0_10
LBB0_4:
	mov	x0, x22
	bl	___srv_channel
	cbz	w21, LBB0_10
; %bb.5:
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x19
	bl	_rfcomm_connect_ind
	cbz	x0, LBB0_9
; %bb.6:
	ldr	x8, [sp, #8]
	str	x22, [x8, #8]
	ldr	w0, [x19]
	mov	x1, x22
	bl	___addr
	ldr	x1, [sp, #8]
	str	w0, [x1, #4]
	mov	x0, x19
	bl	_rfcomm_dlc_link
	ldr	x0, [sp, #8]
	mov	x1, x21
	mov	x2, x20
	bl	_rfcomm_apply_pn
Lloh2:
	adrp	x8, _BT_OPEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BT_OPEN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	x2, [sp, #8]
	str	w8, [x2]
	mov	x0, x19
	mov	w1, #0
	bl	_rfcomm_send_pn
	b	LBB0_10
LBB0_7:
	ldr	w8, [x23]
	cmp	w8, #128
	b.ne	LBB0_10
; %bb.8:
	mov	x0, x23
	mov	w1, #0
	mov	x2, x20
	bl	_rfcomm_apply_pn
Lloh5:
	adrp	x8, _BT_CONNECT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BT_CONNECT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x23]
	ldr	x1, [x23, #8]
	mov	x0, x19
	bl	_rfcomm_send_sabm
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	mov	x1, x22
	bl	_rfcomm_send_dm
LBB0_10:
	mov	w0, #0
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"session %p state %ld dlci %d"

	.comm	_BT_CONNECT,4,2                 ; @BT_CONNECT
	.comm	_BT_OPEN,4,2                    ; @BT_OPEN
	.no_dead_strip	_rfcomm_recv_pn
.subsections_via_symbols
