	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MapOnCreate
_MapOnCreate:                           ## @MapOnCreate
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	xorl	%edi, %edi
	callq	_SetLastError
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_SetWindowLongPtrW
	xorl	%eax, %eax
	callq	_GetLastError
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_ZeroMemory
	movq	%r14, 32(%rbx)
	movq	%r15, (%rbx)
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_GetClientRect
	movl	-40(%rbp), %eax
	movl	%eax, 16(%rbx)
	movl	-36(%rbp), %ecx
	movl	%ecx, 20(%rbx)
	movq	_XCELLS@GOTPCREL(%rip), %rsi
	cltd
	idivl	(%rsi)
	movl	%eax, 24(%rbx)
	movq	_YCELLS@GOTPCREL(%rip), %rsi
	movl	%ecx, %eax
	cltd
	idivl	(%rsi)
	movl	%eax, 28(%rbx)
	movq	$0, 8(%rbx)
	movq	%rbx, %rdi
	callq	_SetGrid
	movq	(%rbx), %rdi
	movq	_SB_VERT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TRUE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	xorl	%edx, %edx
	callq	_SetScrollPos
	movl	(%rbx), %r12d
LBB0_3:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_XCELLS,4,2                     ## @XCELLS
	.comm	_YCELLS,4,2                     ## @YCELLS
	.comm	_SB_VERT,4,2                    ## @SB_VERT
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_MapOnCreate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MapOnCreate
_MapOnCreate:                           ; @MapOnCreate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	bl	_GetProcessHeap
	mov	w1, #0
	mov	w2, #4
	bl	_HeapAlloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	w0, #0
	bl	_SetLastError
	mov	x0, x20
	mov	w1, #0
	mov	x2, x19
	bl	_SetWindowLongPtrW
	bl	_GetLastError
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #4
	bl	_ZeroMemory
	str	x20, [x19, #32]
	str	x21, [x19]
	add	x1, sp, #8
	mov	x0, x20
	bl	_GetClientRect
	ldp	w8, w9, [sp, #8]
	stp	w8, w9, [x19, #16]
Lloh3:
	adrp	x10, _XCELLS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _XCELLS@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _YCELLS@GOTPAGE
Lloh7:
	ldr	x11, [x11, _YCELLS@GOTPAGEOFF]
	sdiv	w8, w8, w10
Lloh8:
	ldr	w10, [x11]
	sdiv	w9, w9, w10
	stp	w8, w9, [x19, #24]
	str	xzr, [x19, #8]
	mov	x0, x19
	bl	_SetGrid
	ldr	x0, [x19]
Lloh9:
	adrp	x8, _SB_VERT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SB_VERT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x19, _TRUE@GOTPAGE
Lloh13:
	ldr	x19, [x19, _TRUE@GOTPAGEOFF]
	ldr	w3, [x19]
	mov	w2, #0
	bl	_SetScrollPos
	ldr	w22, [x19]
LBB0_3:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_XCELLS,4,2                     ; @XCELLS
	.comm	_YCELLS,4,2                     ; @YCELLS
	.comm	_SB_VERT,4,2                    ; @SB_VERT
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_MapOnCreate
.subsections_via_symbols
