	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hci_conn_timeout
_hci_conn_timeout:                      ## @hci_conn_timeout
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movl	(%rdi), %edx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_BT_DBG
	leaq	12(%rbx), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_1
## %bb.10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, %rdi
	callq	_hci_dev_lock
	movl	(%rbx), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_5
## %bb.2:
	cmpl	$128, %eax
	je	LBB0_4
## %bb.3:
	cmpl	$131, %eax
	jne	LBB0_8
LBB0_4:
	movq	%rbx, %rdi
	callq	_hci_proto_disconn_ind
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_hci_acl_disconn
	jmp	LBB0_9
LBB0_5:
	movl	8(%rbx), %eax
	movq	_ACL_LINK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.6:
	cmpl	$0, 4(%rbx)
	je	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	callq	_hci_acl_connect_cancel
	jmp	LBB0_9
LBB0_8:
	movq	_BT_CLOSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_9:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_hci_dev_unlock                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"conn %p state %d"

	.comm	_ACL_LINK,4,2                   ## @ACL_LINK
	.comm	_BT_CLOSED,4,2                  ## @BT_CLOSED
	.no_dead_strip	_hci_conn_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hci_conn_timeout
_hci_conn_timeout:                      ; @hci_conn_timeout
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	x19, [x0, #16]
	ldr	w2, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_BT_DBG
	add	x0, x20, #12
	bl	_atomic_read
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x0, x19
	bl	_hci_dev_lock
	ldr	w8, [x20]
	sub	w9, w8, #129
	cmp	w9, #2
	b.lo	LBB0_6
; %bb.3:
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.4:
	cmp	w8, #131
	b.ne	LBB0_9
LBB0_5:
	mov	x0, x20
	bl	_hci_proto_disconn_ind
	mov	x1, x0
	mov	x0, x20
	bl	_hci_acl_disconn
	b	LBB0_10
LBB0_6:
	ldr	w8, [x20, #8]
Lloh2:
	adrp	x9, _ACL_LINK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ACL_LINK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.7:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_10
; %bb.8:
	mov	x0, x20
	bl	_hci_acl_connect_cancel
	b	LBB0_10
LBB0_9:
Lloh5:
	adrp	x8, _BT_CLOSED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BT_CLOSED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hci_dev_unlock
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"conn %p state %d"

	.comm	_ACL_LINK,4,2                   ; @ACL_LINK
	.comm	_BT_CLOSED,4,2                  ; @BT_CLOSED
	.no_dead_strip	_hci_conn_timeout
.subsections_via_symbols
