	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fwrite                         ## -- Begin function fwrite
	.p2align	4, 0x90
_fwrite:                                ## @fwrite
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %rcx
	movq	%rdx, %rax
	mulq	%rsi
	movq	%rax, %r14
	seto	%bl
	movl	(%r13), %edx
	movq	___FILE_CAN_WRITE@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_7
## %bb.1:
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.2:
	testb	%bl, %bl
	jne	LBB0_9
## %bb.3:
	movq	%rsi, %r15
	movq	%rdi, %r12
	cmpq	8(%r13), %r14
	ja	LBB0_5
## %bb.4:
	movq	___FILE_NOBUF@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_14
LBB0_5:
	movq	%r13, %rdi
	callq	_fflush
	testq	%rax, %rax
	jne	LBB0_8
## %bb.10:
	movl	16(%r13), %edi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_write
	movq	%rax, %r14
LBB0_11:
	testq	%r15, %r15
	je	LBB0_8
## %bb.12:
	movq	%r14, %rax
	orq	%r15, %rax
	shrq	$32, %rax
	je	LBB0_20
## %bb.13:
	movq	%r14, %rax
	xorl	%edx, %edx
	divq	%r15
	jmp	LBB0_9
LBB0_7:
	movq	___FILE_ERROR@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, (%r13)
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	testq	%r14, %r14
	jle	LBB0_11
## %bb.15:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rbx
	incq	%rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r12,%r14), %edi
	movq	%r13, %rsi
	callq	_fputc
	testq	%rax, %rax
	jne	LBB0_11
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	incq	%r14
	decq	%rbx
	cmpq	$1, %rbx
	jg	LBB0_16
## %bb.18:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_20:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%r15d
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	___FILE_CAN_WRITE,4,2           ## @__FILE_CAN_WRITE
	.comm	___FILE_ERROR,4,2               ## @__FILE_ERROR
	.comm	___FILE_NOBUF,4,2               ## @__FILE_NOBUF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fwrite                         ; -- Begin function fwrite
	.p2align	2
_fwrite:                                ; @fwrite
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	umulh	x8, x2, x1
	cmp	xzr, x8
	cset	w9, ne
	ldr	w8, [x3]
Lloh0:
	adrp	x10, ___FILE_CAN_WRITE@GOTPAGE
Lloh1:
	ldr	x10, [x10, ___FILE_CAN_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_9
; %bb.1:
	mov	x21, x0
	mov	x0, #0
	cbz	x2, LBB0_11
; %bb.2:
	tbnz	w9, #0, LBB0_11
; %bb.3:
	mov	x19, x1
	mul	x22, x2, x1
	ldr	x9, [x20, #8]
	cmp	x22, x9
	b.hi	LBB0_5
; %bb.4:
Lloh3:
	adrp	x9, ___FILE_NOBUF@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___FILE_NOBUF@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
LBB0_5:
	mov	x0, x20
	bl	_fflush
	cbnz	x0, LBB0_10
; %bb.6:
	ldr	w0, [x20, #16]
	mov	x1, x21
	mov	x2, x22
	bl	_write
	mov	x22, x0
LBB0_7:
	cbz	x19, LBB0_10
; %bb.8:
	udiv	x0, x22, x19
	b	LBB0_11
LBB0_9:
	mov	x0, #0
Lloh6:
	adrp	x9, ___FILE_ERROR@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___FILE_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20]
	b	LBB0_11
LBB0_10:
	mov	x0, #0
LBB0_11:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	cmp	x22, #1
	b.lt	LBB0_7
; %bb.13:
	mov	x23, #0
	add	x24, x22, #1
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w0, [x21, x23]
	mov	x1, x20
	bl	_fputc
	cbnz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x23, x23, #1
	sub	x24, x24, #1
	cmp	x24, #1
	b.gt	LBB0_14
	b	LBB0_7
LBB0_16:
	mov	x22, x23
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	___FILE_CAN_WRITE,4,2           ; @__FILE_CAN_WRITE
	.comm	___FILE_ERROR,4,2               ; @__FILE_ERROR
	.comm	___FILE_NOBUF,4,2               ; @__FILE_NOBUF
.subsections_via_symbols
