	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sco_conn_ready
_sco_conn_ready:                        ## @sco_conn_ready
	.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	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_BT_DBG
	movq	%r14, %rdi
	callq	_sco_conn_lock
	movq	16(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_sco_sock_clear_timer
	movq	%rbx, %rdi
	callq	_bh_lock_sock
	movq	_BT_CONNECTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	callq	*16(%rbx)
	jmp	LBB0_5
LBB0_2:
	movl	8(%r14), %edi
	callq	_sco_get_sock_listen
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_bh_lock_sock
	movq	%rbx, %rdi
	callq	_sock_net
	movq	_BTPROTO_SCO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_sco_sock_alloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_sco_sock_init
	movq	%r15, %rdi
	callq	_bt_sk
	leaq	4(%rax), %rdi
	movl	8(%r14), %esi
	callq	_bacpy
	movq	%r15, %rdi
	callq	_bt_sk
	movl	4(%r14), %esi
	movq	%rax, %rdi
	callq	_bacpy
	movl	(%r14), %edi
	callq	_hci_conn_hold
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	___sco_chan_add
	movq	_BT_CONNECTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*(%rbx)
LBB0_5:
	movq	%rbx, %rdi
	callq	_bh_unlock_sock
LBB0_6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sco_conn_unlock                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"conn %p"

	.comm	_BT_CONNECTED,8,3               ## @BT_CONNECTED
	.comm	_BTPROTO_SCO,4,2                ## @BTPROTO_SCO
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.no_dead_strip	_sco_conn_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sco_conn_ready
_sco_conn_ready:                        ; @sco_conn_ready
	.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	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_BT_DBG
	mov	x0, x19
	bl	_sco_conn_lock
	ldr	x20, [x19, #16]
	cbz	x20, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_sco_sock_clear_timer
	mov	x0, x20
	bl	_bh_lock_sock
Lloh2:
	adrp	x8, _BT_CONNECTED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BT_CONNECTED@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x20, #8]
	ldr	x8, [x20, #16]
	mov	x0, x20
	blr	x8
	b	LBB0_5
LBB0_2:
	ldr	w0, [x19, #8]
	bl	_sco_get_sock_listen
	cbz	x0, LBB0_6
; %bb.3:
	mov	x20, x0
	bl	_bh_lock_sock
	mov	x0, x20
	bl	_sock_net
Lloh5:
	adrp	x8, _BTPROTO_SCO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BTPROTO_SCO@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x1, #0
	bl	_sco_sock_alloc
	cbz	x0, LBB0_5
; %bb.4:
	mov	x21, x0
	mov	x1, x20
	bl	_sco_sock_init
	mov	x0, x21
	bl	_bt_sk
	add	x0, x0, #4
	ldr	w1, [x19, #8]
	bl	_bacpy
	mov	x0, x21
	bl	_bt_sk
	ldr	w1, [x19, #4]
	bl	_bacpy
	ldr	w0, [x19]
	bl	_hci_conn_hold
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	___sco_chan_add
Lloh11:
	adrp	x8, _BT_CONNECTED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BT_CONNECTED@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x21, #8]
	ldr	x8, [x20]
	mov	x0, x20
	mov	w1, #1
	blr	x8
LBB0_5:
	mov	x0, x20
	bl	_bh_unlock_sock
LBB0_6:
	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	_sco_conn_unlock
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"conn %p"

	.comm	_BT_CONNECTED,8,3               ; @BT_CONNECTED
	.comm	_BTPROTO_SCO,4,2                ; @BTPROTO_SCO
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.no_dead_strip	_sco_conn_ready
.subsections_via_symbols
