	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_graphics_bounds
_get_graphics_bounds:                   ## @get_graphics_bounds
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	callq	_get_graphics_device_bounds
	movq	%rax, %r14
	movq	_Ok@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_3
## %bb.1:
	cmpq	$0, (%rbx)
	je	LBB0_3
## %bb.2:
	movq	(%r15), %rax
	movq	%rax, -64(%rbp)
	movq	%rax, -96(%rbp)
	movq	8(%r15), %rcx
	movq	%rcx, -72(%rbp)
	movq	%rcx, -88(%rbp)
	addq	16(%r15), %rax
	movq	%rax, -48(%rbp)
	movq	%rax, -80(%rbp)
	addq	24(%r15), %rcx
	movq	%rcx, -40(%rbp)
	movq	%rcx, -56(%rbp)
	movq	_CoordinateSpaceDevice@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WineCoordinateSpaceGdiDevice@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-96(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$4, %r8d
	callq	_gdip_transform_points
	movq	-96(%rbp), %rcx
	movq	-88(%rbp), %rax
	movq	-80(%rbp), %rsi
	cmpq	%rcx, %rsi
	movq	%rcx, %rdx
	cmovlq	%rsi, %rdx
	movq	-72(%rbp), %rdi
	cmovgq	%rsi, %rcx
	cmpq	%rax, %rdi
	movq	%rax, %rsi
	cmovlq	%rdi, %rsi
	cmovgq	%rdi, %rax
	movq	-64(%rbp), %rdi
	cmpq	%rdx, %rdi
	cmovlq	%rdi, %rdx
	movq	-56(%rbp), %rbx
	cmpq	%rsi, %rbx
	cmovlq	%rbx, %rsi
	cmpq	%rcx, %rdi
	cmovgq	%rdi, %rcx
	cmpq	%rax, %rbx
	cmovgq	%rbx, %rax
	movq	-48(%rbp), %rdi
	cmpq	%rdx, %rdi
	cmovlq	%rdi, %rdx
	movq	-40(%rbp), %rbx
	cmpq	%rsi, %rbx
	cmovlq	%rbx, %rsi
	cmpq	%rcx, %rdi
	cmovgq	%rdi, %rcx
	cmpq	%rax, %rbx
	cmovgq	%rbx, %rax
	movq	%rdx, (%r15)
	movq	%rsi, 8(%r15)
	subq	%rdx, %rcx
	movq	%rcx, 16(%r15)
	subq	%rsi, %rax
	movq	%rax, 24(%r15)
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_Ok,8,3                         ## @Ok
	.comm	_CoordinateSpaceDevice,4,2      ## @CoordinateSpaceDevice
	.comm	_WineCoordinateSpaceGdiDevice,4,2 ## @WineCoordinateSpaceGdiDevice
	.no_dead_strip	_get_graphics_bounds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_graphics_bounds
_get_graphics_bounds:                   ; @get_graphics_bounds
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	bl	_get_graphics_device_bounds
	mov	x20, x0
Lloh3:
	adrp	x8, _Ok@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Ok@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x21]
	cbz	x8, LBB0_3
; %bb.2:
	ldp	x8, x9, [x19]
	stp	x8, x9, [sp, #8]
	ldp	x10, x11, [x19, #16]
	add	x10, x10, x8
	add	x11, x11, x9
	stp	x10, x9, [sp, #24]
	stp	x10, x11, [sp, #56]
	stp	x8, x11, [sp, #40]
Lloh6:
	adrp	x8, _CoordinateSpaceDevice@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CoordinateSpaceDevice@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _WineCoordinateSpaceGdiDevice@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WineCoordinateSpaceGdiDevice@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x21
	mov	w4, #4
	bl	_gdip_transform_points
	ldp	x8, x9, [sp, #8]
	ldp	x10, x11, [sp, #24]
	cmp	x10, x8
	csel	x12, x10, x8, lt
	csel	x8, x10, x8, gt
	cmp	x11, x9
	csel	x10, x11, x9, lt
	csel	x9, x11, x9, gt
	ldp	x11, x13, [sp, #40]
	cmp	x11, x12
	csel	x12, x11, x12, lt
	cmp	x13, x10
	csel	x10, x13, x10, lt
	cmp	x11, x8
	csel	x8, x11, x8, gt
	cmp	x13, x9
	csel	x9, x13, x9, gt
	ldp	x11, x13, [sp, #56]
	cmp	x11, x12
	csel	x12, x11, x12, lt
	cmp	x13, x10
	csel	x10, x13, x10, lt
	cmp	x11, x8
	csel	x8, x11, x8, gt
	cmp	x13, x9
	csel	x9, x13, x9, gt
	stp	x12, x10, [x19]
	sub	x8, x8, x12
	sub	x9, x9, x10
	stp	x8, x9, [x19, #16]
LBB0_3:
	ldur	x8, [x29, #-40]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_Ok,8,3                         ; @Ok
	.comm	_CoordinateSpaceDevice,4,2      ; @CoordinateSpaceDevice
	.comm	_WineCoordinateSpaceGdiDevice,4,2 ; @WineCoordinateSpaceGdiDevice
	.no_dead_strip	_get_graphics_bounds
.subsections_via_symbols
