	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_flush                      ## -- Begin function cmd_flush
	.p2align	4, 0x90
_cmd_flush:                             ## @cmd_flush
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rax
	xorl	%esi, %esi
	cmpl	$1, %edi
	jne	LBB0_2
## %bb.1:
	movq	(%rax), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtoull
	movq	%rax, %rsi
LBB0_2:
	movq	_quiet@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	leaq	-28(%rbp), %rcx
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_yrmcds_flush
	movl	%eax, %edi
	callq	_CHECK_ERROR
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	leaq	-28(%rbp), %rsi
	movq	%r14, %rdi
	callq	_yrmcds_noop
	movl	%eax, %edi
	callq	_CHECK_ERROR
LBB0_4:
	movq	_debug@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_6
## %bb.5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-28(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
LBB0_6:
	leaq	-32(%rbp), %rbx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	callq	_CHECK_RESPONSE
	movl	-32(%rbp), %eax
	cmpl	-28(%rbp), %eax
	je	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_yrmcds_recv
	movl	%eax, %edi
	callq	_CHECK_ERROR
	cmpq	$0, (%r15)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	callq	_print_response
	jmp	LBB0_9
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_quiet,8,3                      ## @quiet
	.comm	_debug,8,3                      ## @debug
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"request serial = %u\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_flush                      ; -- Begin function cmd_flush
	.p2align	2
_cmd_flush:                             ; @cmd_flush
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x1]
	mov	x1, #0
	mov	w2, #0
	bl	_strtoull
	mov	x1, x0
	b	LBB0_3
LBB0_2:
	mov	w1, #0
LBB0_3:
Lloh0:
	adrp	x20, _quiet@GOTPAGE
Lloh1:
	ldr	x20, [x20, _quiet@GOTPAGEOFF]
	ldr	x2, [x20]
	add	x3, sp, #4
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_yrmcds_flush
	bl	_CHECK_ERROR
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.4:
	add	x1, sp, #4
	mov	x0, x19
	bl	_yrmcds_noop
	bl	_CHECK_ERROR
LBB0_5:
Lloh2:
	adrp	x20, _debug@GOTPAGE
Lloh3:
	ldr	x20, [x20, _debug@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_8
; %bb.6:
Lloh4:
	adrp	x8, _stderr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	w2, [sp, #4]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x0, sp, #8
	bl	_CHECK_RESPONSE
	ldp	w9, w8, [sp, #4]
	cmp	w8, w9
	b.eq	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_yrmcds_recv
	bl	_CHECK_ERROR
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x0, sp, #8
	bl	_print_response
	b	LBB0_7
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_quiet,8,3                      ; @quiet
	.comm	_debug,8,3                      ; @debug
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"request serial = %u\n"

.subsections_via_symbols
