	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_set                        ## -- Begin function cmd_set
	.p2align	4, 0x90
_cmd_set:                               ## @cmd_set
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	leal	-6(%r15), %eax
	cmpl	$-5, %eax
	ja	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %eax
	jmp	LBB0_21
LBB0_2:
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	(%rsi), %r14
	movq	$0, -64(%rbp)
	movq	8(%rsi), %rdi
	leaq	-64(%rbp), %rsi
	callq	_read_data
	cmpq	$0, -64(%rbp)
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	cmpl	$3, %r15d
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	jb	LBB0_5
## %bb.7:
	movq	16(%r12), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtoull
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	cmpl	$3, %r15d
	jne	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$2, %eax
	jmp	LBB0_21
LBB0_5:
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_6
LBB0_9:
	movq	24(%r12), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtoull
	movq	%rax, %r14
	cmpl	$5, %r15d
	jb	LBB0_10
## %bb.11:
	movq	32(%r12), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtoull
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_10:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
LBB0_6:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_12:
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_strlen
	movq	-64(%rbp), %rcx
	movq	_quiet@GOTPCREL(%rip), %rbx
	leaq	-44(%rbp), %r10
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	movl	%r14d, %r9d
	pushq	%r10
	pushq	(%rbx)
	movq	%rbx, %r14
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	%r12
	callq	_yrmcds_set
	addq	$32, %rsp
	movl	%eax, %ebx
	movq	-64(%rbp), %rdi
	callq	_free
	movl	%ebx, %edi
	callq	_CHECK_ERROR
	cmpq	$0, (%r14)
	je	LBB0_14
## %bb.13:
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	callq	_yrmcds_noop
	movl	%eax, %edi
	callq	_CHECK_ERROR
LBB0_14:
	movq	_debug@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_16
## %bb.15:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_16:
	leaq	-80(%rbp), %rbx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%rbx, %rdi
	callq	_CHECK_RESPONSE
	movl	-80(%rbp), %eax
	cmpl	-44(%rbp), %eax
	je	LBB0_20
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_yrmcds_recv
	movl	%eax, %edi
	callq	_CHECK_ERROR
	cmpq	$0, (%r14)
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%rbx, %rdi
	callq	_print_response
	jmp	LBB0_19
LBB0_20:
	xorl	%eax, %eax
LBB0_21:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wrong number of arguments.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to read data.\n"

	.comm	_quiet,8,3                      ## @quiet
	.comm	_debug,8,3                      ## @debug
L_.str.2:                               ## @.str.2
	.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_set                        ; -- Begin function cmd_set
	.p2align	2
_cmd_set:                               ; @cmd_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	sub	w8, w0, #6
	cmn	w8, #5
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _stderr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	b	LBB0_17
LBB0_2:
	mov	x19, x2
	mov	x23, x1
	mov	x25, x0
	str	xzr, [sp, #40]
	ldp	x20, x0, [x1]
	add	x1, sp, #40
	bl	_read_data
	ldr	x8, [sp, #40]
	cbz	x8, LBB0_6
; %bb.3:
	mov	x21, x0
	cmp	w25, #3
	b.lo	LBB0_7
; %bb.4:
	ldr	x0, [x23, #16]
	mov	x1, #0
	mov	w2, #0
	bl	_strtoull
	mov	x22, x0
	cmp	w25, #3
	b.ne	LBB0_18
; %bb.5:
	mov	w24, #0
	b	LBB0_8
LBB0_6:
Lloh5:
	adrp	x8, _stderr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	mov	w0, #2
	b	LBB0_17
LBB0_7:
	mov	w24, #0
	mov	w22, #0
LBB0_8:
	mov	x26, #0
LBB0_9:
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	ldr	x3, [sp, #40]
Lloh10:
	adrp	x23, _quiet@GOTPAGE
Lloh11:
	ldr	x23, [x23, _quiet@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x9, sp, #28
	stp	x8, x9, [sp]
	mov	x0, x19
	mov	x1, x20
	mov	x4, x21
	mov	x5, x24
	mov	x6, x22
	mov	x7, x26
	bl	_yrmcds_set
	mov	x20, x0
	ldr	x0, [sp, #40]
	bl	_free
	mov	x0, x20
	bl	_CHECK_ERROR
	ldr	x8, [x23]
	cbz	x8, LBB0_11
; %bb.10:
	add	x1, sp, #28
	mov	x0, x19
	bl	_yrmcds_noop
	bl	_CHECK_ERROR
LBB0_11:
Lloh12:
	adrp	x20, _debug@GOTPAGE
Lloh13:
	ldr	x20, [x20, _debug@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_14
; %bb.12:
Lloh14:
	adrp	x8, _stderr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	w8, [sp, #28]
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x0, sp, #32
	bl	_CHECK_RESPONSE
	ldp	w9, w8, [sp, #28]
	cmp	w8, w9
	b.eq	LBB0_16
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #32
	mov	x0, x19
	bl	_yrmcds_recv
	bl	_CHECK_ERROR
	ldr	x8, [x20]
	cbz	x8, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x0, sp, #32
	bl	_print_response
	b	LBB0_13
LBB0_16:
	mov	w0, #0
LBB0_17:
	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
	add	sp, sp, #128
	ret
LBB0_18:
	ldr	x0, [x23, #24]
	mov	x1, #0
	mov	w2, #0
	bl	_strtoull
	mov	x24, x0
	cmp	w25, #5
	b.lo	LBB0_8
; %bb.19:
	ldr	x0, [x23, #32]
	mov	x1, #0
	mov	w2, #0
	bl	_strtoull
	mov	x26, x0
	b	LBB0_9
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wrong number of arguments.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to read data.\n"

	.comm	_quiet,8,3                      ; @quiet
	.comm	_debug,8,3                      ; @debug
l_.str.2:                               ; @.str.2
	.asciz	"request serial = %u\n"

.subsections_via_symbols
