	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fputs                          ## -- Begin function fputs
	.p2align	4, 0x90
_fputs:                                 ## @fputs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	%rdi, -16(%rbp)
	callq	_strlen
	movq	%rax, -24(%rbp)
	movq	%rax, -48(%rbp)
	leaq	-24(%rbp), %rax
	movq	%rax, -32(%rbp)
	movl	$1, -40(%rbp)
	movq	%rbx, %rdi
	callq	_FLOCKFILE_CANCELSAFE
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_ORIENT
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	___sfvwrite
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_FUNLOCKFILE_CANCELSAFE
	movq	-24(%rbp), %rcx
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	cmovlq	%rcx, %rax
	testl	%ebx, %ebx
	cmovnel	%ebx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,8,3                    ## @INT_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fputs                          ; -- Begin function fputs
	.p2align	2
_fputs:                                 ; @fputs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	str	x0, [sp, #16]
	bl	_strlen
	str	x0, [sp, #8]
	str	x0, [sp, #24]
	add	x8, sp, #8
	str	x8, [sp, #40]
	mov	w8, #1
	str	w8, [sp, #32]
	mov	x0, x19
	bl	_FLOCKFILE_CANCELSAFE
	mov	x0, x19
	mov	w1, #-1
	bl	_ORIENT
	add	x1, sp, #24
	mov	x0, x19
	bl	___sfvwrite
	mov	x19, x0
	bl	_FUNLOCKFILE_CANCELSAFE
	ldr	x8, [sp, #8]
Lloh0:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x8, x9, lt
	cmp	w19, #0
	csel	w0, w8, w19, eq
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,8,3                    ; @INT_MAX
.subsections_via_symbols
