	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sync_con_queue
_sync_con_queue:                        ## @sync_con_queue
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rsi), %rax
	movq	_NG_HCI_LINK_SCO@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setne	%dl
	movq	8(%rdi,%rdx,8), %rdi
	movq	_ENOTCONN@GOTPCREL(%rip), %rbx
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	callq	_NG_HOOK_NOT_VALID
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_NGM_HCI_COOKIE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NGM_HCI_SYNC_CON_QUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%edi, %edi
	movl	$8, %ecx
	callq	_NG_MKMESSAGE
	movq	_ENOMEM@GOTPCREL(%rip), %rbx
LBB0_3:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NG_HCI_LINK_SCO,8,3            ## @NG_HCI_LINK_SCO
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.comm	_NGM_HCI_COOKIE,4,2             ## @NGM_HCI_COOKIE
	.comm	_NGM_HCI_SYNC_CON_QUEUE,4,2     ## @NGM_HCI_SYNC_CON_QUEUE
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_sync_con_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sync_con_queue
_sync_con_queue:                        ; @sync_con_queue
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _NG_HCI_LINK_SCO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NG_HCI_LINK_SCO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	w10, #16
	mov	w11, #8
	cmp	x8, x9
	csel	x8, x11, x10, eq
	ldr	x0, [x0, x8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_NG_HOOK_NOT_VALID
	cbz	x0, LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _NGM_HCI_COOKIE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NGM_HCI_COOKIE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _NGM_HCI_SYNC_CON_QUEUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NGM_HCI_SYNC_CON_QUEUE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
	mov	w3, #8
	bl	_NG_MKMESSAGE
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NG_HCI_LINK_SCO,8,3            ; @NG_HCI_LINK_SCO
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.comm	_NGM_HCI_COOKIE,4,2             ; @NGM_HCI_COOKIE
	.comm	_NGM_HCI_SYNC_CON_QUEUE,4,2     ; @NGM_HCI_SYNC_CON_QUEUE
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_sync_con_queue
.subsections_via_symbols
