	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_visible_clip_region
_get_visible_clip_region:               ## @get_visible_clip_region
	.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	%rsi, %r14
	movq	%rdi, %r15
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	movq	(%r15), %rax
	movq	_ImageTypeMetafile@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.9:
	movq	8(%r15), %rsi
	movq	_CombineModeReplace@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_GdipCombineRegionRegion        ## TAILCALL
LBB0_2:
	leaq	-52(%rbp), %rsi
	movq	%r15, %rdi
	callq	_get_graphics_bounds
	movl	%eax, %ebx
	movq	_Ok@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_8
## %bb.3:
	leaq	-48(%rbp), %rdi
	callq	_GdipCreateRegion
	movl	%eax, %ebx
	cmpl	(%r12), %eax
	jne	LBB0_8
## %bb.4:
	movq	-48(%rbp), %rdi
	movq	_CombineModeReplace@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	-52(%rbp), %rsi
	callq	_GdipCombineRegionRect
	movl	%eax, %ebx
	cmpl	(%r12), %eax
	jne	LBB0_7
## %bb.5:
	movq	-48(%rbp), %rdi
	movq	8(%r15), %rsi
	movq	_CombineModeIntersect@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_GdipCombineRegionRegion
	movl	%eax, %ebx
	cmpl	(%r12), %eax
	jne	LBB0_7
## %bb.6:
	movq	-48(%rbp), %rsi
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_GdipCombineRegionRegion
	movl	%eax, %ebx
LBB0_7:
	movq	-48(%rbp), %rdi
	callq	_GdipDeleteRegion
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ImageTypeMetafile,8,3          ## @ImageTypeMetafile
	.comm	_CombineModeReplace,4,2         ## @CombineModeReplace
	.comm	_Ok,4,2                         ## @Ok
	.comm	_CombineModeIntersect,4,2       ## @CombineModeIntersect
	.no_dead_strip	_get_visible_clip_region
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_visible_clip_region
_get_visible_clip_region:               ; @get_visible_clip_region
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _ImageTypeMetafile@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ImageTypeMetafile@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	x1, [x20, #8]
Lloh3:
	adrp	x8, _CombineModeReplace@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CombineModeReplace@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_GdipCombineRegionRegion
LBB0_3:
	add	x1, sp, #12
	mov	x0, x20
	bl	_get_graphics_bounds
	mov	x21, x0
Lloh6:
	adrp	x22, _Ok@GOTPAGE
Lloh7:
	ldr	x22, [x22, _Ok@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.4:
	mov	x0, sp
	bl	_GdipCreateRegion
	mov	x21, x0
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.5:
	ldr	x0, [sp]
Lloh8:
	adrp	x23, _CombineModeReplace@GOTPAGE
Lloh9:
	ldr	x23, [x23, _CombineModeReplace@GOTPAGEOFF]
	ldr	w2, [x23]
	add	x1, sp, #12
	bl	_GdipCombineRegionRect
	mov	x21, x0
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.6:
	ldr	x0, [sp]
	ldr	x1, [x20, #8]
Lloh10:
	adrp	x8, _CombineModeIntersect@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CombineModeIntersect@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	bl	_GdipCombineRegionRegion
	mov	x21, x0
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.7:
	ldr	x1, [sp]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_GdipCombineRegionRegion
	mov	x21, x0
LBB0_8:
	ldr	x0, [sp]
	bl	_GdipDeleteRegion
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ImageTypeMetafile,8,3          ; @ImageTypeMetafile
	.comm	_CombineModeReplace,4,2         ; @CombineModeReplace
	.comm	_Ok,4,2                         ; @Ok
	.comm	_CombineModeIntersect,4,2       ; @CombineModeIntersect
	.no_dead_strip	_get_visible_clip_region
.subsections_via_symbols
