	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gve_adminq_execute_cmd         ## -- Begin function gve_adminq_execute_cmd
	.p2align	4, 0x90
_gve_adminq_execute_cmd:                ## @gve_adminq_execute_cmd
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %r12
	movq	8(%rdi), %rbx
	andq	%r12, %rbx
	shlq	$2, %rbx
	addq	24(%rdi), %rbx
	incq	%r12
	movq	%r12, (%rdi)
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_gve_adminq_kick_cmd
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_gve_adminq_wait_for_cmd
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	(%rbx), %edi
	callq	_READ_ONCE
	movl	%eax, %edi
	callq	_be32_to_cpu
	movq	16(%r14), %rdi
	movq	%rax, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gve_adminq_parse_err           ## TAILCALL
LBB0_1:
	movq	16(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOTRECOVERABLE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AQ command timed out, need to reset AQ\n"

	.comm	_ENOTRECOVERABLE,4,2            ## @ENOTRECOVERABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gve_adminq_execute_cmd         ; -- Begin function gve_adminq_execute_cmd
	.p2align	2
_gve_adminq_execute_cmd:                ; @gve_adminq_execute_cmd
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldp	x9, x10, [x0]
	and	x10, x10, x9
	add	x21, x8, x10, lsl #2
	add	x22, x9, #1
	str	x22, [x0]
	mov	x0, x21
	mov	w2, #4
	bl	_memcpy
	mov	x0, x19
	mov	x1, x22
	bl	_gve_adminq_kick_cmd
	mov	x0, x19
	mov	x1, x22
	bl	_gve_adminq_wait_for_cmd
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x21]
	bl	_READ_ONCE
	bl	_be32_to_cpu
	mov	x1, x0
	ldr	x0, [x19, #16]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_gve_adminq_parse_err
LBB0_2:
	ldr	x0, [x19, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh2:
	adrp	x8, _ENOTRECOVERABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOTRECOVERABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AQ command timed out, need to reset AQ\n"

	.comm	_ENOTRECOVERABLE,4,2            ; @ENOTRECOVERABLE
.subsections_via_symbols
