	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setvbuf                        ## -- Begin function setvbuf
	.p2align	4, 0x90
_setvbuf:                               ## @setvbuf
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %r12
	movq	__IONBF@GOTPCREL(%rip), %r15
	cmpl	%edx, (%r15)
	jne	LBB0_1
LBB0_4:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_FLOCKFILE_CANCELSAFE
	movq	%r12, %rdi
	callq	___sflush
	movq	%r12, %rdi
	callq	_HASUB
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_FREEUB
LBB0_6:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r12)
	movl	16(%r12), %ebx
	movq	___SMBF@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%ebx, %eax
	je	LBB0_8
## %bb.7:
	movq	48(%r12), %rdi
	callq	_free
	movl	(%r13), %eax
LBB0_8:
	movq	___SLBF@GOTPCREL(%rip), %rdx
	movq	___SNBF@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ecx
	orl	(%rdx), %ecx
	orl	%eax, %ecx
	movq	___SOPT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	___SOFF@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	___SNPT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	___SEOF@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %ebx
	xorl	%r13d, %r13d
	cmpl	%r14d, (%r15)
	jne	LBB0_12
## %bb.9:
	movl	%ebx, %r15d
LBB0_26:
	orl	(%rsi), %r15d
	movl	%r15d, 16(%r12)
	movq	$0, 24(%r12)
	movq	40(%r12), %rax
	movq	%rax, 32(%r12)
	movq	%rax, 48(%r12)
	movl	$1, 56(%r12)
	jmp	LBB0_30
LBB0_1:
	movq	__IOFBF@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_2
## %bb.10:
	testl	$-2147483648, %ecx              ## imm = 0x80000000
	je	LBB0_4
	jmp	LBB0_11
LBB0_12:
	leaq	-72(%rbp), %rsi
	leaq	-76(%rbp), %rdx
	movq	%r12, %rdi
	callq	___swhatbuf
	movl	%eax, %r15d
	orl	%ebx, %r15d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	movq	-72(%rbp), %rbx
	movq	%rcx, %r13
	cmoveq	%rbx, %r13
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	testq	%rcx, %rcx
	jne	LBB0_17
LBB0_14:
	movq	%r13, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_22
## %bb.15:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_16:
	movq	___SMBF@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r15d
LBB0_17:
	movq	___SLBF@GOTPCREL(%rip), %rdi
	xorl	%ecx, %ecx
	movl	$0, %edx
	cmpq	%rbx, %r13
	je	LBB0_19
## %bb.18:
	movq	___SNPT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_19:
	movq	__IOLBF@GOTPCREL(%rip), %rsi
	cmpl	%r14d, (%rsi)
	movl	(%rdi), %esi
	cmovel	%esi, %ecx
	orl	%ecx, %r15d
	orl	%edx, %r15d
	movl	%r15d, 16(%r12)
	movq	%rax, 32(%r12)
	movq	%rax, 48(%r12)
	movl	%r13d, 56(%r12)
	movq	___SWR@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	je	LBB0_28
## %bb.20:
	testl	%esi, %r15d
	je	LBB0_27
## %bb.21:
	movq	$0, 24(%r12)
	shlq	$32, %r13
	negq	%r13
	sarq	$32, %r13
	movq	%r13, 8(%r12)
	jmp	LBB0_29
LBB0_2:
	testl	$-2147483648, %ecx              ## imm = 0x80000000
	jne	LBB0_11
## %bb.3:
	movq	__IOLBF@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_4
LBB0_11:
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_31
LBB0_28:
	movq	$0, 24(%r12)
	jmp	LBB0_29
LBB0_27:
	movq	%r13, 24(%r12)
LBB0_29:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movq	__cleanup@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___cleanup@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_30:
	xorl	%eax, %eax
	callq	_FUNLOCKFILE_CANCELSAFE
LBB0_31:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpq	%rbx, %r13
	je	LBB0_25
## %bb.23:
	movq	%rbx, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movq	%rbx, %r13
	jmp	LBB0_16
LBB0_25:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movq	___SNBF@GOTPCREL(%rip), %rsi
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	__IONBF,4,2                     ## @_IONBF
	.comm	__IOFBF,4,2                     ## @_IOFBF
	.comm	__IOLBF,4,2                     ## @_IOLBF
	.comm	_EOF,4,2                        ## @EOF
	.comm	___SMBF,4,2                     ## @__SMBF
	.comm	___SLBF,4,2                     ## @__SLBF
	.comm	___SNBF,4,2                     ## @__SNBF
	.comm	___SOPT,4,2                     ## @__SOPT
	.comm	___SOFF,4,2                     ## @__SOFF
	.comm	___SNPT,4,2                     ## @__SNPT
	.comm	___SEOF,4,2                     ## @__SEOF
	.comm	___SWR,4,2                      ## @__SWR
	.comm	__cleanup,4,2                   ## @_cleanup
	.comm	___cleanup,4,2                  ## @__cleanup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setvbuf                        ; -- Begin function setvbuf
	.p2align	2
