	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_l2ca_disconnect_req            ## -- Begin function l2ca_disconnect_req
	.p2align	4, 0x90
_l2ca_disconnect_req:                   ## @l2ca_disconnect_req
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_L2CAP_OPEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_L2CAP_CONFIG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.6:
	movq	_ERR_CONN@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	_PBUF_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_L2CAP_DISCONN_REQ_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PBUF_RAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_btpbuf_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	%r15, 8(%rbx)
	movl	24(%rbx), %edi
	callq	_htole16
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	movl	20(%rbx), %edi
	callq	_htole16
	movq	(%r14), %rcx
	movl	%eax, 4(%rcx)
	movq	_L2CAP_DISCONN_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	16(%rbx), %rcx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movq	%r14, %r8
	callq	_l2cap_signal
	movq	_ERR_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.5:
	movq	_W4_L2CAP_DISCONNECT_RSP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rbx)
	jmp	LBB0_8
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_ERROR
	movq	_ERR_MEM@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %rax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_L2CAP_OPEN,8,3                 ## @L2CAP_OPEN
	.comm	_L2CAP_CONFIG,8,3               ## @L2CAP_CONFIG
	.comm	_PBUF_RAW,4,2                   ## @PBUF_RAW
	.comm	_L2CAP_DISCONN_REQ_SIZE,4,2     ## @L2CAP_DISCONN_REQ_SIZE
	.comm	_PBUF_RAM,4,2                   ## @PBUF_RAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"l2cap_disconnect_req: Could not allocate memory for pbuf\n"

	.comm	_ERR_MEM,8,3                    ## @ERR_MEM
	.comm	_L2CAP_DISCONN_REQ,4,2          ## @L2CAP_DISCONN_REQ
	.comm	_ERR_OK,8,3                     ## @ERR_OK
	.comm	_W4_L2CAP_DISCONNECT_RSP,8,3    ## @W4_L2CAP_DISCONNECT_RSP
	.comm	_ERR_CONN,8,3                   ## @ERR_CONN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_l2ca_disconnect_req            ; -- Begin function l2ca_disconnect_req
	.p2align	2
_l2ca_disconnect_req:                   ; @l2ca_disconnect_req
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _L2CAP_OPEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _L2CAP_OPEN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _L2CAP_CONFIG@GOTPAGE
Lloh4:
	ldr	x10, [x10, _L2CAP_CONFIG@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.1:
	mov	x21, x1
	mov	x19, x0
Lloh6:
	adrp	x8, _PBUF_RAW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PBUF_RAW@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _L2CAP_DISCONN_REQ_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _L2CAP_DISCONN_REQ_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _PBUF_RAM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PBUF_RAM@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_btpbuf_alloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	str	x21, [x19, #8]
	ldr	w0, [x19, #24]
	bl	_htole16
	ldr	x8, [x20]
	str	w0, [x8]
	ldr	w0, [x19, #20]
	bl	_htole16
	ldr	x8, [x20]
	str	w0, [x8, #4]
Lloh15:
	adrp	x8, _L2CAP_DISCONN_REQ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _L2CAP_DISCONN_REQ@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x3, x19, #16
	mov	x0, x19
	mov	w2, #0
	mov	x4, x20
	bl	_l2cap_signal
Lloh18:
	adrp	x8, _ERR_OK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERR_OK@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.3:
Lloh21:
	adrp	x8, _W4_L2CAP_DISCONNECT_RSP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _W4_L2CAP_DISCONNECT_RSP@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_7
LBB0_4:
Lloh24:
	adrp	x8, _ERR_CONN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ERR_CONN@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERROR
Lloh28:
	adrp	x8, _ERR_MEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ERR_MEM@GOTPAGEOFF]
LBB0_6:
	ldr	x0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_L2CAP_OPEN,8,3                 ; @L2CAP_OPEN
	.comm	_L2CAP_CONFIG,8,3               ; @L2CAP_CONFIG
	.comm	_PBUF_RAW,4,2                   ; @PBUF_RAW
	.comm	_L2CAP_DISCONN_REQ_SIZE,4,2     ; @L2CAP_DISCONN_REQ_SIZE
	.comm	_PBUF_RAM,4,2                   ; @PBUF_RAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"l2cap_disconnect_req: Could not allocate memory for pbuf\n"

	.comm	_ERR_MEM,8,3                    ; @ERR_MEM
	.comm	_L2CAP_DISCONN_REQ,4,2          ; @L2CAP_DISCONN_REQ
	.comm	_ERR_OK,8,3                     ; @ERR_OK
	.comm	_W4_L2CAP_DISCONNECT_RSP,8,3    ; @W4_L2CAP_DISCONNECT_RSP
	.comm	_ERR_CONN,8,3                   ; @ERR_CONN
.subsections_via_symbols
