	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adapter_thread
_adapter_thread:                        ## @adapter_thread
	.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
	movl	$32808, %eax                    ## imm = 0x8028
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$0, 44(%rdi)
	je	LBB0_2
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	addq	$32808, %rsp                    ## imm = 0x8028
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	48(%rbx), %r12
	leaq	-32832(%rbp), %r14
	leaq	-32816(%rbp), %r15
	leaq	-32820(%rbp), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, 44(%rbx)
	jne	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, -32820(%rbp)
	movl	32(%rbx), %edi
	callq	_slock_lock
	movl	40(%rbx), %edi
	callq	_fifo_read_avail
	cmpl	$8, %eax
	jb	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	40(%rbx), %edi
	movl	$8, %edx
	movq	%r14, %rsi
	callq	_fifo_read
	movl	40(%rbx), %edi
	callq	_fifo_read_avail
	cmpl	$8, %eax
	jb	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	40(%rbx), %edi
	movq	-32832(%rbp), %rdx
	movq	%r15, %rsi
	callq	_fifo_read
	movl	28(%rbx), %edi
	movl	36(%rbx), %esi
	movq	-32832(%rbp), %rcx
	movq	%r15, %rdx
	leaq	-32836(%rbp), %r8
	movl	$1000, %r9d                     ## imm = 0x3E8
	callq	_libusb_interrupt_transfer
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	32(%rbx), %edi
	callq	_slock_unlock
	movl	28(%rbx), %edi
	movl	24(%rbx), %esi
	movq	(%rbx), %rdx
	movq	8(%rbx), %rcx
	addq	$8, %rdx
	movq	%r13, %r8
	movl	$1000, %r9d                     ## imm = 0x3E8
	callq	_libusb_interrupt_transfer
	testq	%r12, %r12
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-32820(%rbp), %ecx
	testl	%ecx, %ecx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rdx
	movq	16(%rbx), %rsi
	leaq	(%rax,%rsi,4), %rdi
	incl	%ecx
	callq	_pad_connection_packet
	jmp	LBB0_10
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_adapter_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adapter_thread
_adapter_thread:                        ; @adapter_thread
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w27, -40
	.cfi_offset w28, -48
	mov	w9, #32800
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #8, lsl #12             ; =32768
	sub	sp, sp, #32
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #44]
	cbz	w8, LBB0_4
LBB0_2:
	ldur	x8, [x29, #-40]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.3:
	add	sp, sp, #8, lsl #12             ; =32768
	add	sp, sp, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x20, [x19, #48]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x19, #44]
	cbnz	w8, LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	str	wzr, [sp, #8]
	ldr	w0, [x19, #32]
	bl	_slock_lock
	ldr	w0, [x19, #40]
	bl	_fifo_read_avail
	cmp	w0, #8
	b.lo	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x19, #40]
	add	x1, sp, #16
	mov	w2, #8
	bl	_fifo_read
	ldr	w0, [x19, #40]
	bl	_fifo_read_avail
	cmp	w0, #8
	b.lo	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x19, #40]
	ldr	x2, [sp, #16]
	add	x1, sp, #24
	bl	_fifo_read
	ldr	w0, [x19, #28]
	ldr	w1, [x19, #36]
	ldr	x3, [sp, #16]
	add	x2, sp, #24
	add	x4, sp, #12
	mov	w5, #1000
	bl	_libusb_interrupt_transfer
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x19, #32]
	bl	_slock_unlock
	ldp	w1, w0, [x19, #24]
	ldp	x8, x3, [x19]
	add	x2, x8, #8
	add	x4, sp, #8
	mov	w5, #1000
	bl	_libusb_interrupt_transfer
	cbz	x20, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [sp, #8]
	cbz	w9, LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x19, #16]
	add	x0, x8, x1, lsl #2
	ldr	x2, [x19]
	add	w3, w9, #1
	bl	_pad_connection_packet
	b	LBB0_5
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_adapter_thread
.subsections_via_symbols
