	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function draw_margin_lines
_draw_margin_lines:                     ## @draw_margin_lines
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movl	%edx, %r14d
	movl	%esi, %r15d
	movl	%edi, %ebx
	movq	_preview@GOTPCREL(%rip), %rax
	movups	8(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	_LOGPIXELSX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDeviceCaps
	movq	%rax, %r12
	movq	_LOGPIXELSY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_GetDeviceCaps
	movq	%rax, %r13
	movq	_margins@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edx
	movq	_preview@GOTPCREL(%rip), %rdi
	addl	8(%rdi), %esi
	addl	12(%rdi), %edx
	movl	16(%rdi), %ecx
	movl	20(%rdi), %r8d
	subl	8(%rax), %ecx
	subl	12(%rax), %r8d
	leaq	-64(%rbp), %rdi
	callq	_SetRect
	movl	-64(%rbp), %edi
	movq	%r12, %rsi
	callq	_twips_to_pixels
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	mulss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	cvttss2si	%xmm0, %eax
	movl	%eax, -64(%rbp)
	movl	-60(%rbp), %edi
	movq	%r13, %rsi
	callq	_twips_to_pixels
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	mulss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	cvttss2si	%xmm0, %eax
	movl	%eax, -60(%rbp)
	movl	-52(%rbp), %edi
	movq	%r13, %rsi
	callq	_twips_to_pixels
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	mulss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	cvttss2si	%xmm0, %eax
	movl	%eax, -52(%rbp)
	movl	-56(%rbp), %edi
	movq	%r12, %rsi
	callq	_twips_to_pixels
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	mulss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	cvttss2si	%xmm0, %eax
	movl	%eax, -56(%rbp)
	leaq	-64(%rbp), %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_OffsetRect
	movq	_PS_DOT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_RGB
	movl	%r12d, %edi
	movl	$1, %esi
	movl	%eax, %edx
	callq	_CreatePen
	movl	%eax, %r12d
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SelectObject
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	-60(%rbp), %edx
	movl	%ebx, %edi
	movl	%r15d, %esi
	xorl	%ecx, %ecx
	callq	_MoveToEx
	movq	_preview@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	addl	%r15d, %esi
	movl	-60(%rbp), %edx
	movl	%ebx, %edi
	callq	_LineTo
	movl	-52(%rbp), %edx
	movl	%ebx, %edi
	movl	%r15d, %esi
	xorl	%ecx, %ecx
	callq	_MoveToEx
	addl	(%r13), %r15d
	movl	-52(%rbp), %edx
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_LineTo
	movl	-64(%rbp), %esi
	movl	%ebx, %edi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_MoveToEx
	movl	-64(%rbp), %esi
	movl	4(%r13), %edx
	addl	%r14d, %edx
	movl	%ebx, %edi
	callq	_LineTo
	movl	-56(%rbp), %esi
	movl	%ebx, %edi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_MoveToEx
	movl	-56(%rbp), %esi
	addl	4(%r13), %r14d
	movl	%ebx, %edi
	movl	%r14d, %edx
	callq	_LineTo
	movl	%ebx, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_SelectObject
	movl	%r12d, %edi
	callq	_DeleteObject
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_preview,24,2                   ## @preview
	.comm	_LOGPIXELSX,4,2                 ## @LOGPIXELSX
	.comm	_LOGPIXELSY,4,2                 ## @LOGPIXELSY
	.comm	_margins,16,2                   ## @margins
	.comm	_PS_DOT,4,2                     ## @PS_DOT
	.no_dead_strip	_draw_margin_lines
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_margin_lines
_draw_margin_lines:                     ; @draw_margin_lines
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 b8, -72
	.cfi_offset b9, -80
	fmov	s8, s0
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _preview@GOTPAGE
Lloh1:
	ldr	x24, [x24, _preview@GOTPAGEOFF]
	ldur	q0, [x24, #8]
	str	q0, [sp]
Lloh2:
	adrp	x8, _LOGPIXELSX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LOGPIXELSX@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_GetDeviceCaps
	mov	x22, x0
Lloh5:
	adrp	x8, _LOGPIXELSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LOGPIXELSY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDeviceCaps
	mov	x23, x0
Lloh8:
	adrp	x8, _margins@GOTPAGE
Lloh9:
	ldr	x8, [x8, _margins@GOTPAGEOFF]
	ldp	w9, w10, [x24, #8]
	ldp	w11, w12, [x8]
	add	w1, w11, w9
	add	w2, w12, w10
	ldp	w9, w10, [x24, #16]
	ldp	w11, w8, [x8, #8]
	sub	w3, w9, w11
	sub	w4, w10, w8
	mov	x0, sp
	bl	_SetRect
	ldr	w0, [sp]
	mov	x1, x22
	bl	_twips_to_pixels
	scvtf	s0, x0
	fmul	s0, s0, s8
	fcvtzs	w8, s0
	str	w8, [sp]
	ldr	w0, [sp, #4]
	mov	x1, x23
	bl	_twips_to_pixels
	scvtf	s0, x0
	fmul	s0, s0, s8
	fcvtzs	w8, s0
	str	w8, [sp, #4]
	ldr	w0, [sp, #12]
	mov	x1, x23
	bl	_twips_to_pixels
	scvtf	s0, x0
	fmul	s0, s0, s8
	fcvtzs	w8, s0
	str	w8, [sp, #12]
	ldr	w0, [sp, #8]
	mov	x1, x22
	bl	_twips_to_pixels
	scvtf	s0, x0
	fmul	s0, s0, s8
	fcvtzs	w8, s0
	str	w8, [sp, #8]
	mov	x0, sp
	mov	x1, x21
	mov	x2, x20
	bl	_OffsetRect
Lloh10:
	adrp	x8, _PS_DOT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PS_DOT@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	bl	_RGB
	mov	x2, x0
	mov	x0, x22
	mov	w1, #1
	bl	_CreatePen
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	bl	_SelectObject
	mov	x23, x0
	ldr	w2, [sp, #4]
	mov	x0, x19
	mov	x1, x21
	mov	x3, #0
	bl	_MoveToEx
	ldr	w8, [x24]
	add	w1, w8, w21
	ldr	w2, [sp, #4]
	mov	x0, x19
	bl	_LineTo
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	x1, x21
	mov	x3, #0
	bl	_MoveToEx
	ldr	w8, [x24]
	add	w1, w8, w21
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_LineTo
	ldr	w1, [sp]
	mov	x0, x19
	mov	x2, x20
	mov	x3, #0
	bl	_MoveToEx
	ldr	w1, [sp]
	ldr	w8, [x24, #4]
	add	w2, w8, w20
	mov	x0, x19
	bl	_LineTo
	ldr	w1, [sp, #8]
	mov	x0, x19
	mov	x2, x20
	mov	x3, #0
	bl	_MoveToEx
	ldr	w1, [sp, #8]
	ldr	w8, [x24, #4]
	add	w2, w8, w20
	mov	x0, x19
	bl	_LineTo
	mov	x0, x19
	mov	x1, x23
	bl	_SelectObject
	mov	x0, x22
	bl	_DeleteObject
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_preview,24,2                   ; @preview
	.comm	_LOGPIXELSX,4,2                 ; @LOGPIXELSX
	.comm	_LOGPIXELSY,4,2                 ; @LOGPIXELSY
	.comm	_margins,16,2                   ; @margins
	.comm	_PS_DOT,4,2                     ; @PS_DOT
	.no_dead_strip	_draw_margin_lines
.subsections_via_symbols
