	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_vector
_write_vector:                          ## @write_vector
	.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	%rsi, %rbx
	movl	4(%rsi), %esi
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%edx, %edi
	callq	_msleep
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	12(%rbx), %esi
	addq	$8, %rbx
	testl	%esi, %esi
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testl	$32768, %esi                    ## imm = 0x8000
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_ssi_w
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %edx
	cmpl	$56576, %esi                    ## imm = 0xDD00
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_reg_write
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_9
	jmp	LBB0_10
LBB0_1:
	xorl	%r15d, %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_write_vector
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_vector
_write_vector:                          ; @write_vector
	.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
	ldr	w1, [x1, #4]
	cbz	w1, LBB0_8
; %bb.1:
	mov	x19, x0
	mov	w21, #0
	mov	w22, #56576
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x2
	bl	_msleep
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x20, #12]
	add	x20, x20, #8
	cbz	w1, LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	tbnz	w1, #15, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x20]
	mov	x0, x19
	bl	_ssi_w
	mov	x21, x0
	tbz	w0, #31, LBB0_3
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x20]
	cmp	w1, w22
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_reg_write
	mov	x21, x0
	tbz	w0, #31, LBB0_3
	b	LBB0_9
LBB0_8:
	mov	w21, #0
LBB0_9:
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_write_vector
.subsections_via_symbols
