	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcan_usb_update_ts
_pcan_usb_update_ts:                    ## @pcan_usb_update_ts
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movslq	32(%rdi), %rsi
	leaq	2(%rsi), %rax
	cmpq	%rax, (%rdi)
	jge	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	movq	%rdi, %rbx
	leaq	-12(%rbp), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$2, %edx
	callq	_memcpy
	movl	-12(%rbp), %edi
	callq	_le16_to_cpu
	movl	%eax, 16(%rbx)
	cmpq	$0, 8(%rbx)
	movq	24(%rbx), %rdi
	movl	%eax, %esi
	jle	LBB0_4
## %bb.3:
	callq	_peak_usb_update_ts_now
	jmp	LBB0_5
LBB0_4:
	callq	_peak_usb_set_ts_now
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_pcan_usb_update_ts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcan_usb_update_ts
_pcan_usb_update_ts:                    ; @pcan_usb_update_ts
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldrsw	x1, [x0, #32]
	add	x8, x1, #2
	ldr	x9, [x0]
	cmp	x9, x8
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	mov	x19, x0
	add	x0, sp, #12
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #2
	bl	_memcpy
	ldr	w0, [sp, #12]
	bl	_le16_to_cpu
	mov	x1, x0
	str	w0, [x19, #16]
	ldr	x8, [x19, #8]
	ldr	x0, [x19, #24]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.3:
	bl	_peak_usb_update_ts_now
	b	LBB0_5
LBB0_4:
	bl	_peak_usb_set_ts_now
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_pcan_usb_update_ts
.subsections_via_symbols
