	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function l2cap_sock_timeout
_l2cap_sock_timeout:                    ## @l2cap_sock_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	(%rdi), %rdx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_BT_DBG
	movq	%rbx, %rdi
	callq	_bh_lock_sock
	movq	(%rbx), %rax
	movq	_BT_CONNECTED@GOTPCREL(%rip), %rcx
	movq	_ECONNREFUSED@GOTPCREL(%rip), %r14
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.1:
	movq	_BT_CONFIG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.2:
	movq	_BT_CONNECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_l2cap_pi
	movq	(%rax), %rax
	movq	_BT_SECURITY_SDP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_4:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %r14
LBB0_5:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	___l2cap_sock_close
	movq	%rbx, %rdi
	callq	_bh_unlock_sock
	movq	%rbx, %rdi
	callq	_l2cap_sock_kill
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sock_put                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sock %p state %d"

	.comm	_BT_CONNECTED,8,3               ## @BT_CONNECTED
	.comm	_BT_CONFIG,8,3                  ## @BT_CONFIG
	.comm	_ECONNREFUSED,4,2               ## @ECONNREFUSED
	.comm	_BT_CONNECT,8,3                 ## @BT_CONNECT
	.comm	_BT_SECURITY_SDP,8,3            ## @BT_SECURITY_SDP
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_l2cap_sock_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function l2cap_sock_timeout
_l2cap_sock_timeout:                    ; @l2cap_sock_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	x19, x0
	ldr	x2, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_BT_DBG
	mov	x0, x19
	bl	_bh_lock_sock
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _BT_CONNECTED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BT_CONNECTED@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _BT_CONFIG@GOTPAGE
Lloh6:
	ldr	x10, [x10, _BT_CONFIG@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_4
; %bb.1:
Lloh8:
	adrp	x9, _BT_CONNECT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BT_CONNECT@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_l2cap_pi
	ldr	x8, [x0]
Lloh11:
	adrp	x9, _BT_SECURITY_SDP@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BT_SECURITY_SDP@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_3:
Lloh14:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh16:
	adrp	x8, _ECONNREFUSED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ECONNREFUSED@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	___l2cap_sock_close
	mov	x0, x19
	bl	_bh_unlock_sock
	mov	x0, x19
	bl	_l2cap_sock_kill
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sock_put
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sock %p state %d"

	.comm	_BT_CONNECTED,8,3               ; @BT_CONNECTED
	.comm	_BT_CONFIG,8,3                  ; @BT_CONFIG
	.comm	_ECONNREFUSED,4,2               ; @ECONNREFUSED
	.comm	_BT_CONNECT,8,3                 ; @BT_CONNECT
	.comm	_BT_SECURITY_SDP,8,3            ; @BT_SECURITY_SDP
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_l2cap_sock_timeout
.subsections_via_symbols
