	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rfcomm_sock_alloc
_rfcomm_sock_alloc:                     ## @rfcomm_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	_PF_BLUETOOTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_rfcomm_proto@GOTPCREL(%rip), %rcx
	movl	%r15d, %edx
	callq	_sk_alloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_sock_init_data
	movq	%rbx, %rdi
	callq	_bt_sk
	movq	%rax, %rdi
	callq	_INIT_LIST_HEAD
	movl	%r15d, %edi
	callq	_rfcomm_dlc_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %r15
	movq	_rfcomm_sk_data_ready@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	_rfcomm_sk_state_change@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	%rbx, %rdi
	callq	_rfcomm_pi
	movq	%r15, (%rax)
	movq	%rbx, (%r15)
	movq	_rfcomm_sock_destruct@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_RFCOMM_CONN_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_RFCOMM_MAX_CREDITS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_RFCOMM_DEFAULT_MTU@GOTPCREL(%rip), %rdx
	imull	(%rdx), %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	movl	%ecx, (%rbx)
	movl	(%rax), %eax
	imull	(%rdx), %eax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	movl	%eax, 4(%rbx)
	movq	_SOCK_ZAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sock_reset_flag
	movl	%r14d, 8(%rbx)
	movq	_BT_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_rfcomm_sk_list@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_bt_sock_link
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_BT_DBG
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_sk_free
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_BLUETOOTH,4,2               ## @PF_BLUETOOTH
	.comm	_rfcomm_proto,4,2               ## @rfcomm_proto
	.comm	_rfcomm_sk_data_ready,4,2       ## @rfcomm_sk_data_ready
	.comm	_rfcomm_sk_state_change,4,2     ## @rfcomm_sk_state_change
	.comm	_rfcomm_sock_destruct,4,2       ## @rfcomm_sock_destruct
	.comm	_RFCOMM_CONN_TIMEOUT,4,2        ## @RFCOMM_CONN_TIMEOUT
	.comm	_RFCOMM_MAX_CREDITS,4,2         ## @RFCOMM_MAX_CREDITS
	.comm	_RFCOMM_DEFAULT_MTU,4,2         ## @RFCOMM_DEFAULT_MTU
	.comm	_SOCK_ZAPPED,4,2                ## @SOCK_ZAPPED
	.comm	_BT_OPEN,4,2                    ## @BT_OPEN
	.comm	_rfcomm_sk_list,4,2             ## @rfcomm_sk_list
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sk %p"

	.no_dead_strip	_rfcomm_sock_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rfcomm_sock_alloc
_rfcomm_sock_alloc:                     ; @rfcomm_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	x21, x3
	mov	x20, x2
	mov	x22, x1
Lloh0:
	adrp	x8, _PF_BLUETOOTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PF_BLUETOOTH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x3, _rfcomm_proto@GOTPAGE
Lloh4:
	ldr	x3, [x3, _rfcomm_proto@GOTPAGEOFF]
	mov	x2, x21
	bl	_sk_alloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x22
	mov	x1, x19
	bl	_sock_init_data
	mov	x0, x19
	bl	_bt_sk
	bl	_INIT_LIST_HEAD
	mov	x0, x21
	bl	_rfcomm_dlc_alloc
	cbz	x0, LBB0_3
; %bb.2:
	mov	x21, x0
Lloh5:
	adrp	x8, _rfcomm_sk_data_ready@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rfcomm_sk_data_ready@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _rfcomm_sk_state_change@GOTPAGE
Lloh9:
	ldr	x9, [x9, _rfcomm_sk_state_change@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
	mov	x0, x19
	bl	_rfcomm_pi
	str	x21, [x0]
	str	x19, [x21]
Lloh11:
	adrp	x8, _rfcomm_sock_destruct@GOTPAGE
Lloh12:
	ldr	x8, [x8, _rfcomm_sock_destruct@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _RFCOMM_CONN_TIMEOUT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RFCOMM_CONN_TIMEOUT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _RFCOMM_MAX_CREDITS@GOTPAGE
Lloh18:
	ldr	x10, [x10, _RFCOMM_MAX_CREDITS@GOTPAGEOFF]
	stp	w9, w8, [x19, #16]
	ldr	w8, [x10]
Lloh19:
	adrp	x9, _RFCOMM_DEFAULT_MTU@GOTPAGE
Lloh20:
	ldr	x9, [x9, _RFCOMM_DEFAULT_MTU@GOTPAGEOFF]
	ldr	w11, [x9]
	mul	w8, w8, w11
	add	w8, w8, w8, lsl #2
	lsl	w8, w8, #1
	str	w8, [x19]
	ldr	w8, [x10]
	ldr	w9, [x9]
	mul	w8, w8, w9
	add	w8, w8, w8, lsl #2
	lsl	w8, w8, #1
	str	w8, [x19, #4]
Lloh21:
	adrp	x8, _SOCK_ZAPPED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SOCK_ZAPPED@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sock_reset_flag
Lloh24:
	adrp	x8, _BT_OPEN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BT_OPEN@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	stp	w20, w8, [x19, #8]
Lloh27:
	adrp	x0, _rfcomm_sk_list@GOTPAGE
Lloh28:
	ldr	x0, [x0, _rfcomm_sk_list@GOTPAGEOFF]
	mov	x1, x19
	bl	_bt_sock_link
Lloh29:
	adrp	x0, l_.str@PAGE
Lloh30:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_BT_DBG
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_sk_free
	mov	x19, #0
LBB0_4:
	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 AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.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	_rfcomm_proto,4,2               ; @rfcomm_proto
	.comm	_rfcomm_sk_data_ready,4,2       ; @rfcomm_sk_data_ready
	.comm	_rfcomm_sk_state_change,4,2     ; @rfcomm_sk_state_change
	.comm	_rfcomm_sock_destruct,4,2       ; @rfcomm_sock_destruct
	.comm	_RFCOMM_CONN_TIMEOUT,4,2        ; @RFCOMM_CONN_TIMEOUT
	.comm	_RFCOMM_MAX_CREDITS,4,2         ; @RFCOMM_MAX_CREDITS
	.comm	_RFCOMM_DEFAULT_MTU,4,2         ; @RFCOMM_DEFAULT_MTU
	.comm	_SOCK_ZAPPED,4,2                ; @SOCK_ZAPPED
	.comm	_BT_OPEN,4,2                    ; @BT_OPEN
	.comm	_rfcomm_sk_list,4,2             ; @rfcomm_sk_list
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sk %p"

	.no_dead_strip	_rfcomm_sock_alloc
.subsections_via_symbols
