	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __rfcomm_dlc_close
___rfcomm_dlc_close:                    ## @__rfcomm_dlc_close
	.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	24(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_13
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	(%rdi), %edx
	movl	20(%rdi), %ecx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r15d, %r8d
	movq	%r14, %r9
	callq	_BT_DBG
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_12
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:
	movq	_RFCOMM_DEFER_SETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%rbx), %r14
	movq	%r14, %rsi
	callq	_test_and_clear_bit
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movq	_RFCOMM_AUTH_REJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	jmp	LBB0_5
LBB0_3:
	movq	_RFCOMM_DEFER_SETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%rbx), %r15
	movq	%r15, %rsi
	callq	_test_and_clear_bit
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movq	_RFCOMM_AUTH_REJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
LBB0_5:
	callq	_set_bit
	movq	_RFCOMM_SCHED_AUTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rfcomm_schedule
	jmp	LBB0_13
LBB0_12:
	movq	%rbx, %rdi
	callq	_rfcomm_dlc_clear_timer
	movq	%rbx, %rdi
	callq	_rfcomm_dlc_lock
	movq	_BT_CLOSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	*8(%rbx)
	movq	%rbx, %rdi
	callq	_rfcomm_dlc_unlock
	leaq	4(%rbx), %rdi
	callq	_skb_queue_purge
	movq	%rbx, %rdi
	callq	_rfcomm_dlc_unlink
	jmp	LBB0_13
LBB0_6:
	movq	_BT_DISCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	leaq	4(%rbx), %rdi
	callq	_skb_queue_empty
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	20(%rbx), %esi
	movq	%r14, %rdi
	callq	_rfcomm_send_disc
	movq	_RFCOMM_DISC_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_9
LBB0_8:
	movq	%rbx, %rdi
	callq	_rfcomm_queue_disc
	movq	_RFCOMM_DISC_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%esi, %esi
LBB0_9:
	movq	%rbx, %rdi
	callq	_rfcomm_dlc_set_timer
LBB0_13:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_6
	.long	L0_0_set_10
	.long	L0_0_set_3
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dlc %p state %ld dlci %d err %d session %p"

	.comm	_RFCOMM_DEFER_SETUP,4,2         ## @RFCOMM_DEFER_SETUP
	.comm	_RFCOMM_AUTH_REJECT,4,2         ## @RFCOMM_AUTH_REJECT
	.comm	_RFCOMM_SCHED_AUTH,4,2          ## @RFCOMM_SCHED_AUTH
	.comm	_BT_DISCONN,4,2                 ## @BT_DISCONN
	.comm	_RFCOMM_DISC_TIMEOUT,4,2        ## @RFCOMM_DISC_TIMEOUT
	.comm	_BT_CLOSED,4,2                  ## @BT_CLOSED
	.no_dead_strip	___rfcomm_dlc_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __rfcomm_dlc_close
___rfcomm_dlc_close:                    ; @__rfcomm_dlc_close
	.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	x21, [x0, #24]
	cbz	x21, LBB0_13
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w2, [x0]
	ldr	w3, [x0, #20]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x4, x20
	mov	x5, x21
	bl	_BT_DBG
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_8
; %bb.2:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh4:
	adrp	x8, _RFCOMM_DEFER_SETUP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RFCOMM_DEFER_SETUP@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	add	x21, x19, #16
	mov	x1, x21
	bl	_test_and_clear_bit
	cbz	w0, LBB0_8
; %bb.4:
Lloh7:
	adrp	x8, _RFCOMM_AUTH_REJECT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RFCOMM_AUTH_REJECT@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x21
	b	LBB0_7
LBB0_5:
Lloh10:
	adrp	x8, _RFCOMM_DEFER_SETUP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RFCOMM_DEFER_SETUP@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	add	x20, x19, #16
	mov	x1, x20
	bl	_test_and_clear_bit
	cbz	w0, LBB0_9
; %bb.6:
Lloh13:
	adrp	x8, _RFCOMM_AUTH_REJECT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RFCOMM_AUTH_REJECT@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, x20
LBB0_7:
	bl	_set_bit
Lloh16:
	adrp	x8, _RFCOMM_SCHED_AUTH@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RFCOMM_SCHED_AUTH@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_rfcomm_schedule
	b	LBB0_13
LBB0_8:
	mov	x0, x19
	bl	_rfcomm_dlc_clear_timer
	mov	x0, x19
	bl	_rfcomm_dlc_lock
Lloh19:
	adrp	x8, _BT_CLOSED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BT_CLOSED@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	mov	x0, x19
	bl	_rfcomm_dlc_unlock
	add	x0, x19, #4
	bl	_skb_queue_purge
	mov	x0, x19
	bl	_rfcomm_dlc_unlink
	b	LBB0_13
LBB0_9:
Lloh22:
	adrp	x8, _BT_DISCONN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _BT_DISCONN@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	mov	x0, x19
	str	w8, [x0], #4
	bl	_skb_queue_empty
	cbz	w0, LBB0_11
; %bb.10:
	ldr	w1, [x19, #20]
	mov	x0, x21
	bl	_rfcomm_send_disc
Lloh25:
	adrp	x8, _RFCOMM_DISC_TIMEOUT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RFCOMM_DISC_TIMEOUT@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_rfcomm_queue_disc
Lloh28:
	adrp	x8, _RFCOMM_DISC_TIMEOUT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _RFCOMM_DISC_TIMEOUT@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	lsl	w1, w8, #1
LBB0_12:
	mov	x0, x19
	bl	_rfcomm_dlc_set_timer
LBB0_13:
	mov	w0, #0
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dlc %p state %ld dlci %d err %d session %p"

	.comm	_RFCOMM_DEFER_SETUP,4,2         ; @RFCOMM_DEFER_SETUP
	.comm	_RFCOMM_AUTH_REJECT,4,2         ; @RFCOMM_AUTH_REJECT
	.comm	_RFCOMM_SCHED_AUTH,4,2          ; @RFCOMM_SCHED_AUTH
	.comm	_BT_DISCONN,4,2                 ; @BT_DISCONN
	.comm	_RFCOMM_DISC_TIMEOUT,4,2        ; @RFCOMM_DISC_TIMEOUT
	.comm	_BT_CLOSED,4,2                  ; @BT_CLOSED
	.no_dead_strip	___rfcomm_dlc_close
.subsections_via_symbols
