	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ubt_probe_intr_callback
_ubt_probe_intr_callback:               ## @ubt_probe_intr_callback
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_usbd_xfer_softc
	movq	%rax, %r14
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_usbd_xfer_status
	movq	%rbx, %rdi
	callq	_USB_GET_STATE
	cmpl	$129, %eax
	je	LBB0_7
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.2:
	movl	-28(%rbp), %r15d
	movq	%r14, %rdi
	callq	_UBT_HCI_EVENT_SIZE
	cmpl	%eax, %r15d
	jle	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_UBT_HCI_EVENT_SIZE
	movl	%eax, -28(%rbp)
LBB0_4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_usbd_xfer_get_frame
	movl	-28(%rbp), %ecx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_usbd_copy_out
	movq	%r14, %rdi
	callq	_wakeup
	jmp	LBB0_8
LBB0_5:
	movq	_USB_ERR_CANCELLED@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_8
## %bb.6:
	movl	%r15d, %edi
	callq	_usbd_errstr
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_printf
LBB0_7:
	movq	%rbx, %rdi
	callq	_usbd_xfer_set_stall
	movq	%rbx, %rdi
	callq	_usbd_xfer_max_len
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_usbd_xfer_set_frame_len
	movq	%rbx, %rdi
	callq	_usbd_transfer_submit
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_ERR_CANCELLED,4,2          ## @USB_ERR_CANCELLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ng_ubt: interrupt transfer failed: %s\n"

	.no_dead_strip	_ubt_probe_intr_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ubt_probe_intr_callback
_ubt_probe_intr_callback:               ; @ubt_probe_intr_callback
	.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	x21, x1
	mov	x19, x0
	bl	_usbd_xfer_softc
	mov	x20, x0
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_usbd_xfer_status
	mov	x0, x19
	bl	_USB_GET_STATE
	cmp	w0, #129
	b.eq	LBB0_7
; %bb.1:
	cmp	w0, #128
	b.ne	LBB0_5
; %bb.2:
	ldr	w21, [sp, #12]
	mov	x0, x20
	bl	_UBT_HCI_EVENT_SIZE
	cmp	w21, w0
	b.le	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_UBT_HCI_EVENT_SIZE
	str	w0, [sp, #12]
LBB0_4:
	mov	x0, x19
	mov	w1, #0
	bl	_usbd_xfer_get_frame
	ldr	w3, [sp, #12]
	mov	w1, #0
	mov	x2, x20
	bl	_usbd_copy_out
	mov	x0, x20
	bl	_wakeup
	b	LBB0_8
LBB0_5:
Lloh0:
	adrp	x8, _USB_ERR_CANCELLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_ERR_CANCELLED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.eq	LBB0_8
; %bb.6:
	mov	x0, x21
	bl	_usbd_errstr
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_7:
	mov	x0, x19
	bl	_usbd_xfer_set_stall
	mov	x0, x19
	bl	_usbd_xfer_max_len
	mov	x2, x0
	mov	x0, x19
	mov	w1, #0
	bl	_usbd_xfer_set_frame_len
	mov	x0, x19
	bl	_usbd_transfer_submit
LBB0_8:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_ERR_CANCELLED,4,2          ; @USB_ERR_CANCELLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ng_ubt: interrupt transfer failed: %s\n"

	.no_dead_strip	_ubt_probe_intr_callback
.subsections_via_symbols
