	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rfcomm_session_add
_rfcomm_session_add:                    ## @rfcomm_session_add
	.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	%esi, %r14d
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	movq	%r15, %rdx
	callq	_BT_DBG
	leaq	28(%rbx), %rdi
	movq	_rfcomm_session_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_setup_timer
	leaq	24(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movl	%r14d, (%rbx)
	movq	%r15, 16(%rbx)
	movq	_RFCOMM_DEFAULT_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_disable_cfc@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_4
## %bb.2:
	movq	_RFCOMM_CFC_UNKNOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_RFCOMM_CFC_DISABLED@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_BT_LISTEN@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_8
LBB0_7:
	movq	%rbx, %rdi
	addq	$4, %rdi
	movq	_session_list@GOTPCREL(%rip), %rsi
	callq	_list_add
	jmp	LBB0_10
LBB0_8:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"session %p sock %p"

	.comm	_rfcomm_session_timeout,4,2     ## @rfcomm_session_timeout
	.comm	_RFCOMM_DEFAULT_MTU,4,2         ## @RFCOMM_DEFAULT_MTU
	.comm	_disable_cfc,8,3                ## @disable_cfc
	.comm	_RFCOMM_CFC_DISABLED,4,2        ## @RFCOMM_CFC_DISABLED
	.comm	_RFCOMM_CFC_UNKNOWN,4,2         ## @RFCOMM_CFC_UNKNOWN
	.comm	_BT_LISTEN,4,2                  ## @BT_LISTEN
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_session_list,4,2               ## @session_list
	.no_dead_strip	_rfcomm_session_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rfcomm_session_add
_rfcomm_session_add:                    ; @rfcomm_session_add
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	bl	_BT_DBG
	add	x0, x19, #28
Lloh5:
	adrp	x8, _rfcomm_session_timeout@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rfcomm_session_timeout@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_setup_timer
	add	x0, x19, #24
	bl	_INIT_LIST_HEAD
	str	w20, [x19]
Lloh8:
	adrp	x8, _RFCOMM_DEFAULT_MTU@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RFCOMM_DEFAULT_MTU@GOTPAGEOFF]
	str	x21, [x19, #16]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #12]
Lloh11:
	adrp	x8, _disable_cfc@GOTPAGE
Lloh12:
	ldr	x8, [x8, _disable_cfc@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _RFCOMM_CFC_DISABLED@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RFCOMM_CFC_DISABLED@GOTPAGEOFF]
Lloh16:
	adrp	x10, _RFCOMM_CFC_UNKNOWN@GOTPAGE
Lloh17:
	ldr	x10, [x10, _RFCOMM_CFC_UNKNOWN@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh18:
	adrp	x8, _BT_LISTEN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BT_LISTEN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_3
; %bb.2:
Lloh21:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_try_module_get
	cbz	w0, LBB0_4
LBB0_3:
	add	x0, x19, #4
Lloh24:
	adrp	x1, _session_list@GOTPAGE
Lloh25:
	ldr	x1, [x1, _session_list@GOTPAGEOFF]
	bl	_list_add
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_5:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"session %p sock %p"

	.comm	_rfcomm_session_timeout,4,2     ; @rfcomm_session_timeout
	.comm	_RFCOMM_DEFAULT_MTU,4,2         ; @RFCOMM_DEFAULT_MTU
	.comm	_disable_cfc,8,3                ; @disable_cfc
	.comm	_RFCOMM_CFC_DISABLED,4,2        ; @RFCOMM_CFC_DISABLED
	.comm	_RFCOMM_CFC_UNKNOWN,4,2         ; @RFCOMM_CFC_UNKNOWN
	.comm	_BT_LISTEN,4,2                  ; @BT_LISTEN
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_session_list,4,2               ; @session_list
	.no_dead_strip	_rfcomm_session_add
.subsections_via_symbols
