	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_sparse_file
_create_sparse_file:                    ## @create_sparse_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
	subq	$1032, %rsp                     ## imm = 0x408
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-1072(%rbp), %rdi
	movl	$32, %esi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_memset
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movq	_O_WRONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$384, %edx                      ## imm = 0x180
	callq	_open
	movl	%eax, %r12d
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%dil
	callq	_assert
	movq	_END@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%r14)
	jne	LBB0_2
## %bb.1:
	xorl	%esi, %esi
	jmp	LBB0_4
LBB0_2:
	leaq	16(%r14), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	addq	-8(%rcx), %rsi
	leaq	16(%rcx), %rdx
	cmpq	%rax, (%rcx)
	movq	%rdx, %rcx
	jne	LBB0_3
LBB0_4:
	movl	%r12d, %edi
	callq	_ftruncate
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%dil
	callq	_assert
	movq	(%r14), %rax
	movq	_END@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_11:
	movl	%r12d, %edi
	callq	_close
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	addq	$1032, %rsp                     ## imm = 0x408
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	-1072(%rbp), %r15
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_lseek
	xorl	%edi, %edi
	cmpq	$-1, %rax
	setne	%dil
	callq	_assert
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r14), %rax
	addq	$16, %r14
	movq	_END@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	8(%r14), %rbx
	movq	_HOLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	testq	%rbx, %rbx
	je	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$1024, %rbx                     ## imm = 0x400
	movl	$1024, %r13d                    ## imm = 0x400
	cmovbq	%rbx, %r13
	movl	%r12d, %edi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_write
	xorl	%edi, %edi
	cmpq	$-1, %rax
	setne	%dil
	callq	_assert
	subq	%r13, %rbx
	jne	LBB0_9
	jmp	LBB0_10
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_END,8,3                        ## @END
	.comm	_HOLE,8,3                       ## @HOLE
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.no_dead_strip	_create_sparse_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_sparse_file
_create_sparse_file:                    ; @create_sparse_file
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1040
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	add	x0, sp, #8
	mov	w1, #32
	mov	w2, #1024
	bl	_memset
Lloh3:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _O_WRONLY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _O_WRONLY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x20
	mov	w2, #384
	bl	_open
	mov	x20, x0
	cmn	w0, #1
	cset	w0, ne
	bl	_assert
Lloh9:
	adrp	x23, _END@GOTPAGE
Lloh10:
	ldr	x23, [x23, _END@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x9, [x19]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x1, #0
	b	LBB0_4
LBB0_2:
	mov	x1, #0
	add	x9, x19, #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x10, [x9, #-8]
	add	x1, x10, x1
	ldr	x10, [x9], #16
	cmp	x10, x8
	b.ne	LBB0_3
LBB0_4:
	mov	x0, x20
	bl	_ftruncate
	cmn	w0, #1
	cset	w0, ne
	bl	_assert
	ldr	x8, [x19]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_7
LBB0_5:
	mov	x0, x20
	bl	_close
	ldur	x8, [x29, #-88]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.6:
	add	sp, sp, #1040
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh14:
	adrp	x24, _HOLE@GOTPAGE
Lloh15:
	ldr	x24, [x24, _HOLE@GOTPAGEOFF]
Lloh16:
	adrp	x25, _SEEK_CUR@GOTPAGE
Lloh17:
	ldr	x25, [x25, _SEEK_CUR@GOTPAGEOFF]
	mov	w26, #1024
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w2, [x25]
	mov	x0, x20
	mov	x1, x21
	bl	_lseek
	cmn	x0, #1
	cset	w0, ne
	bl	_assert
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x19, #16]!
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_5
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	x9, [x24]
	ldr	x21, [x19, #8]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	cbz	x21, LBB0_9
LBB0_12:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x21, #1024
	csel	x22, x21, x26, lo
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x22
	bl	_write
	cmn	x0, #1
	cset	w0, ne
	bl	_assert
	subs	x21, x21, x22
	b.ne	LBB0_12
	b	LBB0_9
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_END,8,3                        ; @END
	.comm	_HOLE,8,3                       ; @HOLE
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.no_dead_strip	_create_sparse_file
.subsections_via_symbols
