	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __readintrdataCB
___readintrdataCB:                      ## @__readintrdataCB
	.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	___usbdev@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jne	LBB0_9
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r12
	testq	%rdi, %rdi
	jle	LBB0_8
## %bb.2:
	movq	_PBUF_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PBUF_POOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_btpbuf_alloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %r15
	movq	(%r14), %r13
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx), %edi
	movq	(%rbx), %rdx
	movq	%r13, %rsi
	callq	_memcpy
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rcx
	leaq	(%r13,%rcx,4), %r13
	subq	%rcx, %r12
	movq	%rax, %rbx
	testq	%r12, %r12
	jg	LBB0_4
LBB0_6:
	movq	_hci_event_handler@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	___ppc_btstack1@GOTPCREL(%rip), %rax
	movq	_STACKSIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	shlq	$2, %r9
	addq	(%rax), %r9
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SYS_SwitchFiber
	movq	%r15, %rdi
	callq	_btpbuf_free
	jmp	LBB0_8
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_ERROR
LBB0_8:
	movq	_ctrlbufs@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_btmemb_free
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___issue_intrread               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	___usbdev,4,2                   ## @__usbdev
	.comm	_PBUF_RAW,4,2                   ## @PBUF_RAW
	.comm	_PBUF_POOL,4,2                  ## @PBUF_POOL
	.comm	_hci_event_handler,8,3          ## @hci_event_handler
	.comm	___ppc_btstack1,8,3             ## @__ppc_btstack1
	.comm	_STACKSIZE,8,3                  ## @STACKSIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"__readintrdataCB: Could not allocate memory for pbuf.\n"

	.comm	_ctrlbufs,4,2                   ## @ctrlbufs
	.no_dead_strip	___readintrdataCB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __readintrdataCB
___readintrdataCB:                      ; @__readintrdataCB
	.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
Lloh0:
	adrp	x8, ___usbdev@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___usbdev@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #2
	b.ne	LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	cmp	x0, #1
	b.lt	LBB0_8
; %bb.2:
Lloh3:
	adrp	x8, _PBUF_RAW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PBUF_RAW@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _PBUF_POOL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PBUF_POOL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_btpbuf_alloc
	cbz	x0, LBB0_7
; %bb.3:
	mov	x21, x0
	ldr	x22, [x19]
	mov	x23, x0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23, #8]
	ldr	x2, [x23]
	mov	x1, x22
	bl	_memcpy
	ldr	x8, [x23]
	add	x22, x22, x8, lsl #2
	sub	x20, x20, x8
	ldr	x23, [x23, #16]
	cmp	x23, #0
	ccmp	x20, #0, #4, ne
	b.gt	LBB0_4
; %bb.5:
Lloh9:
	adrp	x8, _hci_event_handler@GOTPAGE
Lloh10:
	ldr	x8, [x8, _hci_event_handler@GOTPAGEOFF]
Lloh11:
	adrp	x9, ___ppc_btstack1@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___ppc_btstack1@GOTPAGEOFF]
Lloh13:
	ldr	x4, [x8]
Lloh14:
	ldr	x8, [x9]
Lloh15:
	adrp	x9, _STACKSIZE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _STACKSIZE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x5, x8, x9, lsl #2
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_SYS_SwitchFiber
	mov	x0, x21
	bl	_btpbuf_free
	b	LBB0_8
LBB0_6:
	mov	x0, #0
	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
	ret
LBB0_7:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERROR
LBB0_8:
Lloh20:
	adrp	x0, _ctrlbufs@GOTPAGE
Lloh21:
	ldr	x0, [x0, _ctrlbufs@GOTPAGEOFF]
	mov	x1, x19
	bl	_btmemb_free
	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	___issue_intrread
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	___usbdev,4,2                   ; @__usbdev
	.comm	_PBUF_RAW,4,2                   ; @PBUF_RAW
	.comm	_PBUF_POOL,4,2                  ; @PBUF_POOL
	.comm	_hci_event_handler,8,3          ; @hci_event_handler
	.comm	___ppc_btstack1,8,3             ; @__ppc_btstack1
	.comm	_STACKSIZE,8,3                  ; @STACKSIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"__readintrdataCB: Could not allocate memory for pbuf.\n"

	.comm	_ctrlbufs,4,2                   ; @ctrlbufs
	.no_dead_strip	___readintrdataCB
.subsections_via_symbols
