	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvaser_usb_leaf_read_bulk_callback
_kvaser_usb_leaf_read_bulk_callback:    ## @kvaser_usb_leaf_read_bulk_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	%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	_CMD_HEADER_LEN@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jle	LBB0_1
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_round_up
	movl	%eax, %ebx
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %eax
	movq	_CMD_HEADER_LEN@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	cmpl	%eax, %ebx
	jg	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %r13
	movl	(%r15,%r13), %eax
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	%ebx, %eax
	cmpl	%r12d, %eax
	jg	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r15,%r13), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_kvaser_usb_leaf_handle_command
	addl	(%rbx), %r13d
	movl	%r13d, %ebx
	jmp	LBB0_4
LBB0_8:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err_ratelimited            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_HEADER_LEN,4,2             ## @CMD_HEADER_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Format error\n"

	.no_dead_strip	_kvaser_usb_leaf_read_bulk_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvaser_usb_leaf_read_bulk_callback
_kvaser_usb_leaf_read_bulk_callback:    ; @kvaser_usb_leaf_read_bulk_callback
	.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	x24, _CMD_HEADER_LEN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CMD_HEADER_LEN@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, w2
	b.le	LBB0_2
LBB0_1:
	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_2:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	w22, #0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_le16_to_cpu
	mov	x1, x0
	mov	x0, x22
	bl	_round_up
	mov	x22, x0
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x24]
	sub	w8, w19, w8
	cmp	w22, w8
	b.gt	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x23, x21, w22, sxtw
	ldr	w8, [x23]
	cbz	w8, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w8, w22
	cmp	w8, w19
	b.gt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_kvaser_usb_leaf_handle_command
	ldr	w8, [x23]
	add	w22, w8, w22
	b	LBB0_4
LBB0_8:
	ldr	x0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	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	_dev_err_ratelimited
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_HEADER_LEN,4,2             ; @CMD_HEADER_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Format error\n"

	.no_dead_strip	_kvaser_usb_leaf_read_bulk_callback
.subsections_via_symbols
