	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function invalidate_fastmap
_invalidate_fastmap:                    ## @invalidate_fastmap
	.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
	cmpq	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	movq	$0, (%rdi)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r12
	movq	_UBI_FM_SB_VOLUME_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_new_fm_vbuf
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%r14, %rdi
	callq	_ubi_get_vid_hdr
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_ubi_wl_get_fm_peb
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_ubi_next_sqnum
	movl	%eax, %edi
	callq	_cpu_to_be64
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	(%r13), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_ubi_io_write_vid_hdr
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.8:
	movl	$1, (%r12)
	movq	8(%r12), %rax
	movq	%r13, (%rax)
	movq	%r12, (%r15)
	jmp	LBB0_9
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_6:
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ubi_wl_put_fm_peb
LBB0_7:
	movq	%r12, %rdi
	callq	_kfree
LBB0_9:
	movq	%r14, %rdi
	callq	_ubi_free_vid_buf
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_UBI_FM_SB_VOLUME_ID,4,2        ## @UBI_FM_SB_VOLUME_ID
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.no_dead_strip	_invalidate_fastmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function invalidate_fastmap
_invalidate_fastmap:                    ; @invalidate_fastmap
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	str	xzr, [x0]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x21, x0
Lloh6:
	adrp	x8, _UBI_FM_SB_VOLUME_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UBI_FM_SB_VOLUME_ID@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_new_fm_vbuf
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.3:
	mov	x0, x19
	bl	_ubi_get_vid_hdr
	mov	x22, x0
Lloh9:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh11:
	ldr	w24, [x8]
	mov	x0, x20
	mov	w1, #1
	bl	_ubi_wl_get_fm_peb
	cbz	x0, LBB0_8
; %bb.4:
	mov	x23, x0
	mov	x0, x20
	bl	_ubi_next_sqnum
	bl	_cpu_to_be64
	str	w0, [x22]
	ldr	w1, [x23]
	mov	x0, x20
	mov	x2, x19
	bl	_ubi_io_write_vid_hdr
	mov	x22, x0
	tbnz	w0, #31, LBB0_9
; %bb.5:
	mov	w8, #1
	str	w8, [x21]
	ldr	x8, [x21, #8]
	str	x23, [x8]
	str	x21, [x20]
	b	LBB0_11
LBB0_6:
	mov	w22, #0
	b	LBB0_12
LBB0_7:
	mov	x19, #0
	b	LBB0_11
LBB0_8:
	neg	w22, w24
	b	LBB0_10
LBB0_9:
	mov	x0, x20
	mov	x1, x23
	mov	w2, #0
	mov	w3, #0
	bl	_ubi_wl_put_fm_peb
LBB0_10:
	mov	x0, x21
	bl	_kfree
LBB0_11:
	mov	x0, x19
	bl	_ubi_free_vid_buf
LBB0_12:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_UBI_FM_SB_VOLUME_ID,4,2        ; @UBI_FM_SB_VOLUME_ID
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.no_dead_strip	_invalidate_fastmap
.subsections_via_symbols