_setvbuf:                               ; @setvbuf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x23, __IONBF@GOTPAGE
Lloh1:
	ldr	x23, [x23, __IONBF@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, w2
	b.eq	LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, __IOFBF@GOTPAGE
Lloh3:
	ldr	x8, [x8, __IOFBF@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_3
; %bb.2:
	tbz	w22, #31, LBB0_5
	b	LBB0_15
LBB0_3:
	tbnz	w22, #31, LBB0_15
; %bb.4:
Lloh5:
	adrp	x8, __IOLBF@GOTPAGE
Lloh6:
	ldr	x8, [x8, __IOLBF@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_15
LBB0_5:
	mov	x0, x19
	bl	_FLOCKFILE_CANCELSAFE
	mov	x0, x19
	bl	___sflush
	mov	x0, x19
	bl	_HASUB
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_FREEUB
LBB0_7:
	stp	xzr, xzr, [x19]
	ldr	w24, [x19, #16]
Lloh8:
	adrp	x27, ___SMBF@GOTPAGE
Lloh9:
	ldr	x27, [x27, ___SMBF@GOTPAGEOFF]
	ldr	w8, [x27]
	tst	w8, w24
	b.eq	LBB0_9
; %bb.8:
	ldr	x0, [x19, #48]
	bl	_free
	ldr	w8, [x27]
LBB0_9:
Lloh10:
	adrp	x9, ___SLBF@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___SLBF@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x25, ___SNBF@GOTPAGE
Lloh14:
	ldr	x25, [x25, ___SNBF@GOTPAGEOFF]
	ldr	w10, [x25]
	orr	w9, w10, w9
Lloh15:
	adrp	x10, ___SOPT@GOTPAGE
Lloh16:
	ldr	x10, [x10, ___SOPT@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh17:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, ___SOFF@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___SOFF@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh21:
	adrp	x28, ___SNPT@GOTPAGE
Lloh22:
	ldr	x28, [x28, ___SNPT@GOTPAGEOFF]
	ldr	w9, [x28]
Lloh23:
	adrp	x10, ___SEOF@GOTPAGE
Lloh24:
	ldr	x10, [x10, ___SEOF@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh25:
	ldr	w9, [x10]
	orr	w8, w8, w9
	bic	w26, w24, w8
	ldr	w8, [x23]
	cmp	w8, w20
	b.ne	LBB0_12
; %bb.10:
	mov	w22, #0
LBB0_11:
	ldr	w8, [x25]
	orr	w8, w8, w26
	str	w8, [x19, #16]
	ldr	x8, [x19, #40]
	stp	xzr, x8, [x19, #24]
	str	x8, [x19, #48]
	mov	w8, #1
	str	w8, [x19, #56]
	b	LBB0_25
LBB0_12:
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x0, x19
	bl	___swhatbuf
	orr	w26, w0, w26
	ldr	x24, [sp, #8]
	cmp	x22, #0
	csel	x23, x24, x22, eq
	cbz	x21, LBB0_16
; %bb.13:
	cbz	x22, LBB0_16
; %bb.14:
	mov	w22, #0
	b	LBB0_19
LBB0_15:
Lloh26:
	adrp	x8, _EOF@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh28:
	ldr	w22, [x8]
	b	LBB0_26
LBB0_16:
	mov	x0, x23
	bl	_malloc
	cbz	x0, LBB0_27
; %bb.17:
	mov	x21, x0
	mov	w22, #0
LBB0_18:
	ldr	w8, [x27]
	orr	w26, w8, w26
LBB0_19:
Lloh29:
	adrp	x11, ___SLBF@GOTPAGE
Lloh30:
	ldr	x11, [x11, ___SLBF@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	x23, x24
	csel	w8, wzr, w8, eq
	orr	w9, w8, w26
Lloh31:
	adrp	x8, __IOLBF@GOTPAGE
Lloh32:
	ldr	x8, [x8, __IOLBF@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x8]
Lloh34:
	ldr	w8, [x11]
	cmp	w10, w20
	csel	w10, w8, wzr, eq
	orr	w9, w9, w10
	str	w9, [x19, #16]
	str	x21, [x19, #32]
	str	x21, [x19, #48]
	str	w23, [x19, #56]
Lloh35:
	adrp	x10, ___SWR@GOTPAGE
Lloh36:
	ldr	x10, [x10, ___SWR@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_22
; %bb.20:
	tst	w9, w8
	b.eq	LBB0_23
; %bb.21:
	str	xzr, [x19, #24]
	neg	x8, x23, lsl #32
	asr	x8, x8, #32
	str	x8, [x19, #8]
	b	LBB0_24
LBB0_22:
	str	xzr, [x19, #24]
	b	LBB0_24
LBB0_23:
	str	x23, [x19, #24]
LBB0_24:
Lloh38:
	adrp	x8, __cleanup@GOTPAGE
Lloh39:
	ldr	x8, [x8, __cleanup@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
Lloh41:
	adrp	x9, ___cleanup@GOTPAGE
Lloh42:
	ldr	x9, [x9, ___cleanup@GOTPAGEOFF]
Lloh43:
	str	w8, [x9]
LBB0_25:
	bl	_FUNLOCKFILE_CANCELSAFE
LBB0_26:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_27:
Lloh44:
	adrp	x8, _EOF@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh46:
	ldr	w22, [x8]
	cmp	x23, x24
	b.eq	LBB0_11
; %bb.28:
	mov	x0, x24
	bl	_malloc
	mov	x21, x0
	mov	x23, x24
	cbnz	x0, LBB0_18
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh34
	.loh AdrpLdrGotStr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	__IONBF,4,2                     ; @_IONBF
	.comm	__IOFBF,4,2                     ; @_IOFBF
	.comm	__IOLBF,4,2                     ; @_IOLBF
	.comm	_EOF,4,2                        ; @EOF
	.comm	___SMBF,4,2                     ; @__SMBF
	.comm	___SLBF,4,2                     ; @__SLBF
	.comm	___SNBF,4,2                     ; @__SNBF
	.comm	___SOPT,4,2                     ; @__SOPT
	.comm	___SOFF,4,2                     ; @__SOFF
	.comm	___SNPT,4,2                     ; @__SNPT
	.comm	___SEOF,4,2                     ; @__SEOF
	.comm	___SWR,4,2                      ; @__SWR
	.comm	__cleanup,4,2                   ; @_cleanup
	.comm	___cleanup,4,2                  ; @__cleanup
.subsections_via_symbols
