	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function l2cap_sock_alloc
_l2cap_sock_alloc:                      ## @l2cap_sock_alloc
	.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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	_PF_BLUETOOTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_l2cap_proto@GOTPCREL(%rip), %rax
	movl	%ecx, %edx
	movq	%rax, %rcx
	callq	_sk_alloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_sock_init_data
	movq	%rbx, %rdi
	callq	_bt_sk
	movq	%rax, %rdi
	callq	_INIT_LIST_HEAD
	movq	_l2cap_sock_destruct@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_L2CAP_CONN_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movl	%eax, 12(%rbx)
	movq	_SOCK_ZAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sock_reset_flag
	movl	%r14d, (%rbx)
	movq	_BT_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	addq	$4, %rdi
	movq	_l2cap_sock_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_setup_timer
	movq	_l2cap_sk_list@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_bt_sock_link
LBB0_2:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_BLUETOOTH,4,2               ## @PF_BLUETOOTH
	.comm	_l2cap_proto,4,2                ## @l2cap_proto
	.comm	_l2cap_sock_destruct,4,2        ## @l2cap_sock_destruct
	.comm	_L2CAP_CONN_TIMEOUT,4,2         ## @L2CAP_CONN_TIMEOUT
	.comm	_SOCK_ZAPPED,4,2                ## @SOCK_ZAPPED
	.comm	_BT_OPEN,4,2                    ## @BT_OPEN
	.comm	_l2cap_sock_timeout,4,2         ## @l2cap_sock_timeout
	.comm	_l2cap_sk_list,4,2              ## @l2cap_sk_list
	.no_dead_strip	_l2cap_sock_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function l2cap_sock_alloc
_l2cap_sock_alloc:                      ; @l2cap_sock_alloc
	.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
	mov	x8, x3
	mov	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x9, _PF_BLUETOOTH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PF_BLUETOOTH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
Lloh3:
	adrp	x3, _l2cap_proto@GOTPAGE
Lloh4:
	ldr	x3, [x3, _l2cap_proto@GOTPAGEOFF]
	mov	x2, x8
	bl	_sk_alloc
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x19
	bl	_sock_init_data
	mov	x0, x19
	bl	_bt_sk
	bl	_INIT_LIST_HEAD
Lloh5:
	adrp	x8, _l2cap_sock_destruct@GOTPAGE
Lloh6:
	ldr	x8, [x8, _l2cap_sock_destruct@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #16]
Lloh8:
	adrp	x8, _L2CAP_CONN_TIMEOUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _L2CAP_CONN_TIMEOUT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	str	w0, [x19, #12]
Lloh11:
	adrp	x8, _SOCK_ZAPPED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SOCK_ZAPPED@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sock_reset_flag
	str	w20, [x19]
Lloh14:
	adrp	x8, _BT_OPEN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BT_OPEN@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	add	x0, x19, #4
Lloh17:
	adrp	x8, _l2cap_sock_timeout@GOTPAGE
Lloh18:
	ldr	x8, [x8, _l2cap_sock_timeout@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_setup_timer
Lloh20:
	adrp	x0, _l2cap_sk_list@GOTPAGE
Lloh21:
	ldr	x0, [x0, _l2cap_sk_list@GOTPAGEOFF]
	mov	x1, x19
	bl	_bt_sock_link
LBB0_2:
	mov	x0, x19
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_BLUETOOTH,4,2               ; @PF_BLUETOOTH
	.comm	_l2cap_proto,4,2                ; @l2cap_proto
	.comm	_l2cap_sock_destruct,4,2        ; @l2cap_sock_destruct
	.comm	_L2CAP_CONN_TIMEOUT,4,2         ; @L2CAP_CONN_TIMEOUT
	.comm	_SOCK_ZAPPED,4,2                ; @SOCK_ZAPPED
	.comm	_BT_OPEN,4,2                    ; @BT_OPEN
	.comm	_l2cap_sock_timeout,4,2         ; @l2cap_sock_timeout
	.comm	_l2cap_sk_list,4,2              ; @l2cap_sk_list
	.no_dead_strip	_l2cap_sock_alloc
.subsections_via_symbols
