	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crtfile
_crtfile:                               ## @crtfile
	.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
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rdi, %r14
	movl	$1024, %edi                     ## imm = 0x400
	callq	_valloc
	movq	%rax, %r15
	leaq	L_.str(%rip), %rdi
	callq	_strlen
	movl	%eax, %ecx
	xorl	%ebx, %ebx
	movl	$1024, %eax                     ## imm = 0x400
	xorl	%edx, %edx
	idivl	%ecx
	testl	%eax, %eax
	jle	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %r13
	leaq	L_.str.1(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_strlen
	imull	%ebx, %eax
	cltq
	leaq	(%r15,%rax), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	subl	%eax, %esi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_snprintf
	incl	%ebx
	movq	%r13, %rdi
	callq	_strlen
	movl	%eax, %ecx
	movl	$1024, %eax                     ## imm = 0x400
	xorl	%edx, %edx
	idivl	%ecx
	cmpl	%eax, %ebx
	jl	LBB0_3
LBB0_4:
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movq	_O_RDWR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	movl	$511, %edx                      ## imm = 0x1FF
	callq	_open
	testl	%eax, %eax
	js	LBB0_8
## %bb.5:
	movl	%eax, %ebx
	movl	%eax, %edi
	movq	%r15, %rsi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_write
	cmpl	$1023, %eax                     ## imm = 0x3FF
	jle	LBB0_9
## %bb.6:
	movl	%ebx, %edi
	callq	_close
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_7:
	movl	$1, %edi
	callq	_exit
LBB0_8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_errno@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movl	%ebx, %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r12), %edi
	callq	_exit
LBB0_9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_errno@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movl	%ebx, %edi
	callq	_strerror
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edi
	movl	%ebx, %edx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r15), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0123456789ABCDF"

L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"open(%s, O_CREAT|O_RDWR, 0777) failed.\n[%d]: %s.\n"

	.comm	_errno,4,2                      ## @errno
L_.str.3:                               ## @.str.3
	.asciz	"write(fd, pbuf, 1024) failed.\n[%d]: %s.\n"

	.comm	_O_XATTR,4,2                    ## @O_XATTR
	.no_dead_strip	_crtfile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crtfile
_crtfile:                               ; @crtfile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	mov	w23, #1024
	mov	w0, #1024
	bl	_valloc
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strlen
	sdiv	w8, w23, w0
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	w24, #0
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
Lloh4:
	adrp	x22, l_.str.1@PAGE
Lloh5:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_strlen
	mul	w8, w0, w24
	add	x0, x20, w8, sxtw
	sub	w1, w23, w8
	mov	x2, x22
	mov	x3, x21
	bl	_snprintf
	add	w24, w24, #1
	mov	x0, x21
	bl	_strlen
	sdiv	w8, w23, w0
	cmp	w24, w8
	b.lt	LBB0_3
LBB0_4:
Lloh6:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _O_RDWR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _O_RDWR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	mov	w2, #511
	bl	_open
	tbnz	w0, #31, LBB0_8
; %bb.5:
	mov	x21, x0
	mov	x1, x20
	mov	w2, #1024
	bl	_write
	cmp	w0, #1023
	b.le	LBB0_9
; %bb.6:
	mov	x0, x21
	bl	_close
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_free
LBB0_7:
	mov	w0, #1
	bl	_exit
LBB0_8:
Lloh12:
	adrp	x8, _stderr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
Lloh15:
	adrp	x22, _errno@GOTPAGE
Lloh16:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	ldr	w21, [x22]
	mov	x0, x21
	bl	_strerror
	stp	x21, x0, [sp, #8]
	str	x19, [sp]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_fprintf
	ldr	w0, [x22]
	bl	_exit
LBB0_9:
Lloh19:
	adrp	x8, _stderr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh21:
	ldr	w19, [x8]
Lloh22:
	adrp	x21, _errno@GOTPAGE
Lloh23:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	ldr	w20, [x21]
	mov	x0, x20
	bl	_strerror
	stp	x20, x0, [sp]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	ldr	w0, [x21]
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0123456789ABCDF"

l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"open(%s, O_CREAT|O_RDWR, 0777) failed.\n[%d]: %s.\n"

	.comm	_errno,4,2                      ; @errno
l_.str.3:                               ; @.str.3
	.asciz	"write(fd, pbuf, 1024) failed.\n[%d]: %s.\n"

	.comm	_O_XATTR,4,2                    ; @O_XATTR
	.no_dead_strip	_crtfile
.subsections_via_symbols
