	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hci_sched_sco
_hci_sched_sco:                         ## @hci_sched_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movslq	8(%rdi), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_BT_DBG
	cmpq	$0, (%r14)
	je	LBB0_8
## %bb.1:
	leaq	L_.str.1(%rip), %r12
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	cmpq	$0, (%r14)
	je	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	_SCO_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	leaq	-44(%rbp), %rdx
	callq	_hci_low_sent
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	subl	$1, -44(%rbp)
	jb	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movq	%rax, %r13
	addq	$4, %r13
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	callq	_skb_dequeue
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%rax, %r14
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_BT_DBG
	movq	%r14, %rdi
	callq	_hci_send_frame
	movl	(%rbx), %eax
	incl	%eax
	cmpl	$-1, %eax
	cmovel	%r15d, %eax
	movl	%eax, (%rbx)
	subl	$1, -44(%rbp)
	jae	LBB0_5
	jmp	LBB0_7
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_SCO_LINK,4,2                   ## @SCO_LINK
L_.str.1:                               ## @.str.1
	.asciz	"skb %p len %d"

	.no_dead_strip	_hci_sched_sco
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hci_sched_sco
_hci_sched_sco:                         ; @hci_sched_sco
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldrsw	x1, [x0, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BT_DBG
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.1:
Lloh2:
	adrp	x24, _SCO_LINK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SCO_LINK@GOTPAGEOFF]
Lloh4:
	adrp	x20, l_.str.1@PAGE
Lloh5:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	cbz	x8, LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w1, [x24]
	add	x2, sp, #12
	mov	x0, x19
	bl	_hci_low_sent
	cbz	x0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #12]
	sub	w9, w8, #1
	str	w9, [sp, #12]
	cbz	w8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x0
	add	x22, x0, #4
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	bl	_skb_dequeue
	cbz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x23, x0
	ldr	w8, [x0]
	str	x8, [sp]
	mov	x0, x20
	mov	x1, x23
	bl	_BT_DBG
	mov	x0, x23
	bl	_hci_send_frame
	ldr	w8, [x21]
	add	w9, w8, #1
	cmn	w9, #1
	csinc	w8, wzr, w8, eq
	str	w8, [x21]
	ldr	w8, [sp, #12]
	sub	w9, w8, #1
	str	w9, [sp, #12]
	cbnz	w8, LBB0_6
	b	LBB0_2
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_SCO_LINK,4,2                   ; @SCO_LINK
l_.str.1:                               ; @.str.1
	.asciz	"skb %p len %d"

	.no_dead_strip	_hci_sched_sco
.subsections_via_symbols
