	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function writearm
_writearm:                              ## @writearm
	.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
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_CMDRET_ZERO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	_MAX_WRITE_RETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	-56(%rbp), %rcx
	movl	$2, %esi
	movl	%r12d, %edx
	callq	_SEND_RMEM
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	notl	%r13d
	movq	-56(%rbp), %rax
	andl	%r13d, (%rax)
	decl	%r14d
	je	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	%r12d, %edx
	callq	_SEND_SMEM
	movq	-56(%rbp), %rax
	movl	(%rax), %edx
	orl	%r15d, %edx
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_SEND_WMEM
	movq	%rbx, %rdi
	movl	$2, %esi
	movl	%r12d, %edx
	leaq	-56(%rbp), %rcx
	callq	_SEND_RMEM
	movq	-56(%rbp), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	notl	%edx
	testl	%edx, %r15d
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	andl	%r13d, %ecx
	movl	%ecx, (%rax)
	decl	%r14d
	jne	LBB0_2
LBB0_5:
	movl	$1, %ebx
	jmp	LBB0_6
LBB0_3:
	xorl	%ebx, %ebx
LBB0_6:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%ebx, %r8d
	callq	_snd_printdd
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMDRET_ZERO,8,3                ## @CMDRET_ZERO
	.comm	_MAX_WRITE_RETRY,4,2            ## @MAX_WRITE_RETRY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"send arm 0x%x 0x%x 0x%x return %d\n"

	.no_dead_strip	_writearm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function writearm
_writearm:                              ; @writearm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _CMDRET_ZERO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMDRET_ZERO@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh3:
	adrp	x8, _MAX_WRITE_RETRY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_WRITE_RETRY@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	add	x3, sp, #8
	mov	w1, #2
	mov	x2, x21
	bl	_SEND_RMEM
	ldr	x8, [sp, #8]
	ldr	w9, [x8]
	bic	w9, w9, w19
	str	w9, [x8]
	subs	w23, w23, #1
	b.eq	LBB0_4
; %bb.1:
	mvn	w24, w19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	w1, #1
	mov	x2, x21
	bl	_SEND_SMEM
	ldr	x8, [sp, #8]
	ldr	w8, [x8]
	orr	w2, w8, w20
	mov	x0, x22
	mov	w1, #2
	bl	_SEND_WMEM
	add	x3, sp, #8
	mov	x0, x22
	mov	w1, #2
	mov	x2, x21
	bl	_SEND_RMEM
	ldr	x8, [sp, #8]
	ldr	w9, [x8]
	bics	wzr, w20, w9
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	and	w9, w9, w24
	str	w9, [x8]
	subs	w23, w23, #1
	b.ne	LBB0_2
LBB0_4:
	mov	w22, #1
	b	LBB0_6
LBB0_5:
	mov	w22, #0
LBB0_6:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	mov	x4, x22
	bl	_snd_printdd
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CMDRET_ZERO,8,3                ; @CMDRET_ZERO
	.comm	_MAX_WRITE_RETRY,4,2            ; @MAX_WRITE_RETRY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"send arm 0x%x 0x%x 0x%x return %d\n"

	.no_dead_strip	_writearm
.subsections_via_symbols
