	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_clip_hrgn
_get_clip_hrgn:                         ## @get_clip_hrgn
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_WineCoordinateSpaceGdiDevice@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CoordinateSpaceDevice@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rcx
	callq	_get_graphics_transform
	movq	%rax, %rbx
	movq	_Ok@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	cmpq	%rax, %rbx
	je	LBB0_1
## %bb.2:
	cmpq	%rax, %rbx
	je	LBB0_3
LBB0_4:
	cmpq	%rax, %rbx
	je	LBB0_5
LBB0_9:
	cmpq	%rax, %rbx
	je	LBB0_10
	jmp	LBB0_15
LBB0_1:
	leaq	-36(%rbp), %rdi
	leaq	-52(%rbp), %rsi
	callq	_GdipIsMatrixIdentity
	movq	%rax, %rbx
	movq	(%r12), %rax
	cmpq	%rax, %rbx
	jne	LBB0_4
LBB0_3:
	movl	8(%r15), %edi
	leaq	-48(%rbp), %rsi
	callq	_GdipCloneRegion
	movq	%rax, %rbx
	movq	(%r12), %rax
	cmpq	%rax, %rbx
	jne	LBB0_9
LBB0_5:
	cmpl	$0, -52(%rbp)
	jne	LBB0_7
## %bb.6:
	movq	-48(%rbp), %rdi
	leaq	-36(%rbp), %rsi
	callq	_GdipTransformRegion
	movq	%rax, %rbx
	cmpq	(%r12), %rax
	jne	LBB0_8
LBB0_7:
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_GdipGetRegionHRgn
	movq	%rax, %rbx
LBB0_8:
	movq	-48(%rbp), %rdi
	callq	_GdipDeleteRegion
	movq	(%r12), %rax
	cmpq	%rax, %rbx
	jne	LBB0_15
LBB0_10:
	movq	(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.11:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	movq	_RGN_AND@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rdi, %rsi
	jmp	LBB0_14
LBB0_13:
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_CreateRectRgn
	movq	%rax, (%r14)
	movq	(%r15), %rdx
	movq	_RGN_COPY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rax, %rdi
	movq	%rdx, %rsi
LBB0_14:
	callq	_CombineRgn
LBB0_15:
	movq	%rbx, %rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WineCoordinateSpaceGdiDevice,4,2 ## @WineCoordinateSpaceGdiDevice
	.comm	_CoordinateSpaceDevice,4,2      ## @CoordinateSpaceDevice
	.comm	_Ok,8,3                         ## @Ok
	.comm	_RGN_AND,4,2                    ## @RGN_AND
	.comm	_RGN_COPY,4,2                   ## @RGN_COPY
	.no_dead_strip	_get_clip_hrgn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_clip_hrgn
_get_clip_hrgn:                         ; @get_clip_hrgn
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _WineCoordinateSpaceGdiDevice@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WineCoordinateSpaceGdiDevice@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _CoordinateSpaceDevice@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CoordinateSpaceDevice@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #4
	bl	_get_graphics_transform
Lloh6:
	adrp	x22, _Ok@GOTPAGE
Lloh7:
	ldr	x22, [x22, _Ok@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	add	x0, sp, #4
	mov	x1, sp
	bl	_GdipIsMatrixIdentity
	mov	x21, x0
	ldr	x8, [x22]
	cmp	x21, x8
	b.eq	LBB0_3
	b	LBB0_4
LBB0_2:
	mov	x21, x0
	cmp	x21, x8
	b.ne	LBB0_4
LBB0_3:
	ldr	w0, [x19, #8]
	add	x1, sp, #8
	bl	_GdipCloneRegion
	mov	x21, x0
	ldr	x8, [x22]
LBB0_4:
	cmp	x21, x8
	b.eq	LBB0_6
; %bb.5:
	cmp	x21, x8
	b.eq	LBB0_10
	b	LBB0_15
LBB0_6:
	ldr	w8, [sp]
	cbnz	w8, LBB0_8
; %bb.7:
	ldr	x0, [sp, #8]
	add	x1, sp, #4
	bl	_GdipTransformRegion
	mov	x21, x0
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_9
LBB0_8:
	ldr	x0, [sp, #8]
	mov	x1, #0
	mov	x2, x20
	bl	_GdipGetRegionHRgn
	mov	x21, x0
LBB0_9:
	ldr	x0, [sp, #8]
	bl	_GdipDeleteRegion
	ldr	x8, [x22]
	cmp	x21, x8
	b.ne	LBB0_15
LBB0_10:
	ldr	x2, [x19]
	cbz	x2, LBB0_15
; %bb.11:
	ldr	x0, [x20]
	cbz	x0, LBB0_13
; %bb.12:
Lloh8:
	adrp	x8, _RGN_AND@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RGN_AND@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x1, x0
	b	LBB0_14
LBB0_13:
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_CreateRectRgn
	str	x0, [x20]
	ldr	x1, [x19]
Lloh11:
	adrp	x8, _RGN_COPY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RGN_COPY@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x2, x1
LBB0_14:
	bl	_CombineRgn
LBB0_15:
	mov	x0, x21
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_WineCoordinateSpaceGdiDevice,4,2 ; @WineCoordinateSpaceGdiDevice
	.comm	_CoordinateSpaceDevice,4,2      ; @CoordinateSpaceDevice
	.comm	_Ok,8,3                         ; @Ok
	.comm	_RGN_AND,4,2                    ; @RGN_AND
	.comm	_RGN_COPY,4,2                   ; @RGN_COPY
	.no_dead_strip	_get_clip_hrgn
.subsections_via_symbols
