	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function l2cap_sock_recvmsg
_l2cap_sock_recvmsg:                    ## @l2cap_sock_recvmsg
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	(%rsi), %rbx
	movq	%rbx, %rdi
	callq	_lock_sock
	movq	$0, (%r12)
	movq	(%rbx), %rax
	movq	_BT_CONNECT2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_bt_sk
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_BT_CONFIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_l2cap_pi
	movl	12(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, -56(%rbp)
	movq	%rbx, %rdi
	callq	_l2cap_pi
	movl	8(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, -64(%rbp)
	movq	_L2CAP_CR_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, -72(%rbp)
	movq	_L2CAP_CS_NO_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, -80(%rbp)
	movq	%rbx, %rdi
	callq	_l2cap_pi
	movl	4(%rax), %r14d
	movq	%rbx, %rdi
	callq	_l2cap_pi
	movl	(%rax), %esi
	movq	_L2CAP_CONN_RSP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-80(%rbp), %r8
	movl	%r14d, %edi
	movl	$32, %ecx
	callq	_l2cap_send_cmd
	movq	%rbx, %rdi
	callq	_release_sock
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	callq	_release_sock
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bt_sock_recvmsg                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BT_CONNECT2,8,3                ## @BT_CONNECT2
	.comm	_BT_CONFIG,8,3                  ## @BT_CONFIG
	.comm	_L2CAP_CR_SUCCESS,4,2           ## @L2CAP_CR_SUCCESS
	.comm	_L2CAP_CS_NO_INFO,4,2           ## @L2CAP_CS_NO_INFO
	.comm	_L2CAP_CONN_RSP,4,2             ## @L2CAP_CONN_RSP
	.no_dead_strip	_l2cap_sock_recvmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function l2cap_sock_recvmsg
_l2cap_sock_recvmsg:                    ; @l2cap_sock_recvmsg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x1
	mov	x24, x0
	ldr	x19, [x1]
	mov	x0, x19
	bl	_lock_sock
	str	xzr, [x22]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _BT_CONNECT2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BT_CONNECT2@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_bt_sk
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _BT_CONFIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BT_CONFIG@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	x0, x19
	bl	_l2cap_pi
	ldr	w0, [x0, #12]
	bl	_cpu_to_le16
	str	x0, [sp, #24]
	mov	x0, x19
	bl	_l2cap_pi
	ldr	w0, [x0, #8]
	bl	_cpu_to_le16
	str	x0, [sp, #16]
Lloh6:
	adrp	x8, _L2CAP_CR_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _L2CAP_CR_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [sp, #8]
Lloh9:
	adrp	x8, _L2CAP_CS_NO_INFO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _L2CAP_CS_NO_INFO@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [sp]
	mov	x0, x19
	bl	_l2cap_pi
	ldr	w20, [x0, #4]
	mov	x0, x19
	bl	_l2cap_pi
	ldr	w1, [x0]
Lloh12:
	adrp	x8, _L2CAP_CONN_RSP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _L2CAP_CONN_RSP@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x4, sp
	mov	x0, x20
	mov	w3, #32
	bl	_l2cap_send_cmd
	mov	x0, x19
	bl	_release_sock
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_3:
	mov	x0, x19
	bl	_release_sock
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_bt_sock_recvmsg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BT_CONNECT2,8,3                ; @BT_CONNECT2
	.comm	_BT_CONFIG,8,3                  ; @BT_CONFIG
	.comm	_L2CAP_CR_SUCCESS,4,2           ; @L2CAP_CR_SUCCESS
	.comm	_L2CAP_CS_NO_INFO,4,2           ; @L2CAP_CS_NO_INFO
	.comm	_L2CAP_CONN_RSP,4,2             ; @L2CAP_CONN_RSP
	.no_dead_strip	_l2cap_sock_recvmsg
.subsections_via_symbols
