	.file	"extr_ng_btsocket_l2cap.c_ng_btsocket_l2cap_send_l2ca_cfg_req.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ng_btsocket_l2cap_send_l2ca_cfg_req, @function
ng_btsocket_l2cap_send_l2ca_cfg_req:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	esi, DWORD PTR MA_OWNED[rip]
	mov	rbx, rdi
	add	rdi, 32
	call	mtx_assert@PLT
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	je	.L4
	mov	rdi, QWORD PTR [rax]
	test	rdi, rdi
	je	.L4
	call	NG_HOOK_NOT_VALID@PLT
	test	rax, rax
	je	.L10
.L4:
	mov	eax, DWORD PTR ENETDOWN[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	r8d, DWORD PTR M_NOWAIT[rip]
	mov	edx, DWORD PTR NGM_L2CAP_L2CA_CFG[rip]
	mov	ecx, 20
	xor	edi, edi
	mov	esi, DWORD PTR NGM_L2CAP_COOKIE[rip]
	call	NG_MKMESSAGE@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ng_btsocket_l2cap_send_l2ca_cfg_req, .-ng_btsocket_l2cap_send_l2ca_cfg_req
	.comm	ng_btsocket_l2cap_node,4,4
	.comm	NGM_L2CAP_L2CA_CFG,4,4
	.comm	NGM_L2CAP_COOKIE,4,4
	.comm	M_NOWAIT,4,4
	.comm	MA_OWNED,4,4
	.comm	ENOMEM,4,4
	.comm	ENETDOWN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ng_btsocket_l2cap.c_ng_btsocket_l2cap_send_l2ca_cfg_req.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ng_btsocket_l2cap_send_l2ca_cfg_req, %function
ng_btsocket_l2cap_send_l2ca_cfg_req:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r3, .L11
	sub	sp, sp, #8
	ldr	r1, [r3]
	add	r0, r0, #28
	bl	mtx_assert
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L4
	ldr	r0, [r3]
	cmp	r0, #0
	beq	.L4
	bl	NG_HOOK_NOT_VALID
	cmp	r0, #0
	beq	.L10
.L4:
	ldr	r3, .L11+4
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L10:
	ldr	r3, .L11+8
	ldr	r2, .L11+12
	ldr	r1, [r3]
	ldr	r3, .L11+16
	str	r1, [sp]
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r3, #20
	bl	NG_MKMESSAGE
	ldr	r3, .L11+20
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L12:
	.align	2
.L11:
	.word	MA_OWNED
	.word	ENETDOWN
	.word	M_NOWAIT
	.word	NGM_L2CAP_L2CA_CFG
	.word	NGM_L2CAP_COOKIE
	.word	ENOMEM
	.size	ng_btsocket_l2cap_send_l2ca_cfg_req, .-ng_btsocket_l2cap_send_l2ca_cfg_req
	.comm	ng_btsocket_l2cap_node,4,4
	.comm	NGM_L2CAP_L2CA_CFG,4,4
	.comm	NGM_L2CAP_COOKIE,4,4
	.comm	M_NOWAIT,4,4
	.comm	MA_OWNED,4,4
	.comm	ENOMEM,4,4
	.comm	ENETDOWN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
