	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hci_setup_sync                 ## -- Begin function hci_setup_sync
	.p2align	4, 0x90
_hci_setup_sync:                        ## @hci_setup_sync
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_BT_DBG
	movq	_BT_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	$1, (%rbx)
	incl	8(%rbx)
	movl	%r15d, %edi
	callq	_cpu_to_le16
	movq	%rax, -32(%rbp)
	movl	4(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, -40(%rbp)
	movl	$8000, %edi                     ## imm = 0x1F40
	callq	_cpu_to_le32
	movq	%rax, -48(%rbp)
	movl	$8000, %edi                     ## imm = 0x1F40
	callq	_cpu_to_le32
	movq	%rax, -56(%rbp)
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_cpu_to_le16
	movq	%rax, -64(%rbp)
	movl	(%r14), %edi
	callq	_cpu_to_le16
	movq	%rax, -72(%rbp)
	movl	$255, -80(%rbp)
	movq	_HCI_OP_SETUP_SYNC_CONN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rcx
	movq	%r14, %rdi
	movl	$56, %edx
	callq	_hci_send_cmd
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%p"

	.comm	_BT_CONNECT,4,2                 ## @BT_CONNECT
	.comm	_HCI_OP_SETUP_SYNC_CONN,4,2     ## @HCI_OP_SETUP_SYNC_CONN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hci_setup_sync                 ; -- Begin function hci_setup_sync
	.p2align	2
_hci_setup_sync:                        ; @hci_setup_sync
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x21, x0
	ldr	x19, [x0, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_BT_DBG
Lloh2:
	adrp	x8, _BT_CONNECT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BT_CONNECT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mov	w9, #1
	str	w9, [x21]
	ldr	w9, [x21, #8]
	add	w9, w9, #1
	stp	w9, w8, [x21, #8]
	mov	x0, x20
	bl	_cpu_to_le16
	str	x0, [sp, #56]
	ldr	w0, [x21, #4]
	bl	_cpu_to_le16
	str	x0, [sp, #48]
	mov	w0, #8000
	bl	_cpu_to_le32
	str	x0, [sp, #40]
	mov	w0, #8000
	bl	_cpu_to_le32
	str	x0, [sp, #32]
	mov	w0, #65535
	bl	_cpu_to_le16
	str	x0, [sp, #24]
	ldr	w0, [x19]
	bl	_cpu_to_le16
	str	x0, [sp, #16]
	mov	w8, #255
	str	w8, [sp, #8]
Lloh5:
	adrp	x8, _HCI_OP_SETUP_SYNC_CONN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HCI_OP_SETUP_SYNC_CONN@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #56
	bl	_hci_send_cmd
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%p"

	.comm	_BT_CONNECT,4,2                 ; @BT_CONNECT
	.comm	_HCI_OP_SETUP_SYNC_CONN,4,2     ; @HCI_OP_SETUP_SYNC_CONN
.subsections_via_symbols
