	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function command_scan
_command_scan:                          ## @command_scan
	.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	%r8, %r12
	movq	%rcx, %r14
	movq	%rdi, %r15
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rsi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rdx), %r13
	addq	%rcx, %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_cmd_parser_exec
	testl	%eax, %eax
	jne	LBB0_10
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rsi
	cmpq	%r13, %rsi
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r15), %rax
	movq	_RING_BUFFER_INSTRUCTION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r14, %rsi
	jb	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r12, %rsi
	jae	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rsi, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_gma_out_of_range
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	(%r15), %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r14, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_gvt_vgpu_err
	jmp	LBB0_11
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_10:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_gvt_vgpu_err
LBB0_11:
	movq	%r15, %rdi
	callq	_parser_exec_state_dump
	jmp	LBB0_12
LBB0_6:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r14, %rdx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_gvt_vgpu_err
	movq	%r15, %rdi
	callq	_parser_exec_state_dump
	movq	_EFAULT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RING_BUFFER_INSTRUCTION,8,3    ## @RING_BUFFER_INSTRUCTION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ip_gma %lx out of ring scope.(base:0x%lx, bottom: 0x%lx)\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
L_.str.1:                               ## @.str.1
	.asciz	"ip_gma %lx out of range.base 0x%lx head 0x%lx tail 0x%lx\n"

L_.str.2:                               ## @.str.2
	.asciz	"cmd parser error\n"

	.no_dead_strip	_command_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function command_scan
_command_scan:                          ; @command_scan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	add	x23, x3, x1
	add	x24, x3, x2
	add	x26, x4, x3
Lloh0:
	adrp	x27, _RING_BUFFER_INSTRUCTION@GOTPAGE
Lloh1:
	ldr	x27, [x27, _RING_BUFFER_INSTRUCTION@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_cmd_parser_exec
	cbnz	w0, LBB0_8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	cmp	x0, x24
	b.eq	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x0, x20
	ccmp	x0, x26, #2, hs
	b.hs	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x1, x23
	mov	x2, x24
	bl	_gma_out_of_range
	cbz	x0, LBB0_1
; %bb.6:
	ldr	x8, [x19]
	stp	x21, x22, [sp, #16]
	stp	x8, x20, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_gvt_vgpu_err
	mov	x0, x19
	bl	_parser_exec_state_dump
LBB0_7:
	mov	w25, #0
	b	LBB0_10
LBB0_8:
	mov	x25, x0
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_gvt_vgpu_err
	mov	x0, x19
	bl	_parser_exec_state_dump
	b	LBB0_10
LBB0_9:
	stp	x20, x26, [sp, #8]
	str	x0, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_gvt_vgpu_err
	mov	x0, x19
	bl	_parser_exec_state_dump
Lloh8:
	adrp	x8, _EFAULT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_10:
	mov	x0, x25
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RING_BUFFER_INSTRUCTION,8,3    ; @RING_BUFFER_INSTRUCTION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ip_gma %lx out of ring scope.(base:0x%lx, bottom: 0x%lx)\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
l_.str.1:                               ; @.str.1
	.asciz	"ip_gma %lx out of range.base 0x%lx head 0x%lx tail 0x%lx\n"

l_.str.2:                               ; @.str.2
	.asciz	"cmd parser error\n"

	.no_dead_strip	_command_scan
.subsections_via_symbols
