	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function expbuf_write
_expbuf_write:                          ## @expbuf_write
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	callq	_expbuf_size
	movq	%rax, -104(%rbp)
	leaq	-104(%rbp), %rcx
	movq	%rcx, -96(%rbp)
	movl	$8, -88(%rbp)
	movq	(%rbx), %rcx
	movq	%rcx, -72(%rbp)
	movl	%eax, -64(%rbp)
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movslq	%ebx, %rdx
	addq	%rdx, -8(%rax)
	subl	%ebx, %ecx
	movl	%ecx, (%rax)
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r13d, %rax
	cmpl	$2, %eax
	je	LBB0_12
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
                                        ##     Child Loop BB0_8 Depth 2
	leaq	(%rax,%rax,2), %rax
	leaq	-96(,%rax,8), %r15
	addq	%rbp, %r15
	movl	$2, %r12d
	subl	%r13d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r14d, %edi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_writev
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	_EINTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_errno@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_2
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %ebx
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%edi, %edi
	testl	%ebx, %ebx
	setne	%dil
	callq	_assert
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r13d, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	-88(%rbp), %rcx
	leaq	(%rcx,%rax,8), %rax
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax), %ecx
	cmpl	%ecx, %ebx
	jl	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	incl	%r13d
	addq	$24, %rax
	subl	%ecx, %ebx
	jne	LBB0_8
	jmp	LBB0_11
LBB0_5:
	movl	$-1, %eax
	jmp	LBB0_13
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.no_dead_strip	_expbuf_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function expbuf_write
_expbuf_write:                          ; @expbuf_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	add	x8, sp, #8
	add	x24, x8, #8
	str	xzr, [sp, #48]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	bl	_expbuf_size
	mov	x8, #0
	mov	w25, #0
	mov	x9, sp
	stp	x0, x9, [sp]
	mov	w9, #8
	str	w9, [sp, #16]
	ldr	x9, [x20]
	str	x9, [sp, #32]
	str	w0, [sp, #40]
	mov	w26, #24
	mov	w27, #2
Lloh3:
	adrp	x28, _errno@GOTPAGE
Lloh4:
	ldr	x28, [x28, _errno@GOTPAGEOFF]
Lloh5:
	adrp	x23, _EINTR@GOTPAGE
Lloh6:
	ldr	x23, [x23, _EINTR@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldur	x9, [x8, #-8]
	add	x9, x9, w20, sxtw
	stur	x9, [x8, #-8]
	sub	w9, w10, w20
	str	w9, [x8]
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x8, w25
	cmp	w25, #2
	b.eq	LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;     Child Loop BB0_9 Depth 2
	add	x9, sp, #8
	madd	x21, x8, x26, x9
	sub	w22, w27, w25
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_writev
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	x8, [x28]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_4
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmn	w20, #1
	b.eq	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w20, #0
	cset	w0, ne
	bl	_assert
	cbz	w20, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	smaddl	x8, w25, w26, x24
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x8]
	subs	w9, w20, w10
	b.lt	LBB0_1
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	add	w25, w25, #1
	add	x8, x8, #24
	mov	x20, x9
	b.ne	LBB0_9
	b	LBB0_2
LBB0_11:
	mov	w0, #-1
	b	LBB0_13
LBB0_12:
	mov	w0, #0
LBB0_13:
	ldr	x8, [sp, #56]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.no_dead_strip	_expbuf_write
.subsections_via_symbols
