	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function add_ruler_units
LCPI0_0:
	.quad	0x3fd0000000000000              ## double 0.25
LCPI0_1:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_add_ruler_units:                       ## @add_ruler_units
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.1:
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	movabsq	$28826387671621747, %rax        ## imm = 0x66697265532073
	movq	%rax, -58(%rbp)
	movabsq	$2338333995820929869, %rax      ## imm = 0x20736E615320534D
	movq	%rax, -64(%rbp)
	movq	_add_ruler_units.hdc(%rip), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_DeleteDC
	movl	_add_ruler_units.hBitmap(%rip), %edi
	callq	_DeleteObject
LBB0_3:
	xorl	%edi, %edi
	callq	_CreateCompatibleDC
	movq	%rax, _add_ruler_units.hdc(%rip)
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_centmm_to_twips
	movl	%eax, %ebx
	movq	_add_ruler_units.hdc(%rip), %rdi
	movq	_LOGPIXELSX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDeviceCaps
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_twips_to_pixels
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	_add_ruler_units.hdc(%rip), %rdi
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %esi
	movq	8(%r14), %rdx
	callq	_CreateCompatibleBitmap
	movl	%eax, _add_ruler_units.hBitmap(%rip)
	movq	_add_ruler_units.hdc(%rip), %rdi
	movl	%eax, %esi
	callq	_SelectObject
	movq	_add_ruler_units.hdc(%rip), %rbx
	movq	_WHITE_BRUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetStockObject
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_FillRect
	leaq	-64(%rbp), %rax
	movl	$10, %edi
	movl	$6, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	callq	_CreateFontW
	addq	$64, %rsp
	movq	_add_ruler_units.hdc(%rip), %rdi
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movl	%eax, %esi
	callq	_SelectObject
	movq	_add_ruler_units.hdc(%rip), %rdi
	movq	_TRANSPARENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SetBkMode
	movq	_add_ruler_units.hdc(%rip), %rdi
	movq	_TA_CENTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SetTextAlign
	movl	(%r14), %r13d
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	subl	%eax, %r13d
	cmpl	%eax, %r13d
	jge	LBB0_4
LBB0_10:
	movl	-92(%rbp), %edi                 ## 4-byte Reload
	callq	_DeleteObject
	movq	-112(%rbp), %rdi                ## 8-byte Reload
