	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_print_rect
_get_print_rect:                        ## @get_print_rect
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	_LOGPIXELSY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDeviceCaps
	movl	%eax, %r15d
	movq	_LOGPIXELSX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_GetDeviceCaps
	movl	%eax, %r14d
	movq	_PHYSICALWIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_GetDeviceCaps
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_devunits_to_twips
	movl	%eax, %r14d
	movq	_PHYSICALHEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_GetDeviceCaps
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_devunits_to_twips
	jmp	LBB0_3
LBB0_2:
	movl	$18500, %edi                    ## imm = 0x4844
	callq	_centmm_to_twips
	movl	%eax, %r14d
	movl	$27000, %edi                    ## imm = 0x6978
	callq	_centmm_to_twips
LBB0_3:
	movq	_margins@GOTPCREL(%rip), %rdi
	movl	16(%rdi), %edx
	movslq	%r14d, %rcx
	subq	8(%rdi), %rcx
	movl	20(%rdi), %esi
	movslq	%eax, %r8
	subq	(%rdi), %r8
	leaq	-28(%rbp), %rdi
	callq	_SetRect
	movl	-28(%rbp), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOGPIXELSY,4,2                 ## @LOGPIXELSY
	.comm	_LOGPIXELSX,4,2                 ## @LOGPIXELSX
	.comm	_PHYSICALWIDTH,4,2              ## @PHYSICALWIDTH
	.comm	_PHYSICALHEIGHT,4,2             ## @PHYSICALHEIGHT
	.comm	_margins,24,3                   ## @margins
	.no_dead_strip	_get_print_rect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_print_rect
_get_print_rect:                        ; @get_print_rect
	.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
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _LOGPIXELSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOGPIXELSY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_GetDeviceCaps
	mov	x21, x0
Lloh3:
	adrp	x8, _LOGPIXELSX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOGPIXELSX@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDeviceCaps
	mov	x20, x0
Lloh6:
	adrp	x8, _PHYSICALWIDTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PHYSICALWIDTH@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDeviceCaps
	mov	x1, x20
	bl	_devunits_to_twips
	mov	x20, x0
Lloh9:
	adrp	x8, _PHYSICALHEIGHT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PHYSICALHEIGHT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDeviceCaps
	mov	x1, x21
	bl	_devunits_to_twips
	b	LBB0_3
LBB0_2:
	mov	w0, #18500
	bl	_centmm_to_twips
	mov	x20, x0
	mov	w0, #27000
	bl	_centmm_to_twips
LBB0_3:
                                        ; kill: def $w0 killed $w0 def $x0
Lloh12:
	adrp	x8, _margins@GOTPAGE
Lloh13:
	ldr	x8, [x8, _margins@GOTPAGEOFF]
	ldp	w2, w1, [x8, #16]
	sxtw	x9, w20
	ldp	x8, x10, [x8]
	sub	x3, x9, x10
	sxtw	x9, w0
	sub	x4, x9, x8
	add	x0, sp, #12
	bl	_SetRect
	ldr	w0, [sp, #12]
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_LOGPIXELSY,4,2                 ; @LOGPIXELSY
	.comm	_LOGPIXELSX,4,2                 ; @LOGPIXELSX
	.comm	_PHYSICALWIDTH,4,2              ; @PHYSICALWIDTH
	.comm	_PHYSICALHEIGHT,4,2             ; @PHYSICALHEIGHT
	.comm	_margins,24,3                   ; @margins
	.no_dead_strip	_get_print_rect
.subsections_via_symbols
