	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function dos_write
LCPI0_0:
	.quad	1378112036                      ## 0x52245224
	.quad	1378112850                      ## 0x52245552
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_dos_write:                             ## @dos_write
	.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
	movl	%edi, %r15d
	movq	_raw_buf@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	L_.memset_pattern.4(%rip), %rsi
	movl	$3400, %edx                     ## imm = 0xD48
	movq	%rbx, %rdi
	callq	_memset_pattern16
	andl	$3, %r15d
	leaq	3400(%rbx), %r12
	movq	_unit@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%r15, %r14
	shlq	$4, %r14
	movq	(%rax,%r14), %rax
	cmpl	$2, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	L_.memset_pattern.4(%rip), %rsi
	movl	$3784, %edx                     ## imm = 0xEC8
	movq	%r12, %rdi
	callq	_memset_pattern16
	addq	$7184, %rbx                     ## imm = 0x1C10
	movq	%rbx, %r12
LBB0_2:
	leaq	L_.memset_pattern.4(%rip), %rbx
	movl	$160, %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_memset_pattern16
	leaq	160(%r12), %rdi
	leaq	L_.memset_pattern.3(%rip), %rsi
	movl	$48, %edx
	callq	_memset_pattern16
	leaq	224(%r12), %rdi
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1378112036,1378112850]
	movups	%xmm0, 208(%r12)
	movl	$160, %edx
	movq	%rbx, %rsi
	callq	_memset_pattern16
	addq	$384, %r12                      ## imm = 0x180
	movq	(%r13), %rax
	movq	(%rax,%r14), %rcx
	movq	8(%rax,%r14), %rax
	movl	(%rcx), %ecx
	imull	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_ms_putsec
	movq	%rax, %r12
	incl	%ebx
	movq	(%r13), %rax
	movq	(%rax,%r14), %rcx
	movq	8(%rax,%r14), %rax
	movl	(%rcx), %ecx
	imull	(%rax), %ecx
	cmpl	%ecx, %ebx
	jl	LBB0_4
LBB0_5:
	movl	$43688, (%r12)                  ## imm = 0xAAA8
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_raw_buf,8,3                    ## @raw_buf
	.comm	_unit,8,3                       ## @unit
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @.memset_pattern.3
L_.memset_pattern.3:
	.quad	2863311530                      ## 0xaaaaaaaa
	.quad	2863311530                      ## 0xaaaaaaaa

	.p2align	4                               ## @.memset_pattern.4
L_.memset_pattern.4:
	.quad	2455016020                      ## 0x92549254
	.quad	2455016020                      ## 0x92549254

	.no_dead_strip	_dos_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function dos_write
lCPI0_0:
	.quad	1378112036                      ; 0x52245224
	.quad	1378112850                      ; 0x52245552
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_dos_write:                             ; @dos_write
	.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, x0
Lloh0:
	adrp	x8, _raw_buf@GOTPAGE
Lloh1:
	ldr	x8, [x8, _raw_buf@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x1, l_.memset_pattern.4@PAGE
Lloh4:
	add	x1, x1, l_.memset_pattern.4@PAGEOFF
	mov	x0, x21
	mov	w2, #3400
	bl	_memset_pattern16
	and	w19, w19, #0x3
	add	x20, x21, #3400
Lloh5:
	adrp	x22, _unit@GOTPAGE
Lloh6:
	ldr	x22, [x22, _unit@GOTPAGEOFF]
	ldr	x8, [x22]
	lsl	x9, x19, #4
	ldr	x8, [x8, x9]
	ldr	w8, [x8]
	cmp	w8, #2
	b.ne	LBB0_2
; %bb.1:
Lloh7:
	adrp	x1, l_.memset_pattern.4@PAGE
Lloh8:
	add	x1, x1, l_.memset_pattern.4@PAGEOFF
	mov	x0, x20
	mov	w2, #3784
	bl	_memset_pattern16
	mov	w8, #7184
	add	x20, x21, x8
LBB0_2:
Lloh9:
	adrp	x21, l_.memset_pattern.4@PAGE
Lloh10:
	add	x21, x21, l_.memset_pattern.4@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	w2, #160
	bl	_memset_pattern16
	add	x0, x20, #160
Lloh11:
	adrp	x1, l_.memset_pattern.3@PAGE
Lloh12:
	add	x1, x1, l_.memset_pattern.3@PAGEOFF
	mov	w2, #48
	bl	_memset_pattern16
	add	x0, x20, #224
Lloh13:
	adrp	x8, lCPI0_0@PAGE
Lloh14:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [x20, #208]
	mov	x1, x21
	mov	w2, #160
	bl	_memset_pattern16
	add	x1, x20, #384
	ldr	x8, [x22]
	add	x8, x8, x19, lsl #4
	ldp	x8, x9, [x8]
	ldr	w9, [x9]
	ldr	w8, [x8]
	mul	w8, w8, w9
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w20, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x2, x20
	bl	_ms_putsec
	mov	x1, x0
	add	w20, w20, #1
	ldr	x8, [x22]
	add	x8, x8, x19, lsl #4
	ldp	x8, x9, [x8]
	ldr	w9, [x9]
	ldr	w8, [x8]
	mul	w8, w8, w9
	cmp	w20, w8
	b.lt	LBB0_4
LBB0_5:
	mov	w8, #43688
	str	w8, [x1]
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_raw_buf,8,3                    ; @raw_buf
	.comm	_unit,8,3                       ; @unit
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; @.memset_pattern.3
l_.memset_pattern.3:
	.quad	2863311530                      ; 0xaaaaaaaa
	.quad	2863311530                      ; 0xaaaaaaaa

	.p2align	4                               ; @.memset_pattern.4
l_.memset_pattern.4:
	.quad	2455016020                      ; 0x92549254
	.quad	2455016020                      ; 0x92549254

	.no_dead_strip	_dos_write
.subsections_via_symbols
