	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hci_acldata_handler            ## -- Begin function hci_acldata_handler
	.p2align	4, 0x90
_hci_acldata_handler:                   ## @hci_acldata_handler
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r12
	movq	_HCI_ACL_HDR_LEN@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	subl	(%rax), %esi
	callq	_btpbuf_header
	movl	4(%r12), %edi
	callq	_le16toh
	movl	%eax, %r15d
	andl	$4095, %r15d                    ## imm = 0xFFF
	movq	_hci_dev@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.1:
	decq	(%rax)
	jne	LBB0_3
## %bb.2:
	movq	_HCI_HOST_MAX_NUM_ACL@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movl	%r15d, %edi
	callq	_hci_host_num_comp_packets
	movq	(%r13), %rax
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
LBB0_3:
	movq	_hci_active_links@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r15d, (%rbx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_5
LBB0_8:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_btpbuf_free                    ## TAILCALL
LBB0_7:
	movl	(%r12), %edi
	callq	_le16toh
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	addq	$4, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_l2cap_input                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HCI_ACL_HDR_LEN,4,2            ## @HCI_ACL_HDR_LEN
	.comm	_hci_dev,8,3                    ## @hci_dev
	.comm	_HCI_HOST_MAX_NUM_ACL,8,3       ## @HCI_HOST_MAX_NUM_ACL
	.comm	_hci_active_links,8,3           ## @hci_active_links
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hci_acldata_handler            ; -- Begin function hci_acldata_handler
	.p2align	2
_hci_acldata_handler:                   ; @hci_acldata_handler
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _HCI_ACL_HDR_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCI_ACL_HDR_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w1, w8
	bl	_btpbuf_header
	ldr	w0, [x21, #4]
	bl	_le16toh
	and	w20, w0, #0xfff
Lloh3:
	adrp	x22, _hci_dev@GOTPAGE
Lloh4:
	ldr	x22, [x22, _hci_dev@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_3
; %bb.1:
	ldr	x9, [x8]
	subs	x9, x9, #1
	str	x9, [x8]
	b.ne	LBB0_3
; %bb.2:
Lloh5:
	adrp	x23, _HCI_HOST_MAX_NUM_ACL@GOTPAGE
Lloh6:
	ldr	x23, [x23, _HCI_HOST_MAX_NUM_ACL@GOTPAGEOFF]
	ldr	x1, [x23]
	mov	x0, x20
	bl	_hci_host_num_comp_packets
	ldr	x8, [x23]
	ldr	x9, [x22]
	str	x8, [x9]
LBB0_3:
Lloh7:
	adrp	x8, _hci_active_links@GOTPAGE
Lloh8:
	ldr	x8, [x8, _hci_active_links@GOTPAGEOFF]
Lloh9:
	ldr	x22, [x8]
	cbz	x22, LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	cmp	w8, w20
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x22, [x22, #8]
	cbnz	x22, LBB0_4
	b	LBB0_8
LBB0_6:
	ldr	w0, [x21]
	bl	_le16toh
	cbz	w0, LBB0_8
; %bb.7:
	add	x1, x22, #4
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_l2cap_input
LBB0_8:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_btpbuf_free
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_HCI_ACL_HDR_LEN,4,2            ; @HCI_ACL_HDR_LEN
	.comm	_hci_dev,8,3                    ; @hci_dev
	.comm	_HCI_HOST_MAX_NUM_ACL,8,3       ; @HCI_HOST_MAX_NUM_ACL
	.comm	_hci_active_links,8,3           ; @hci_active_links
.subsections_via_symbols