LBB0_11:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	movq	8(%rax), %r8
	movq	_add_ruler_units.hdc(%rip), %r9
	movq	_SRCAND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	xorl	%esi, %esi
	xorl	%edx, %edx
	pushq	%rax
	pushq	$0
	pushq	$0
	callq	_BitBlt
	addq	$32, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cvtsi2ssl	-76(%rbp), %xmm0        ## 4-byte Folded Reload
	cvtss2sd	%xmm0, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %ecx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	xorps	%xmm0, %xmm0
	cvtsi2ssq	8(%rax), %xmm0
	cvtsi2ssq	16(%rax), %xmm1
	subss	%xmm1, %xmm0
	cvtss2sd	%xmm0, %xmm0
	mulsd	LCPI0_1(%rip), %xmm0
	cvttsd2si	%xmm0, %eax
	leal	1(%rax), %edx
	movl	%edx, -80(%rbp)                 ## 4-byte Spill
	incl	%r13d
	leal	3(%rax), %r12d
	leal	-2(%rax), %edx
	movl	%edx, -100(%rbp)                ## 4-byte Spill
	addl	$4, %eax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	leal	(%rcx,%rcx), %eax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	%rcx, -144(%rbp)                ## 8-byte Spill
	leal	(%rcx,%rcx,2), %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	$1, %r15d
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r14d
	movl	%r13d, -96(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movb	$0, -70(%rbp)
	movw	$25637, -72(%rbp)               ## imm = 0x6425
	movq	-144(%rbp), %rax                ## 8-byte Reload
	leal	(%rax,%r14), %ebx
	cmpl	%r13d, %ebx
	jg	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_add_ruler_units.hdc(%rip), %rdi
	movl	%ebx, %esi
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	callq	_MoveToEx
	movq	_add_ruler_units.hdc(%rip), %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_LineTo
	movq	-136(%rbp), %rax                ## 8-byte Reload
	leal	(%rax,%r14), %ebx
	cmpl	%r13d, %ebx
	jg	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_add_ruler_units.hdc(%rip), %rdi
	movl	%ebx, %esi
	movl	-100(%rbp), %edx                ## 4-byte Reload
	xorl	%ecx, %ecx
	callq	_MoveToEx
	movq	_add_ruler_units.hdc(%rip), %rdi
	movl	%ebx, %esi
	movq	-128(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_LineTo
	movq	-120(%rbp), %rax                ## 8-byte Reload
	leal	(%rax,%r14), %ebx
	cmpl	%r13d, %ebx
	jg	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_add_ruler_units.hdc(%rip), %rdi
	movl	%ebx, %esi
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	callq	_MoveToEx
	movq	_add_ruler_units.hdc(%rip), %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_LineTo
	addl	-76(%rbp), %r14d                ## 4-byte Folded Reload
	cmpl	%r13d, %r14d
	jg	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r12d, %r13d
	leaq	-103(%rbp), %r12
	movq	%r12, %rdi
	leaq	-72(%rbp), %rsi
	movl	%r15d, %edx
	callq	_wsprintfW
	movq	_add_ruler_units.hdc(%rip), %rbx
	movq	%r12, %rdi
	callq	_lstrlenW
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$5, %edx
	movq	%r12, %rcx
	movl	%r13d, %r12d
	movl	-96(%rbp), %r13d                ## 4-byte Reload
	movl	%eax, %r8d
	callq	_TextOutW
	incl	%r15d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	subl	-68(%rbp), %eax                 ## 4-byte Folded Reload
	cmpl	%eax, %r14d
	jle	LBB0_5
	jmp	LBB0_10
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_add_ruler_units.hdc,8,3 ## @add_ruler_units.hdc
.zerofill __DATA,__bss,_add_ruler_units.hBitmap,4,2 ## @add_ruler_units.hBitmap
	.section	__TEXT,__cstring,cstring_literals
L___const.add_ruler_units.FontName:     ## @__const.add_ruler_units.FontName
	.asciz	"MS Sans Serif"

	.comm	_LOGPIXELSX,4,2                 ## @LOGPIXELSX
	.comm	_WHITE_BRUSH,4,2                ## @WHITE_BRUSH
	.comm	_TRANSPARENT,4,2                ## @TRANSPARENT
	.comm	_TA_CENTER,4,2                  ## @TA_CENTER
L___const.add_ruler_units.format:       ## @__const.add_ruler_units.format
	.asciz	"%d"

	.comm	_SRCAND,4,2                     ## @SRCAND
	.no_dead_strip	_add_ruler_units
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_ruler_units
_add_ruler_units:                       ; @add_ruler_units
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w3, [sp, #76]                   ; 4-byte Folded Spill
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	adrp	x22, _add_ruler_units.hdc@PAGE
	cbz	x2, LBB0_5
; %bb.1:
	str	x0, [sp, #48]                   ; 8-byte Folded Spill
Lloh3:
	adrp	x8, l___const.add_ruler_units.FontName@PAGE
Lloh4:
	add	x8, x8, l___const.add_ruler_units.FontName@PAGEOFF
	ldr	x9, [x8]
	str	x9, [sp, #88]
	ldur	x8, [x8, #6]
	stur	x8, [sp, #94]
	ldr	x0, [x22, _add_ruler_units.hdc@PAGEOFF]
	adrp	x19, _add_ruler_units.hBitmap@PAGE
	cbz	x0, LBB0_3
; %bb.2:
	bl	_DeleteDC
	ldr	w0, [x19, _add_ruler_units.hBitmap@PAGEOFF]
	bl	_DeleteObject
LBB0_3:
	mov	w0, #0
	bl	_CreateCompatibleDC
	str	x0, [x22, _add_ruler_units.hdc@PAGEOFF]
	mov	w0, #1000
	bl	_centmm_to_twips
	mov	x21, x0
	ldr	x0, [x22, _add_ruler_units.hdc@PAGEOFF]
Lloh5:
	adrp	x8, _LOGPIXELSX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LOGPIXELSX@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_GetDeviceCaps
	mov	x1, x0
	mov	x0, x21
	bl	_twips_to_pixels
	str	w0, [sp, #72]                   ; 4-byte Folded Spill
	ldr	x0, [x22, _add_ruler_units.hdc@PAGEOFF]
	ldr	w1, [x20]
	ldr	x2, [x20, #8]
	bl	_CreateCompatibleBitmap
	mov	x1, x0
	str	w0, [x19, _add_ruler_units.hBitmap@PAGEOFF]
	ldr	x0, [x22, _add_ruler_units.hdc@PAGEOFF]
	bl	_SelectObject
	ldr	x21, [x22, _add_ruler_units.hdc@PAGEOFF]
Lloh8:
	adrp	x8, _WHITE_BRUSH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WHITE_BRUSH@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_GetStockObject
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_FillRect
	stp	xzr, xzr, [sp]
	add	x8, sp, #88
	str	x8, [sp, #24]
	str	wzr, [sp, #16]
	mov	w0, #10
	mov	w1, #6
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_CreateFontW
	mov	x1, x0
	ldr	x0, [x22, _add_ruler_units.hdc@PAGEOFF]
	str	w1, [sp, #44]                   ; 4-byte Folded Spill
	bl	_SelectObject
	ldr	x0, [x22, _add_ruler_units.hdc@PAGEOFF]
Lloh11:
	adrp	x8, _TRANSPARENT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TRANSPARENT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_SetBkMode
	ldr	x0, [x22, _add_ruler_units.hdc@PAGEOFF]
Lloh14:
	adrp	x8, _TA_CENTER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TA_CENTER@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_SetTextAlign
	ldr	w8, [x20]
	ldr	w9, [sp, #76]                   ; 4-byte Folded Reload
	sub	w8, w8, w9
	cmp	w8, w9
	b.ge	LBB0_7
LBB0_4:
	ldr	w0, [sp, #44]                   ; 4-byte Folded Reload
	bl	_DeleteObject
	ldr	x0, [sp, #48]                   ; 8-byte Folded Reload
LBB0_5:
	ldr	w3, [x20]
	ldr	x4, [x20, #8]
	ldr	x5, [x22, _add_ruler_units.hdc@PAGEOFF]
Lloh17:
	adrp	x8, _SRCAND@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SRCAND@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	w1, #0
	mov	w2, #0
	mov	w6, #0
	mov	w7, #0
	bl	_BitBlt
	ldur	x8, [x29, #-88]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.6:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_7:
	ldr	w9, [sp, #72]                   ; 4-byte Folded Reload
	scvtf	s0, w9
	fcvt	d0, s0
	fmov	d1, #0.25000000
	fmul	d0, d0, d1
	ldp	x9, x10, [x20, #8]
	scvtf	s1, x9
	scvtf	s2, x10
	fsub	s1, s1, s2
	fcvt	d1, s1
	fmov	d2, #0.50000000
	fmul	d1, d1, d2
	fcvtzs	w9, d1
	add	w24, w9, #1
	add	w19, w8, #1
	fcvtzs	w26, d0
	add	w25, w9, #3
	sub	w10, w9, #2
	add	w8, w9, #4
	stp	w8, w10, [sp, #64]              ; 8-byte Folded Spill
	lsl	w27, w26, #1
	add	w8, w27, w26
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
	mov	w28, #1
	ldr	w21, [sp, #76]                  ; 4-byte Folded Reload
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	strb	wzr, [sp, #84]
	mov	w8, #25637
	strh	w8, [sp, #82]
	add	w23, w26, w21
	cmp	w23, w19
	b.gt	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x22, _add_ruler_units.hdc@PAGEOFF]
	mov	x1, x23
	mov	x2, x24
	mov	x3, #0
	bl	_MoveToEx
	ldr	x0, [x22, _add_ruler_units.hdc@PAGEOFF]
	mov	x1, x23
	mov	x2, x25
	bl	_LineTo
	add	w23, w27, w21
	cmp	w23, w19
	b.gt	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x22, _add_ruler_units.hdc@PAGEOFF]
	mov	x1, x23
	ldr	w2, [sp, #68]                   ; 4-byte Folded Reload
	mov	x3, #0
	bl	_MoveToEx
	ldr	x0, [x22, _add_ruler_units.hdc@PAGEOFF]
	mov	x1, x23
	ldr	w2, [sp, #64]                   ; 4-byte Folded Reload
	bl	_LineTo
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	add	w23, w8, w21
	cmp	w23, w19
	b.gt	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x22, _add_ruler_units.hdc@PAGEOFF]
	mov	x1, x23
	mov	x2, x24
	mov	x3, #0
	bl	_MoveToEx
	ldr	x0, [x22, _add_ruler_units.hdc@PAGEOFF]
	mov	x1, x23
	mov	x2, x25
	bl	_LineTo
	ldr	w8, [sp, #72]                   ; 4-byte Folded Reload
	add	w21, w21, w8
	cmp	w21, w19
	b.gt	LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x0, sp, #85
	add	x1, sp, #82
	mov	x2, x28
	bl	_wsprintfW
	ldr	x23, [x22, _add_ruler_units.hdc@PAGEOFF]
	add	x0, sp, #85
	bl	_lstrlenW
	mov	x4, x0
	add	x3, sp, #85
	mov	x0, x23
	mov	x1, x21
	mov	w2, #5
	bl	_TextOutW
	add	w28, w28, #1
	ldr	w8, [x20]
	ldr	w9, [sp, #76]                   ; 4-byte Folded Reload
	sub	w8, w8, w9
	cmp	w21, w8
	b.le	LBB0_8
	b	LBB0_4
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_add_ruler_units.hdc,8,3 ; @add_ruler_units.hdc
.zerofill __DATA,__bss,_add_ruler_units.hBitmap,4,2 ; @add_ruler_units.hBitmap
	.section	__TEXT,__cstring,cstring_literals
l___const.add_ruler_units.FontName:     ; @__const.add_ruler_units.FontName
	.asciz	"MS Sans Serif"

	.comm	_LOGPIXELSX,4,2                 ; @LOGPIXELSX
	.comm	_WHITE_BRUSH,4,2                ; @WHITE_BRUSH
	.comm	_TRANSPARENT,4,2                ; @TRANSPARENT
	.comm	_TA_CENTER,4,2                  ; @TA_CENTER
l___const.add_ruler_units.format:       ; @__const.add_ruler_units.format
	.asciz	"%d"

	.comm	_SRCAND,4,2                     ; @SRCAND
	.no_dead_strip	_add_ruler_units
.subsections_via_symbols
