	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	_LBS_CMD_BUFFER_SIZE@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jge	LBB0_2
## %bb.1:
	movq	(%rcx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_lbs_deb_usbd
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree_skb                      ## TAILCALL
LBB0_2:
	movq	%r8, %r13
	movq	%rsi, %r14
	movl	%edi, %ebx
	leaq	16(%r8), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	xorl	%r12d, %r12d
	cmpq	$0, (%r13)
	sete	%r12b
	movq	8(%r13), %rax
	movl	(%rax,%r12,4), %edi
	callq	_BUG_ON
	movq	_MESSAGE_HEADER_LEN@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movq	8(%r13), %rcx
	movl	%ebx, (%rcx,%r12,4)
	movq	24(%r13), %rcx
	movl	(%rcx,%r12,4), %edi
	movslq	(%rax), %rax
	leaq	(%r14,%rax,4), %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movq	%r15, %rdi
	callq	_kfree_skb
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_lbs_notify_command_response
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	leaq	L_.str.1(%rip), %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lbs_deb_usbd                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LBS_CMD_BUFFER_SIZE,4,2        ## @LBS_CMD_BUFFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"The receive buffer is too large\n"

	.comm	_MESSAGE_HEADER_LEN,4,2         ## @MESSAGE_HEADER_LEN
L_.str.1:                               ## @.str.1
	.asciz	"Wake up main thread to handle cmd response\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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
Lloh0:
	adrp	x8, _LBS_CMD_BUFFER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LBS_CMD_BUFFER_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ge	LBB0_2
; %bb.1:
	ldr	x0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_lbs_deb_usbd
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_kfree_skb
LBB0_2:
	mov	x21, x4
	mov	x22, x1
	mov	x23, x0
	add	x24, x4, #16
	mov	x0, x24
	bl	_spin_lock_irqsave
	ldp	x8, x9, [x21]
	cmp	x8, #0
	cset	w25, eq
	lsl	x26, x25, #2
	ldr	w0, [x9, x26]
	bl	_BUG_ON
Lloh5:
	adrp	x8, _MESSAGE_HEADER_LEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MESSAGE_HEADER_LEN@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w2, w23, w9
	ldr	x9, [x21, #8]
	str	w2, [x9, x26]
	ldr	x9, [x21, #24]
	ldr	w0, [x9, x26]
	ldrsw	x8, [x8]
	add	x1, x22, x8, lsl #2
	bl	_memcpy
	mov	x0, x20
	bl	_kfree_skb
	mov	x0, x21
	mov	x1, x25
	bl	_lbs_notify_command_response
	mov	x0, x24
	bl	_spin_unlock_irqrestore
	ldr	x0, [x19]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_lbs_deb_usbd
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_LBS_CMD_BUFFER_SIZE,4,2        ; @LBS_CMD_BUFFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"The receive buffer is too large\n"

	.comm	_MESSAGE_HEADER_LEN,4,2         ; @MESSAGE_HEADER_LEN
l_.str.1:                               ; @.str.1
	.asciz	"Wake up main thread to handle cmd response\n"

	.no_dead_strip	_process_cmdrequest
.subsections_via_symbols
