	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_btsocket_rfcomm_connect_cfm
_ng_btsocket_rfcomm_connect_cfm:        ## @ng_btsocket_rfcomm_connect_cfm
	.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
	addq	$12, %rdi
	movq	_MA_OWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mtx_assert
	leaq	8(%r14), %rdi
	callq	_LIST_FIRST
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movq	_NG_BTSOCKET_RFCOMM_DLC_W4_CONNECT@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ng_btsocket_rfcomm_pcb_kill
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_mtx_unlock
	movq	%r12, %rbx
	testq	%r12, %r12
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_mtx_lock
	movq	_session_next@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LIST_NEXT
	movq	%rax, %r12
	movq	(%rbx), %rax
	cmpq	(%r13), %rax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r14), %eax
	movl	%eax, 16(%rbx)
	movl	(%r14), %edi
	callq	_so2l2cap_pcb
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	%rbx, %rdi
	callq	_ng_btsocket_rfcomm_send_pn
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_NG_BTSOCKET_RFCOMM_DLC_CONFIGURING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MA_OWNED,4,2                   ## @MA_OWNED
	.comm	_session_next,4,2               ## @session_next
	.comm	_NG_BTSOCKET_RFCOMM_DLC_W4_CONNECT,8,3 ## @NG_BTSOCKET_RFCOMM_DLC_W4_CONNECT
	.comm	_NG_BTSOCKET_RFCOMM_DLC_CONFIGURING,8,3 ## @NG_BTSOCKET_RFCOMM_DLC_CONFIGURING
	.no_dead_strip	_ng_btsocket_rfcomm_connect_cfm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_btsocket_rfcomm_connect_cfm
_ng_btsocket_rfcomm_connect_cfm:        ; @ng_btsocket_rfcomm_connect_cfm
	.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
	add	x0, x0, #12
Lloh0:
	adrp	x8, _MA_OWNED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MA_OWNED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mtx_assert
	add	x0, x19, #8
	bl	_LIST_FIRST
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x23, _session_next@GOTPAGE
Lloh4:
	ldr	x23, [x23, _session_next@GOTPAGEOFF]
Lloh5:
	adrp	x24, _NG_BTSOCKET_RFCOMM_DLC_W4_CONNECT@GOTPAGE
Lloh6:
	ldr	x24, [x24, _NG_BTSOCKET_RFCOMM_DLC_W4_CONNECT@GOTPAGEOFF]
Lloh7:
	adrp	x25, _NG_BTSOCKET_RFCOMM_DLC_CONFIGURING@GOTPAGE
Lloh8:
	ldr	x25, [x25, _NG_BTSOCKET_RFCOMM_DLC_CONFIGURING@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x0
	mov	x0, x20
	bl	_ng_btsocket_rfcomm_pcb_kill
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_mtx_unlock
	mov	x20, x22
	cbz	x22, LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x21, x20, #8
	mov	x0, x21
	bl	_mtx_lock
	ldr	w1, [x23]
	mov	x0, x20
	bl	_LIST_NEXT
	mov	x22, x0
	ldr	x8, [x20]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w0, w8, [x19]
	str	w8, [x20, #16]
	bl	_so2l2cap_pcb
	ldr	w8, [x0]
	str	w8, [x20, #12]
	mov	x0, x20
	bl	_ng_btsocket_rfcomm_send_pn
	cbnz	w0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	str	x8, [x20]
	b	LBB0_3
LBB0_7:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MA_OWNED,4,2                   ; @MA_OWNED
	.comm	_session_next,4,2               ; @session_next
	.comm	_NG_BTSOCKET_RFCOMM_DLC_W4_CONNECT,8,3 ; @NG_BTSOCKET_RFCOMM_DLC_W4_CONNECT
	.comm	_NG_BTSOCKET_RFCOMM_DLC_CONFIGURING,8,3 ; @NG_BTSOCKET_RFCOMM_DLC_CONFIGURING
	.no_dead_strip	_ng_btsocket_rfcomm_connect_cfm
.subsections_via_symbols
