	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function change_buf
_change_buf:                            ## @change_buf
	.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	%rsi, %r12
	movq	%rdi, %r14
	movb	(%rsi), %al
	cmpb	$76, %al
	je	LBB0_5
## %bb.1:
	cmpb	$66, %al
	je	LBB0_7
## %bb.2:
	cmpb	$48, %al
	jne	LBB0_8
## %bb.3:
	cmpb	$0, 1(%r12)
	jne	LBB0_8
## %bb.4:
	movq	__IONBF@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_5:
	cmpb	$0, 1(%r12)
	jne	LBB0_8
## %bb.6:
	movq	__IOLBF@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_7:
	cmpb	$0, 1(%r12)
	je	LBB0_21
LBB0_8:
	movq	_errno@GOTPCREL(%rip), %rbx
	movq	$0, (%rbx)
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_strtol
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	movq	-40(%rbp), %rbx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.9:
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.10:
	cmpq	%r12, %rbx
	jne	LBB0_12
LBB0_11:
	movq	%r14, %rdi
	callq	_stream_name
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_warn
LBB0_12:
	movsbl	(%rbx), %ebx
	movq	__IOFBF@GOTPCREL(%rip), %rax
	cmpl	$76, %ebx
	jg	LBB0_16
## %bb.13:
	testl	%ebx, %ebx
	je	LBB0_23
## %bb.14:
	cmpl	$71, %ebx
	jne	LBB0_20
## %bb.15:
	shlq	$30, %r15
	jmp	LBB0_23
LBB0_16:
	cmpl	$77, %ebx
	je	LBB0_19
## %bb.17:
	cmpl	$107, %ebx
	jne	LBB0_20
## %bb.18:
	shlq	$10, %r15
	jmp	LBB0_23
LBB0_19:
	shlq	$20, %r15
	jmp	LBB0_23
LBB0_20:
	movq	%r14, %rdi
	callq	_stream_name
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_warnx                          ## TAILCALL
LBB0_21:
	movq	__IOFBF@GOTPCREL(%rip), %rax
LBB0_22:
	xorl	%r15d, %r15d
LBB0_23:
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r15, %rcx
	callq	_setvbuf
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movq	%r14, %rdi
	callq	_stream_name
	leaq	L_.str.2(%rip), %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_warn                           ## TAILCALL
LBB0_25:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__IONBF,4,2                     ## @_IONBF
	.comm	__IOLBF,4,2                     ## @_IOLBF
	.comm	__IOFBF,4,2                     ## @_IOFBF
	.comm	_errno,8,3                      ## @errno
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_ERANGE,8,3                     ## @ERANGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wrong buffer mode '%s' for %s"

L_.str.1:                               ## @.str.1
	.asciz	"Unknown suffix '%c' for %s"

L_.str.2:                               ## @.str.2
	.asciz	"Cannot set buffer mode '%s' for %s"

	.no_dead_strip	_change_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function change_buf
_change_buf:                            ; @change_buf
	.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, x1
	mov	x20, x0
	ldrb	w8, [x1]
	cmp	w8, #76
	b.eq	LBB0_5
; %bb.1:
	cmp	w8, #66
	b.eq	LBB0_7
; %bb.2:
	cmp	w8, #48
	b.ne	LBB0_8
; %bb.3:
	ldrb	w8, [x19, #1]
	cbnz	w8, LBB0_8
; %bb.4:
	mov	x21, #0
Lloh0:
	adrp	x8, __IONBF@GOTPAGE
Lloh1:
	ldr	x8, [x8, __IONBF@GOTPAGEOFF]
	b	LBB0_21
LBB0_5:
	ldrb	w8, [x19, #1]
	cbnz	w8, LBB0_8
; %bb.6:
	mov	x21, #0
Lloh2:
	adrp	x8, __IOLBF@GOTPAGE
Lloh3:
	ldr	x8, [x8, __IOLBF@GOTPAGEOFF]
	b	LBB0_21
LBB0_7:
	ldrb	w8, [x19, #1]
	cbz	w8, LBB0_19
LBB0_8:
Lloh4:
	adrp	x22, _errno@GOTPAGE
Lloh5:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	str	xzr, [x22]
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #0
	bl	_strtol
	mov	x21, x0
	ldr	x8, [x22]
Lloh6:
	adrp	x9, _EINVAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh8:
	adrp	x10, _ERANGE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ERANGE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	ldr	x10, [x10]
	ldr	x22, [sp, #8]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x22, x19, #4, ne
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_stream_name
	mov	x2, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_warn
LBB0_10:
	ldrsb	w8, [x22]
	cmp	w8, #76
	b.gt	LBB0_14
; %bb.11:
	cbz	w8, LBB0_20
; %bb.12:
	cmp	w8, #71
	b.ne	LBB0_18
; %bb.13:
	lsl	x21, x21, #30
	b	LBB0_20
LBB0_14:
	cmp	w8, #77
	b.eq	LBB0_17
; %bb.15:
	cmp	w8, #107
	b.ne	LBB0_18
; %bb.16:
	lsl	x21, x21, #10
	b	LBB0_20
LBB0_17:
	lsl	x21, x21, #20
	b	LBB0_20
LBB0_18:
	and	w19, w8, #0xff
	mov	x0, x20
	bl	_stream_name
	mov	x2, x0
	sxtb	w1, w19
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	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
	b	_warnx
LBB0_19:
	mov	x21, #0
LBB0_20:
Lloh16:
	adrp	x8, __IOFBF@GOTPAGE
Lloh17:
	ldr	x8, [x8, __IOFBF@GOTPAGEOFF]
LBB0_21:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, #0
	mov	x3, x21
	bl	_setvbuf
	cbz	x0, LBB0_23
; %bb.22:
	mov	x0, x20
	bl	_stream_name
	mov	x2, x0
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	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
	b	_warn
LBB0_23:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	__IONBF,4,2                     ; @_IONBF
	.comm	__IOLBF,4,2                     ; @_IOLBF
	.comm	__IOFBF,4,2                     ; @_IOFBF
	.comm	_errno,8,3                      ; @errno
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_ERANGE,8,3                     ; @ERANGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wrong buffer mode '%s' for %s"

l_.str.1:                               ; @.str.1
	.asciz	"Unknown suffix '%c' for %s"

l_.str.2:                               ; @.str.2
	.asciz	"Cannot set buffer mode '%s' for %s"

	.no_dead_strip	_change_buf
.subsections_via_symbols
