	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pagesetup_change_preview
_pagesetup_change_preview:              ## @pagesetup_change_preview
	.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
	movq	%rdi, %r12
	callq	_pagesetup_get_orientation
	movq	_DMORIENT_LANDSCAPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	4(%r12), %r15d
	subl	8(%r12), %r15d
	movq	%r12, %rdi
	callq	_pagesetup_get_papersize_pt
	movl	(%rax), %ebx
	imull	%r15d, %ebx
	movq	%r12, %rdi
	callq	_pagesetup_get_papersize_pt
	movq	%rax, %rcx
	movl	%ebx, %eax
	cltd
	idivl	4(%rcx)
	movl	%eax, %r14d
	jmp	LBB0_3
LBB0_2:
	movl	12(%r12), %r14d
	subl	16(%r12), %r14d
	movq	%r12, %rdi
	callq	_pagesetup_get_papersize_pt
	movl	4(%rax), %ebx
	imull	%r14d, %ebx
	movq	%r12, %rdi
	callq	_pagesetup_get_papersize_pt
	movq	%rax, %rcx
	movl	%ebx, %eax
	cltd
	idivl	(%rcx)
	movl	%eax, %r15d
LBB0_3:
	leaq	4(%r12), %rdi
	movl	4(%r12), %eax
	movl	12(%r12), %ecx
	subl	%r15d, %eax
	addl	8(%r12), %eax
	movl	%eax, %r13d
	shrl	$31, %r13d
	addl	%eax, %r13d
	subl	%r14d, %ecx
	addl	16(%r12), %ecx
	sarl	%r13d
	movl	%ecx, %ebx
	shrl	$31, %ebx
	addl	%ecx, %ebx
	sarl	%ebx
	callq	_wine_dbgstr_rect
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	movl	%r14d, %r9d
	callq	_TRACE
	movl	(%r12), %edi
	movq	_rct2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	leal	(%r15,%r13), %esi
	leal	4(%rbx), %edx
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movl	%eax, %edi
	movl	$4, %ecx
	movl	%r14d, %r8d
	callq	_MoveWindow
	movl	(%r12), %edi
	movq	_rct3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	leal	4(%r13), %esi
	leal	(%rbx,%r14), %edx
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movl	%eax, %edi
	movl	%r15d, %ecx
	movl	$4, %r8d
	callq	_MoveWindow
	movl	(%r12), %edi
	movq	_rct1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movl	%eax, %edi
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	callq	_MoveWindow
	movups	4(%r12), %xmm0
	movaps	%xmm0, -64(%rbp)
	addl	$4, -64(%rbp)
	addl	$4, -56(%rbp)
	movl	(%r12), %edi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rsi
	callq	_InvalidateRect
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMORIENT_LANDSCAPE,8,3         ## @DMORIENT_LANDSCAPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"draw rect %s x=%d, y=%d, w=%d, h=%d\n"

	.comm	_rct2,4,2                       ## @rct2
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_rct3,4,2                       ## @rct3
	.comm	_rct1,4,2                       ## @rct1
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_pagesetup_change_preview
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pagesetup_change_preview
_pagesetup_change_preview:              ; @pagesetup_change_preview
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_pagesetup_get_orientation
Lloh0:
	adrp	x8, _DMORIENT_LANDSCAPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMORIENT_LANDSCAPE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	w8, w9, [x19, #4]
	sub	w21, w8, w9
	mov	x0, x19
	bl	_pagesetup_get_papersize_pt
	ldr	w8, [x0]
	mul	w20, w8, w21
	mov	x0, x19
	bl	_pagesetup_get_papersize_pt
	ldr	w8, [x0, #4]
	sdiv	w20, w20, w8
	b	LBB0_3
LBB0_2:
	ldp	w8, w9, [x19, #12]
	sub	w20, w8, w9
	mov	x0, x19
	bl	_pagesetup_get_papersize_pt
	ldr	w8, [x0, #4]
	mul	w21, w8, w20
	mov	x0, x19
	bl	_pagesetup_get_papersize_pt
	ldr	w8, [x0]
	sdiv	w21, w21, w8
LBB0_3:
	mov	x22, x19
	ldr	w8, [x22, #4]!
	ldp	w9, w10, [x19, #8]
	sub	w8, w8, w21
	add	w8, w8, w9
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w23, w8, #1
	ldr	w8, [x19, #16]
	sub	w9, w10, w20
	add	w8, w9, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w24, w8, #1
	mov	x0, x22
	bl	_wine_dbgstr_rect
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x23
	mov	x3, x24
	mov	x4, x21
	mov	x5, x20
	bl	_TRACE
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _rct2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rct2@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_GetDlgItem
	add	w1, w23, w21
	add	w2, w24, #4
Lloh8:
	adrp	x25, _FALSE@GOTPAGE
Lloh9:
	ldr	x25, [x25, _FALSE@GOTPAGEOFF]
	ldr	w5, [x25]
	mov	w3, #4
	mov	x4, x20
	bl	_MoveWindow
	ldr	w0, [x19]
Lloh10:
	adrp	x8, _rct3@GOTPAGE
Lloh11:
	ldr	x8, [x8, _rct3@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_GetDlgItem
	add	w1, w23, #4
	add	w2, w24, w20
	ldr	w5, [x25]
	mov	x3, x21
	mov	w4, #4
	bl	_MoveWindow
	ldr	w0, [x19]
Lloh13:
	adrp	x8, _rct1@GOTPAGE
Lloh14:
	ldr	x8, [x8, _rct1@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_GetDlgItem
	ldr	w5, [x25]
	mov	x1, x23
	mov	x2, x24
	mov	x3, x21
	mov	x4, x20
	bl	_MoveWindow
	ldr	q0, [x22]
	str	q0, [sp]
	ldr	w8, [sp]
	ldr	w9, [sp, #8]
	add	w8, w8, #4
	add	w9, w9, #4
	str	w8, [sp]
	str	w9, [sp, #8]
	ldr	w0, [x19]
Lloh16:
	adrp	x8, _TRUE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x1, sp
	bl	_InvalidateRect
	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	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DMORIENT_LANDSCAPE,8,3         ; @DMORIENT_LANDSCAPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"draw rect %s x=%d, y=%d, w=%d, h=%d\n"

	.comm	_rct2,4,2                       ; @rct2
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_rct3,4,2                       ; @rct3
	.comm	_rct1,4,2                       ; @rct1
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_pagesetup_change_preview
.subsections_via_symbols
