	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_writefsinfo                    ## -- Begin function writefsinfo
	.p2align	4, 0x90
_writefsinfo:                           ## @writefsinfo
	.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, %r15
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_DOSBOOTBLOCKSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	%ebx, %ebx
	shlq	$3, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movl	4(%r15), %esi
	imull	(%r15), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	callq	_lseek
	movl	4(%r15), %ecx
	imull	(%r15), %ecx
	leaq	L_.str(%rip), %r13
	cmpl	%ecx, %eax
	jne	LBB0_4
## %bb.1:
	movl	%r14d, %edi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_read
	cltq
	cmpq	%rax, %rbx
	jne	LBB0_4
## %bb.2:
	movslq	8(%r15), %rax
	movq	%rax, 3904(%r12)
	movl	%eax, %ecx
	sarl	$8, %ecx
	movslq	%ecx, %rcx
	movq	%rcx, 3912(%r12)
	movl	%eax, %ecx
	sarl	$16, %ecx
	movslq	%ecx, %rcx
	movq	%rcx, 3920(%r12)
	sarl	$24, %eax
	cltq
	movq	%rax, 3928(%r12)
	movslq	12(%r15), %rax
	movq	%rax, 3936(%r12)
	movl	%eax, %ecx
	sarl	$8, %ecx
	movslq	%ecx, %rcx
	movq	%rcx, 3944(%r12)
	movl	%eax, %ecx
	sarl	$16, %ecx
	movslq	%ecx, %rcx
	movq	%rcx, 3952(%r12)
	sarl	$24, %eax
	cltq
	movq	%rax, 3960(%r12)
	movl	4(%r15), %esi
	imull	(%r15), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	callq	_lseek
	movl	4(%r15), %ecx
	imull	(%r15), %ecx
	leaq	L_.str.1(%rip), %r13
	cmpl	%ecx, %eax
	jne	LBB0_4
## %bb.3:
	movl	%r14d, %edi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_write
	movslq	%eax, %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %rbx
	je	LBB0_5
LBB0_4:
	movq	%r13, %rdi
	callq	_perr
	movq	_FSFATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DOSBOOTBLOCKSIZE,4,2           ## @DOSBOOTBLOCKSIZE
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not read fsinfo block"

	.comm	_FSFATAL,4,2                    ## @FSFATAL
L_.str.1:                               ## @.str.1
	.asciz	"Unable to write bpbFSInfo"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function writefsinfo
lCPI0_0:
	.long	4294967288                      ; 0xfffffff8
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_writefsinfo
	.p2align	2
_writefsinfo:                           ; @writefsinfo
	.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
	sub	sp, sp, #16
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _DOSBOOTBLOCKSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DOSBOOTBLOCKSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w8, w8, #1
	lsl	x20, x8, #3
	mov	x9, x20
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x22, x8, x20
	mov	sp, x22
	ldp	w8, w9, [x1]
	mul	w1, w9, w8
Lloh8:
	adrp	x23, _SEEK_SET@GOTPAGE
Lloh9:
	ldr	x23, [x23, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_lseek
	ldp	w8, w9, [x21]
	mul	w8, w9, w8
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.1:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_read
	cmp	x20, w0, sxtw
	b.ne	LBB0_5
; %bb.2:
	add	x8, x22, #3912
Lloh10:
	adrp	x9, lCPI0_0@PAGE
Lloh11:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	ldpsw	x9, x10, [x21, #8]
	str	x9, [x22, #3904]
	dup.2s	v1, w9
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	sshl.2s	v1, v1, v0
	sshll.2d	v1, v1, #0
	str	q1, [x8]
	sbfx	x9, x9, #24, #8
	str	x9, [x22, #3928]
	str	x10, [x22, #3936]
	dup.2s	v1, w10
                                        ; kill: def $w10 killed $w10 killed $x10 def $x10
	sshl.2s	v0, v1, v0
	sshll.2d	v0, v0, #0
	str	q0, [x8, #32]
	sbfx	x8, x10, #24, #8
	str	x8, [x22, #3960]
	ldp	w8, w9, [x21]
	mul	w1, w9, w8
	ldr	w2, [x23]
	mov	x0, x19
	bl	_lseek
	ldp	w8, w9, [x21]
	mul	w8, w9, w8
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_write
	cmp	x20, w0, sxtw
	b.ne	LBB0_6
; %bb.4:
	mov	w0, #0
	b	LBB0_8
LBB0_5:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_7:
	bl	_perr
Lloh16:
	adrp	x8, _FSFATAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FSFATAL@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
LBB0_8:
	ldur	x8, [x29, #-56]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #48
	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_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_DOSBOOTBLOCKSIZE,4,2           ; @DOSBOOTBLOCKSIZE
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not read fsinfo block"

	.comm	_FSFATAL,4,2                    ; @FSFATAL
l_.str.1:                               ; @.str.1
	.asciz	"Unable to write bpbFSInfo"

.subsections_via_symbols
