	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pstcache_touch_bitmap          ## -- Begin function pstcache_touch_bitmap
	.p2align	4, 0x90
_pstcache_touch_bitmap:                 ## @pstcache_touch_bitmap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	%edx, -20(%rbp)
	callq	_IS_PERSISTENT
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	_BMPCACHE2_NUM_PSTCELLS@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jle	LBB0_3
## %bb.2:
	movq	_g_pstcache_Bpp@GOTPCREL(%rip), %rax
	movq	_MAX_CELL_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	imull	(%rax), %esi
	movq	_g_pstcache_fd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %ebx
	addl	$4, %esi
	imull	%r14d, %esi
	addl	$12, %esi
	movl	%ebx, %edi
	callq	_rd_lseek_file
	leaq	-20(%rbp), %rsi
	movl	%ebx, %edi
	movl	$4, %edx
	callq	_rd_write_file
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BMPCACHE2_NUM_PSTCELLS,4,2     ## @BMPCACHE2_NUM_PSTCELLS
	.comm	_g_pstcache_fd,8,3              ## @g_pstcache_fd
	.comm	_g_pstcache_Bpp,4,2             ## @g_pstcache_Bpp
	.comm	_MAX_CELL_SIZE,4,2              ## @MAX_CELL_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pstcache_touch_bitmap          ; -- Begin function pstcache_touch_bitmap
	.p2align	2
_pstcache_touch_bitmap:                 ; @pstcache_touch_bitmap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	str	w2, [sp, #12]
	bl	_IS_PERSISTENT
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _BMPCACHE2_NUM_PSTCELLS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BMPCACHE2_NUM_PSTCELLS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	b.le	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _g_pstcache_fd@GOTPAGE
Lloh4:
	ldr	x8, [x8, _g_pstcache_fd@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w20, [x8, x20, lsl #2]
Lloh6:
	adrp	x8, _g_pstcache_Bpp@GOTPAGE
Lloh7:
	ldr	x8, [x8, _g_pstcache_Bpp@GOTPAGEOFF]
Lloh8:
	adrp	x9, _MAX_CELL_SIZE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MAX_CELL_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	orr	w10, wzr, #0x4
	madd	w8, w9, w8, w10
	orr	w9, wzr, #0xc
	madd	w1, w8, w19, w9
	mov	x0, x20
	bl	_rd_lseek_file
	add	x1, sp, #12
	mov	x0, x20
	mov	w2, #4
	bl	_rd_write_file
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BMPCACHE2_NUM_PSTCELLS,4,2     ; @BMPCACHE2_NUM_PSTCELLS
	.comm	_g_pstcache_fd,8,3              ; @g_pstcache_fd
	.comm	_g_pstcache_Bpp,4,2             ; @g_pstcache_Bpp
	.comm	_MAX_CELL_SIZE,4,2              ; @MAX_CELL_SIZE
.subsections_via_symbols
