	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_map_w                       ## -- Begin function do_map_w
	.p2align	4, 0x90
_do_map_w:                              ## @do_map_w
	.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	%edx, %r13d
	testl	%r9d, %r9d
	je	LBB0_4
## %bb.1:
	movl	16(%rbp), %ebx
	movl	%ebx, %edi
	callq	_can_direct_write
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_memory_map@GOTPCREL(%rip), %rax
	sarl	$12, %ebx
	addl	(%rax), %ebx
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_emit_readword
	jmp	LBB0_9
LBB0_4:
	movl	%r8d, %r14d
	movl	%esi, %r15d
	movl	%edi, %r12d
	cmpl	%r13d, %edi
	je	LBB0_6
## %bb.5:
	movl	%r12d, %edi
	movl	%r13d, %esi
	callq	_emit_mov
LBB0_6:
	movl	%r13d, %edi
	movl	$12, %esi
	movl	%r13d, %edx
	callq	_emit_shrimm
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.7:
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_emit_xorimm
LBB0_8:
	movq	_memory_map@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	movl	%r13d, %edx
	callq	_emit_movmem_indexedx4
LBB0_9:
	movl	%r13d, %edi
	movl	$2, %esi
	movl	%r13d, %edx
	callq	_emit_shlimm
	jmp	LBB0_10
LBB0_2:
	movl	$-1, %r13d
LBB0_10:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_memory_map,8,3                 ## @memory_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_map_w                       ; -- Begin function do_map_w
	.p2align	2
_do_map_w:                              ; @do_map_w
	.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
	mov	x19, x2
	cbz	w5, LBB0_3
; %bb.1:
	mov	x23, x6
	mov	x0, x6
	bl	_can_direct_write
	cbz	x0, LBB0_9
; %bb.2:
Lloh0:
	adrp	x8, _memory_map@GOTPAGE
Lloh1:
	ldr	x8, [x8, _memory_map@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w0, w8, w23, asr #12
	mov	x1, x19
	bl	_emit_readword
	b	LBB0_8
LBB0_3:
	mov	x20, x4
	mov	x21, x1
	mov	x22, x0
	cmp	w0, w19
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x22
	mov	x1, x19
	bl	_emit_mov
LBB0_5:
	mov	x0, x19
	mov	w1, #12
	mov	x2, x19
	bl	_emit_shrimm
	cbz	w20, LBB0_7
; %bb.6:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_emit_xorimm
LBB0_7:
Lloh3:
	adrp	x8, _memory_map@GOTPAGE
Lloh4:
	ldr	x8, [x8, _memory_map@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x19
	mov	x2, x19
	bl	_emit_movmem_indexedx4
LBB0_8:
	mov	x0, x19
	mov	w1, #2
	mov	x2, x19
	bl	_emit_shlimm
	b	LBB0_10
LBB0_9:
	mov	w19, #-1
LBB0_10:
	mov	x0, x19
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_memory_map,8,3                 ; @memory_map
.subsections_via_symbols
