	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hci_send_sco                   ## -- Begin function hci_send_sco
	.p2align	4, 0x90
_hci_send_sco:                          ## @hci_send_sco
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movl	8(%r14), %esi
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rdi
	callq	_BT_DBG
	movq	(%rbx), %rax
	cmpq	(%r14), %rax
	jle	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_kfree_skb
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movl	4(%r15), %edi
	callq	_cpu_to_le16
	movl	%eax, -40(%rbp)
	movq	(%rbx), %rax
	movq	%rax, -48(%rbp)
	movq	_HCI_SCO_HDR_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_skb_push
	movq	%rbx, %rdi
	callq	_skb_reset_transport_header
	movq	%rbx, %rdi
	callq	_skb_transport_header
	movl	(%r12), %edx
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	callq	_memcpy
	movq	%r14, 8(%rbx)
	movq	_HCI_SCODATA_PKT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_bt_cb
	movl	%r12d, (%rax)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_skb_queue_tail
	movq	%r14, %rdi
	callq	_hci_sched_tx
	xorl	%eax, %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s len %d"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HCI_SCO_HDR_SIZE,4,2           ## @HCI_SCO_HDR_SIZE
	.comm	_HCI_SCODATA_PKT,4,2            ## @HCI_SCODATA_PKT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hci_send_sco                   ; -- Begin function hci_send_sco
	.p2align	2
_hci_send_sco:                          ; @hci_send_sco
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x21, x0
	ldr	x20, [x0, #8]
	ldr	w1, [x20, #8]
	ldr	x2, [x19]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BT_DBG
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_kfree_skb
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	ldr	w0, [x21, #4]
	bl	_cpu_to_le16
	str	w0, [sp, #8]
	ldr	x8, [x19]
	str	x8, [sp]
Lloh5:
	adrp	x22, _HCI_SCO_HDR_SIZE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _HCI_SCO_HDR_SIZE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_skb_push
	mov	x0, x19
	bl	_skb_reset_transport_header
	mov	x0, x19
	bl	_skb_transport_header
	ldr	w2, [x22]
	mov	x1, sp
	bl	_memcpy
	str	x20, [x19, #8]
Lloh7:
	adrp	x8, _HCI_SCODATA_PKT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HCI_SCODATA_PKT@GOTPAGEOFF]
Lloh9:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_bt_cb
	str	w22, [x0]
	mov	x0, x21
	mov	x1, x19
	bl	_skb_queue_tail
	mov	x0, x20
	bl	_hci_sched_tx
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s len %d"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HCI_SCO_HDR_SIZE,4,2           ; @HCI_SCO_HDR_SIZE
	.comm	_HCI_SCODATA_PKT,4,2            ; @HCI_SCODATA_PKT
.subsections_via_symbols
