	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_file
_create_file:                           ## @create_file
	.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	%rsi, %r12
	movq	%rdi, %rbx
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_stdout@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	callq	_fprintf
	movl	(%r14), %edi
	callq	_fflush
LBB0_2:
	movq	_MKFILE_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MKFILE_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_open
	movl	$-1, %r14d
	testl	%eax, %eax
	js	LBB0_12
## %bb.3:
	movl	%eax, %r15d
	leaq	-1(%r12), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	%eax, %edi
	callq	_lseek
	cmpq	$-1, %rax
	je	LBB0_12
## %bb.4:
	movq	_buf@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$1, %edx
	movl	%r15d, %edi
	callq	_write
	cmpq	$-1, %rax
	je	LBB0_12
## %bb.5:
	movq	_nofill@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
LBB0_11:
	movl	%r15d, %edi
	callq	_close
	xorl	%r14d, %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%rbx), %edx
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_lseek
	cmpq	$-1, %rax
	je	LBB0_12
## %bb.7:
	testq	%r12, %r12
	je	LBB0_11
## %bb.8:
	movq	_MKFILE_WBUF@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdx
	cmpq	%rdx, %r12
	cmovbq	%r12, %rdx
	movl	(%r13), %esi
	movl	%r15d, %edi
	callq	_write
	cmpq	$-1, %rax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	subq	%rax, %r12
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_verbose,8,3                    ## @verbose
	.comm	_stdout,4,2                     ## @stdout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s %llu bytes\n"

	.comm	_MKFILE_FLAG,4,2                ## @MKFILE_FLAG
	.comm	_MKFILE_MODE,4,2                ## @MKFILE_MODE
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_buf,4,2                        ## @buf
	.comm	_nofill,4,2                     ## @nofill
	.comm	_MKFILE_WBUF,8,3                ## @MKFILE_WBUF
	.no_dead_strip	_create_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_file
_create_file:                           ; @create_file
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _verbose@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x21, _stdout@GOTPAGE
Lloh4:
	ldr	x21, [x21, _stdout@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_fprintf
	ldr	w0, [x21]
	bl	_fflush
LBB0_2:
Lloh7:
	adrp	x8, _MKFILE_FLAG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MKFILE_FLAG@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _MKFILE_MODE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MKFILE_MODE@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_open
	tbnz	w0, #31, LBB0_12
; %bb.3:
	mov	x20, x0
	sub	x1, x19, #1
Lloh13:
	adrp	x22, _SEEK_SET@GOTPAGE
Lloh14:
	ldr	x22, [x22, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_lseek
	cmn	x0, #1
	b.eq	LBB0_12
; %bb.4:
Lloh15:
	adrp	x21, _buf@GOTPAGE
Lloh16:
	ldr	x21, [x21, _buf@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	mov	w2, #1
	bl	_write
	cmn	x0, #1
	b.eq	LBB0_12
; %bb.5:
Lloh17:
	adrp	x8, _nofill@GOTPAGE
Lloh18:
	ldr	x8, [x8, _nofill@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cbz	w8, LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_close
	mov	w0, #0
	b	LBB0_13
LBB0_7:
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, #0
	bl	_lseek
	cmn	x0, #1
	b.eq	LBB0_12
; %bb.8:
	cbz	x19, LBB0_6
; %bb.9:
Lloh20:
	adrp	x22, _MKFILE_WBUF@GOTPAGE
Lloh21:
	ldr	x22, [x22, _MKFILE_WBUF@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	cmp	x19, x8
	csel	x2, x19, x8, lo
	ldr	w1, [x21]
	mov	x0, x20
	bl	_write
	cmn	x0, #1
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	subs	x19, x19, x0
	b.ne	LBB0_10
	b	LBB0_6
LBB0_12:
	mov	w0, #-1
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_verbose,8,3                    ; @verbose
	.comm	_stdout,4,2                     ; @stdout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s %llu bytes\n"

	.comm	_MKFILE_FLAG,4,2                ; @MKFILE_FLAG
	.comm	_MKFILE_MODE,4,2                ; @MKFILE_MODE
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_buf,4,2                        ; @buf
	.comm	_nofill,4,2                     ; @nofill
	.comm	_MKFILE_WBUF,8,3                ; @MKFILE_WBUF
	.no_dead_strip	_create_file
.subsections_via_symbols
