	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___smakebuf                     ## -- Begin function __smakebuf
	.p2align	4, 0x90
___smakebuf:                            ## @__smakebuf
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___SNBF@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
LBB0_1:
	movq	32(%rbx), %rax
	movq	%rax, 24(%rbx)
	movq	%rax, 16(%rbx)
	movl	$1, 8(%rbx)
	jmp	LBB0_8
LBB0_2:
	leaq	-48(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	___swhatbuf
	movl	%eax, %r14d
	movq	-48(%rbp), %r15
	movq	%r15, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	__cleanup@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	___cleanup@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	___SMBF@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r14d
	movq	%rax, 24(%rbx)
	movq	%rax, 16(%rbx)
	movl	%r15d, 8(%rbx)
	cmpl	$0, -36(%rbp)
	je	LBB0_7
## %bb.5:
	movl	4(%rbx), %edi
	callq	_isatty
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	___SLBF@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
LBB0_7:
	orl	%r14d, (%rbx)
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	(%r12), %eax
	orl	%eax, (%rbx)
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	___SNBF,4,2                     ## @__SNBF
	.comm	__cleanup,4,2                   ## @_cleanup
	.comm	___cleanup,4,2                  ## @__cleanup
	.comm	___SMBF,4,2                     ## @__SMBF
	.comm	___SLBF,4,2                     ## @__SLBF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___smakebuf                     ; -- Begin function __smakebuf
	.p2align	2
___smakebuf:                            ; @__smakebuf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x22, ___SNBF@GOTPAGE
Lloh1:
	ldr	x22, [x22, ___SNBF@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_1:
	ldr	x8, [x19, #32]
	stp	x8, x8, [x19, #16]
	mov	w8, #1
	str	w8, [x19, #8]
	b	LBB0_7
LBB0_2:
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x0, x19
	bl	___swhatbuf
	mov	x21, x0
	ldr	x20, [sp, #8]
	mov	x0, x20
	bl	_malloc
	cbz	x0, LBB0_8
; %bb.3:
Lloh2:
	adrp	x8, __cleanup@GOTPAGE
Lloh3:
	ldr	x8, [x8, __cleanup@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, ___cleanup@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___cleanup@GOTPAGEOFF]
Lloh7:
	str	w8, [x9]
Lloh8:
	adrp	x8, ___SMBF@GOTPAGE
Lloh9:
	ldr	x8, [x8, ___SMBF@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w21, w8, w21
	stp	x0, x0, [x19, #16]
	str	w20, [x19, #8]
	ldr	w8, [sp, #4]
	cbz	w8, LBB0_6
; %bb.4:
	ldr	w0, [x19, #4]
	bl	_isatty
	cbz	x0, LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, ___SLBF@GOTPAGE
Lloh12:
	ldr	x8, [x8, ___SLBF@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_6:
	ldr	w8, [x19]
	orr	w8, w8, w21
	str	w8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	ldr	w8, [x22]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	___SNBF,4,2                     ; @__SNBF
	.comm	__cleanup,4,2                   ; @_cleanup
	.comm	___cleanup,4,2                  ; @__cleanup
	.comm	___SMBF,4,2                     ; @__SMBF
	.comm	___SLBF,4,2                     ; @__SLBF
.subsections_via_symbols
