	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_iovec
_build_iovec:                           ## @build_iovec
	.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	(%rsi), %r15d
	testl	%r15d, %r15d
	js	LBB0_9
## %bb.1:
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	(%rdi), %rdi
	movl	%r15d, %esi
	shll	$4, %esi
	addl	$32, %esi
	callq	_realloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r12
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_strdup
	movq	%r15, %rbx
	shlq	$4, %rbx
	movq	%rax, 8(%r12,%rbx)
	movq	%r13, %rdi
	callq	_strlen
	incl	%eax
	movq	(%r14), %rcx
	movl	%eax, (%rcx,%rbx)
	leaq	1(%r15), %rbx
	shlq	$4, %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, 8(%rcx,%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$-1, %rax
	jne	LBB0_7
## %bb.4:
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.6:
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	incl	%eax
	jmp	LBB0_7
LBB0_2:
	movl	$-1, %r15d
	jmp	LBB0_8
LBB0_5:
	xorl	%eax, %eax
LBB0_7:
	movq	(%r14), %rcx
	movl	%eax, (%rcx,%rbx)
	addl	$2, %r15d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_8:
	movl	%r15d, (%rbx)
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_build_iovec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_iovec
_build_iovec:                           ; @build_iovec
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w25, [x1]
	tbnz	w25, #31, LBB0_9
; %bb.1:
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x0]
	lsl	w8, w25, #4
	add	w1, w8, #32
	bl	_realloc
	str	x0, [x20]
	cbz	x0, LBB0_5
; %bb.2:
	mov	x24, x0
	mov	x0, x23
	bl	_strdup
	lsl	x26, x25, #4
	add	x8, x24, x26
	str	x0, [x8, #8]
	mov	x0, x23
	bl	_strlen
	add	w8, w0, #1
	ldr	x9, [x20]
	str	w8, [x9, x26]
	add	x23, x25, #1
	add	x8, x9, x23, lsl #4
	str	x22, [x8, #8]
	cmn	x21, #1
	b.ne	LBB0_7
; %bb.3:
	cbz	x22, LBB0_6
; %bb.4:
	mov	x0, x22
	bl	_strlen
	add	w21, w0, #1
	b	LBB0_7
LBB0_5:
	mov	w8, #-1
	b	LBB0_8
LBB0_6:
	mov	x21, #0
LBB0_7:
	ldr	x8, [x20]
	lsl	x9, x23, #4
	str	w21, [x8, x9]
	add	w8, w25, #2
LBB0_8:
	str	w8, [x19]
LBB0_9:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_build_iovec
.subsections_via_symbols
