	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_l2cap_cfg_rsp
_send_l2cap_cfg_rsp:                    ## @send_l2cap_cfg_rsp
	.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	%r8, %r14
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movl	%esi, %edx
	movl	%edi, %ebx
	movq	_NG_L2CAP_CFG_RSP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	callq	_ng_l2cap_new_cmd
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r12
	movq	(%rax), %rdi
	movl	8(%rax), %esi
	movl	%r15d, %r8d
	xorl	%r15d, %r15d
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r9
	callq	__ng_l2cap_cfg_rsp
	cmpq	$0, (%r12)
	je	LBB0_4
## %bb.2:
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_ng_l2cap_link_cmd
	movl	%ebx, %edi
	callq	_ng_l2cap_lp_deliver
	jmp	LBB0_6
LBB0_3:
	movq	%r14, %rdi
	callq	_NG_FREE_M
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	%r12, %rdi
	callq	_ng_l2cap_free_cmd
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NG_L2CAP_CFG_RSP,4,2           ## @NG_L2CAP_CFG_RSP
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.no_dead_strip	_send_l2cap_cfg_rsp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_l2cap_cfg_rsp
_send_l2cap_cfg_rsp:                    ; @send_l2cap_cfg_rsp
	.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	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x2, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _NG_L2CAP_CFG_RSP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NG_L2CAP_CFG_RSP@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x1, #0
	mov	w4, #0
	bl	_ng_l2cap_new_cmd
	cbz	x0, LBB0_3
; %bb.1:
	mov	x23, x0
	ldr	x0, [x0]
	ldr	w1, [x23, #8]
	mov	x2, x22
	mov	w3, #0
	mov	x4, x21
	mov	x5, x20
	bl	__ng_l2cap_cfg_rsp
	ldr	x8, [x23]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x0, x19
	mov	x1, x23
	bl	_ng_l2cap_link_cmd
	mov	x0, x19
	bl	_ng_l2cap_lp_deliver
	mov	w0, #0
	b	LBB0_6
LBB0_3:
	mov	x0, x20
	bl	_NG_FREE_M
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	mov	x0, x23
	bl	_ng_l2cap_free_cmd
Lloh5:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
LBB0_6:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_NG_L2CAP_CFG_RSP,4,2           ; @NG_L2CAP_CFG_RSP
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.no_dead_strip	_send_l2cap_cfg_rsp
.subsections_via_symbols
