	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hci_num_comp_pkts_evt
_hci_num_comp_pkts_evt:                 ## @hci_num_comp_pkts_evt
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rsi), %rbx
	movq	%rsi, %rdi
	movl	$4, %esi
	callq	_skb_pull
	movl	36(%r14), %esi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_BT_DBG
	movl	(%rbx), %eax
	shll	$2, %eax
	cmpl	%eax, (%r15)
	jge	LBB0_1
## %bb.7:
	movl	36(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BT_DBG                         ## TAILCALL
LBB0_1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leaq	32(%r14), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_tasklet_disable
	cmpl	$0, (%rbx)
	jle	LBB0_6
## %bb.2:
	movl	8(%r15), %r12d
	xorl	%r14d, %r14d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r14d
	addl	$8, %r12d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	cmpl	(%rbx), %r14d
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	callq	_get_unaligned_le16
	movq	%rax, %r15
	leal	4(%r12), %edi
	callq	_get_unaligned_le16
	movq	%rax, %rbx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_hci_conn_hash_lookup_handle
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	subl	%ebx, 8(%rax)
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	movq	_ACL_LINK@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	setne	%cl
	shlq	$4, %rcx
	addq	(%r13,%rcx), %rbx
	movq	8(%r13,%rcx), %rax
	cmpq	%rax, %rbx
	cmovgeq	%rax, %rbx
	movq	%rbx, (%r13,%rcx)
	jmp	LBB0_5
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_hci_sched_tx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tasklet_enable                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s num_hndl %d"

L_.str.1:                               ## @.str.1
	.asciz	"%s bad parameters"

	.comm	_ACL_LINK,8,3                   ## @ACL_LINK
	.no_dead_strip	_hci_num_comp_pkts_evt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hci_num_comp_pkts_evt
_hci_num_comp_pkts_evt:                 ; @hci_num_comp_pkts_evt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
	ldr	x24, [x1, #8]
	mov	x0, x1
	mov	w1, #4
	bl	_skb_pull
	ldr	w1, [x19, #36]
	ldr	w8, [x24]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BT_DBG
	ldr	w8, [x21]
	ldr	w9, [x24]
	cmp	w8, w9, lsl #2
	b.ge	LBB0_2
; %bb.1:
	ldr	w1, [x19, #36]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	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
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_BT_DBG
LBB0_2:
	add	x20, x19, #32
	mov	x0, x20
	bl	_tasklet_disable
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	w25, #0
	ldr	w21, [x21, #8]
Lloh4:
	adrp	x26, _ACL_LINK@GOTPAGE
Lloh5:
	ldr	x26, [x26, _ACL_LINK@GOTPAGEOFF]
	mov	w27, #24
	mov	w28, #8
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w25, w25, #1
	ldr	w8, [x24]
	add	w21, w21, #8
	cmp	w25, w8
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_get_unaligned_le16
	mov	x23, x0
	add	w0, w21, #4
	bl	_get_unaligned_le16
	mov	x22, x0
	mov	x0, x19
	mov	x1, x23
	bl	_hci_conn_hash_lookup_handle
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x0, #8]
	sub	w8, w8, w22
	ldr	x9, [x0]
	ldr	x10, [x26]
	cmp	x9, x10
	csel	x9, x28, x27, eq
	cset	w10, ne
	lsl	x10, x10, #4
	ldr	x11, [x19, x10]
	ldr	x9, [x19, x9]
	str	w8, [x0, #8]
	add	x8, x11, x22
	cmp	x8, x9
	csel	x8, x8, x9, lt
	str	x8, [x19, x10]
	b	LBB0_4
LBB0_7:
	mov	x0, x19
	bl	_hci_sched_tx
	mov	x0, x20
	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
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_tasklet_enable
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s num_hndl %d"

l_.str.1:                               ; @.str.1
	.asciz	"%s bad parameters"

	.comm	_ACL_LINK,8,3                   ; @ACL_LINK
	.no_dead_strip	_hci_num_comp_pkts_evt
.subsections_via_symbols
