	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_cmdrequest
_process_cmdrequest:                    ## @process_cmdrequest
	.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	%rdx, %r14
	movl	%edi, %ebx
	movq	_MESSAGE_HEADER_LEN@GOTPCREL(%rip), %r13
	cmpl	%edi, (%r13)
	jg	LBB0_2
## %bb.1:
	movq	_LBS_CMD_BUFFER_SIZE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jl	LBB0_2
## %bb.3:
	movq	%r8, %r15
	movq	%rsi, %r12
	movq	%r8, %rdi
	callq	_spin_lock_irqsave
	movl	4(%r15), %edi
	movslq	(%r13), %rax
	leaq	(%r12,%rax,4), %rsi
	subl	%eax, %ebx
	movl	%ebx, %edx
	callq	_memcpy
	movq	%r14, %rdi
	callq	_kfree_skb
	movq	%r15, %rdi
	callq	_lbtf_cmd_response_rx
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_2:
	movq	(%rcx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_lbtf_deb_usbd
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree_skb                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MESSAGE_HEADER_LEN,4,2         ## @MESSAGE_HEADER_LEN
	.comm	_LBS_CMD_BUFFER_SIZE,4,2        ## @LBS_CMD_BUFFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"The receive buffer is invalid: %d\n"

	.no_dead_strip	_process_cmdrequest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_cmdrequest
_process_cmdrequest:                    ; @process_cmdrequest
	.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
	mov	x19, x2
	mov	x21, x0
Lloh0:
	adrp	x23, _MESSAGE_HEADER_LEN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MESSAGE_HEADER_LEN@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x9, _LBS_CMD_BUFFER_SIZE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LBS_CMD_BUFFER_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w0
	ccmp	w9, w0, #8, le
	b.ge	LBB0_2
; %bb.1:
	ldr	x0, [x3]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_lbtf_deb_usbd
	mov	x0, x19
	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	_kfree_skb
LBB0_2:
	mov	x20, x4
	mov	x22, x1
	mov	x0, x4
	bl	_spin_lock_irqsave
	ldr	w0, [x20, #4]
	ldrsw	x8, [x23]
	add	x1, x22, x8, lsl #2
	sub	w2, w21, w8
	bl	_memcpy
	mov	x0, x19
	bl	_kfree_skb
	mov	x0, x20
	bl	_lbtf_cmd_response_rx
	mov	x0, x20
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MESSAGE_HEADER_LEN,4,2         ; @MESSAGE_HEADER_LEN
	.comm	_LBS_CMD_BUFFER_SIZE,4,2        ; @LBS_CMD_BUFFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"The receive buffer is invalid: %d\n"

	.no_dead_strip	_process_cmdrequest
.subsections_via_symbols
