	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rfcomm_sk_state_change
_rfcomm_sk_state_change:                ## @rfcomm_sk_state_change
	.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
	movq	16(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_11
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	(%rdi), %rdx
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movl	%ebx, %ecx
	callq	_BT_DBG
	movq	%r12, %rdi
	callq	_bh_lock_sock
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	movl	%ebx, (%r12)
LBB0_3:
	movq	(%r14), %rax
	movq	%rax, 8(%r12)
	movq	%r12, %rdi
	callq	_bt_sk
	movq	8(%rax), %r15
	movq	(%r14), %rax
	testq	%r15, %r15
	je	LBB0_8
## %bb.4:
	movq	_BT_CLOSED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	_SOCK_ZAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sock_set_flag
	movq	%r12, %rdi
	callq	_bt_accept_unlink
LBB0_6:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	*24(%r15)
	movq	%r12, %rdi
	callq	_bh_unlock_sock
	movq	_SOCK_ZAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sock_flag
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	%r14, %rdi
	callq	_rfcomm_dlc_unlock
	movq	%r12, %rdi
	callq	_rfcomm_sock_kill
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rfcomm_dlc_lock                ## TAILCALL
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_BT_CONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movl	8(%r14), %ebx
	movq	%r12, %rdi
	callq	_bt_sk
	movl	%ebx, %edi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_rfcomm_session_getaddr
LBB0_10:
	movq	%r12, %rdi
	callq	*16(%r12)
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bh_unlock_sock                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dlc %p state %ld err %d"

	.comm	_BT_CLOSED,8,3                  ## @BT_CLOSED
	.comm	_SOCK_ZAPPED,4,2                ## @SOCK_ZAPPED
	.comm	_BT_CONNECTED,8,3               ## @BT_CONNECTED
	.no_dead_strip	_rfcomm_sk_state_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rfcomm_sk_state_change
_rfcomm_sk_state_change:                ; @rfcomm_sk_state_change
	.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	x19, [x0, #16]
	cbz	x19, LBB0_8
; %bb.1:
	mov	x21, x1
	mov	x20, x0
	ldr	x2, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x3, x21
	bl	_BT_DBG
	mov	x0, x19
	bl	_bh_lock_sock
	cbz	w21, LBB0_3
; %bb.2:
	str	w21, [x19]
LBB0_3:
	ldr	x8, [x20]
	str	x8, [x19, #8]
	mov	x0, x19
	bl	_bt_sk
	ldr	x21, [x0, #8]
	ldr	x8, [x20]
	cbz	x21, LBB0_9
; %bb.4:
Lloh2:
	adrp	x9, _BT_CLOSED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BT_CLOSED@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x22, _SOCK_ZAPPED@GOTPAGE
Lloh6:
	ldr	x22, [x22, _SOCK_ZAPPED@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_sock_set_flag
	mov	x0, x19
	bl	_bt_accept_unlink
LBB0_6:
	ldr	x8, [x21, #24]
	mov	x0, x21
	mov	w1, #0
	blr	x8
	mov	x0, x19
	bl	_bh_unlock_sock
	ldr	w1, [x22]
	mov	x0, x19
	bl	_sock_flag
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_rfcomm_dlc_unlock
	mov	x0, x19
	bl	_rfcomm_sock_kill
	mov	x0, x20
	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
	b	_rfcomm_dlc_lock
LBB0_8:
	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
LBB0_9:
Lloh7:
	adrp	x9, _BT_CONNECTED@GOTPAGE
Lloh8:
	ldr	x9, [x9, _BT_CONNECTED@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	ldr	w20, [x20, #8]
	mov	x0, x19
	bl	_bt_sk
	mov	x1, x0
	mov	x0, x20
	mov	x2, #0
	bl	_rfcomm_session_getaddr
LBB0_11:
	ldr	x8, [x19, #16]
	mov	x0, x19
	blr	x8
	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
	b	_bh_unlock_sock
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dlc %p state %ld err %d"

	.comm	_BT_CLOSED,8,3                  ; @BT_CLOSED
	.comm	_SOCK_ZAPPED,4,2                ; @SOCK_ZAPPED
	.comm	_BT_CONNECTED,8,3               ; @BT_CONNECTED
	.no_dead_strip	_rfcomm_sk_state_change
.subsections_via_symbols
