	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function prepare_dc
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.quad	0x3ff0000000000000              ## double 1
LCPI0_2:
	.space	16
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x4000000000000000              ## double 2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_prepare_dc:                            ## @prepare_dc
	.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	$72, %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, %rbx
	movq	%rsp, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_DASHLEN@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movl	12(%rbx), %edi
	callq	_SaveDC
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	12(%rbx), %edi
	callq	_EndPath
	movq	(%r14), %rax
	movq	_UnitPixel@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	jne	LBB0_2
## %bb.1:
	movl	8(%r14), %ebx
	jmp	LBB0_5
LBB0_2:
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1.0E+0,1.0E+0]
	movaps	%xmm0, -64(%rbp)
	leaq	20(%rbx), %rdi
	leaq	-80(%rbp), %rsi
	movl	$2, %edx
	callq	_GdipTransformMatrixPoints
	movsd	-64(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movsd	-56(%rbp), %xmm1                ## xmm1 = mem[0],zero
	subsd	-80(%rbp), %xmm0
	subsd	-72(%rbp), %xmm1
	mulsd	%xmm1, %xmm1
	mulsd	%xmm0, %xmm0
	addsd	%xmm1, %xmm0
	callq	_sqrt
	movl	%eax, %r15d
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_sqrt
	movl	%eax, %ecx
	movl	%r15d, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r15d
	movl	8(%r14), %edi
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rsi
	movq	_UnitWorld@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_4
## %bb.3:
	movq	(%rbx), %rsi
LBB0_4:
	movl	16(%rbx), %edx
	callq	_units_to_pixels
	movl	%eax, %r14d
	imull	%r15d, %r14d
	imull	8(%rbx), %r14d
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1.0E+0,1.0E+0]
	movaps	%xmm0, -64(%rbp)
	movq	_WineCoordinateSpaceGdiDevice@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CoordinateSpaceDevice@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-80(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$2, %r8d
	callq	_gdip_transform_points
	movsd	-64(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movsd	-56(%rbp), %xmm1                ## xmm1 = mem[0],zero
	subsd	-80(%rbp), %xmm0
	subsd	-72(%rbp), %xmm1
	mulsd	%xmm1, %xmm1
	mulsd	%xmm0, %xmm0
	addsd	%xmm1, %xmm0
	callq	_sqrt
	movl	%eax, %ebx
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_sqrt
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %ebx
	imull	%r14d, %ebx
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	_MAX_DASHLEN@GOTPCREL(%rip), %r15
LBB0_5:
	movq	16(%r14), %rax
	movq	_DashStyleCustom@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.6:
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movl	40(%r14), %edi
	movl	(%r15), %esi
	callq	_min
	movq	%rax, %r15
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	testq	%r15, %r15
	je	LBB0_9
## %bb.7:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rax
	movl	(%rax,%r12,4), %edi
	imull	%ebx, %edi
	callq	_gdip_round
	movl	%eax, (%r13,%r12,4)
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TRACE
	incq	%r12
	cmpq	%r12, %r15
	jne	LBB0_8
LBB0_9:
	movl	32(%r14), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	36(%r14), %edi
	leaq	-84(%rbp), %rsi
	callq	_create_gdi_logbrush
	movl	32(%r14), %r12d
	movl	%ebx, %edi
	callq	_gdip_round
	movl	%r12d, %edi
	movl	%eax, %esi
	leaq	-84(%rbp), %rdx
	movq	%r15, %rcx
	movq	%r13, %r8
	callq	_ExtCreatePen
	movl	%eax, %ebx
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_10:
	movl	36(%r14), %edi
	movq	%r14, %r15
	leaq	-84(%rbp), %r14
	movq	%r14, %rsi
	callq	_create_gdi_logbrush
	movl	32(%r15), %r15d
	movl	%ebx, %edi
	callq	_gdip_round
	movl	%r15d, %edi
	movl	%eax, %esi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ExtCreatePen
	movl	%eax, %ebx
LBB0_11:
	leaq	-84(%rbp), %rdi
	callq	_free_gdi_logbrush
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	12(%rax), %edi
	movl	%ebx, %esi
	callq	_SelectObject
	movq	%r12, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_DASHLEN,4,2                ## @MAX_DASHLEN
	.comm	_UnitPixel,8,3                  ## @UnitPixel
	.comm	_UnitWorld,8,3                  ## @UnitWorld
	.comm	_WineCoordinateSpaceGdiDevice,4,2 ## @WineCoordinateSpaceGdiDevice
	.comm	_CoordinateSpaceDevice,4,2      ## @CoordinateSpaceDevice
	.comm	_DashStyleCustom,8,3            ## @DashStyleCustom
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dashes are: "

L_.str.1:                               ## @.str.1
	.asciz	"%d, "

L_.str.2:                               ## @.str.2
	.asciz	"\n and the pen style is %x\n"

	.no_dead_strip	_prepare_dc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prepare_dc
_prepare_dc:                            ; @prepare_dc
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #64
	mov	x21, x1
	mov	x19, x0
	mov	x26, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x24, _MAX_DASHLEN@GOTPAGE
Lloh4:
	ldr	x24, [x24, _MAX_DASHLEN@GOTPAGEOFF]
	ldr	w8, [x24]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	w0, [x0, #12]
	bl	_SaveDC
	mov	x20, x0
	ldr	w0, [x19, #12]
	bl	_EndPath
	ldr	x8, [x21]
Lloh7:
	adrp	x9, _UnitPixel@GOTPAGE
Lloh8:
	ldr	x9, [x9, _UnitPixel@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w23, [x21, #8]
	b	LBB0_5
LBB0_2:
	stp	xzr, xzr, [x29, #-120]
	fmov.2d	v0, #1.00000000
	stur	q0, [x29, #-144]                ; 16-byte Folded Spill
	stur	q0, [x29, #-104]
	add	x0, x19, #20
	sub	x1, x29, #120
	mov	w2, #2
	bl	_GdipTransformMatrixPoints
	ldp	d0, d1, [x29, #-104]
	ldp	d2, d3, [x29, #-120]
	fsub	d0, d0, d2
	fsub	d1, d1, d3
	fmul	d1, d1, d1
	fmadd	d0, d0, d0, d1
	bl	_sqrt
	mov	x23, x0
	fmov	d0, #2.00000000
	bl	_sqrt
	sdiv	w23, w23, w0
	ldr	w0, [x21, #8]
	ldr	x1, [x21]
Lloh10:
	adrp	x8, _UnitWorld@GOTPAGE
Lloh11:
	ldr	x8, [x8, _UnitWorld@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_4
; %bb.3:
	ldr	x1, [x19]
LBB0_4:
	ldr	w2, [x19, #16]
	bl	_units_to_pixels
	mul	w8, w0, w23
	ldr	w9, [x19, #8]
	mul	w25, w8, w9
	stp	xzr, xzr, [x29, #-120]
	ldur	q0, [x29, #-144]                ; 16-byte Folded Reload
	stur	q0, [x29, #-104]
Lloh13:
	adrp	x8, _WineCoordinateSpaceGdiDevice@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WineCoordinateSpaceGdiDevice@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _CoordinateSpaceDevice@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CoordinateSpaceDevice@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	sub	x3, x29, #120
	mov	x0, x19
	mov	w4, #2
	bl	_gdip_transform_points
	ldp	d0, d1, [x29, #-104]
	ldp	d2, d3, [x29, #-120]
	fsub	d0, d0, d2
	fsub	d1, d1, d3
	fmul	d1, d1, d1
	fmadd	d0, d0, d0, d1
	bl	_sqrt
	mov	x23, x0
	fmov	d0, #2.00000000
	bl	_sqrt
	sdiv	w8, w23, w0
	mul	w23, w25, w8
LBB0_5:
	ldr	x8, [x21, #16]
Lloh19:
	adrp	x9, _DashStyleCustom@GOTPAGE
Lloh20:
	ldr	x9, [x9, _DashStyleCustom@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.6:
	ldr	w0, [x21, #40]
	ldr	w1, [x24]
	bl	_min
	mov	x24, x0
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	cbz	x24, LBB0_9
; %bb.7:
	mov	x27, #0
Lloh24:
	adrp	x25, l_.str.1@PAGE
Lloh25:
	add	x25, x25, l_.str.1@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #24]
	lsl	x28, x27, #2
	ldr	w8, [x8, x28]
	mul	w0, w8, w23
	bl	_gdip_round
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x22, x28]
	str	x0, [sp, #-16]!
	mov	x0, x25
	bl	_TRACE
	add	sp, sp, #16
	add	x27, x27, #1
	cmp	x24, x27
	b.ne	LBB0_8
LBB0_9:
	ldr	w8, [x21, #32]
	str	x8, [sp, #-16]!
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
	add	sp, sp, #16
	ldr	w0, [x21, #36]
	sub	x1, x29, #124
	bl	_create_gdi_logbrush
	ldr	w21, [x21, #32]
	mov	x0, x23
	bl	_gdip_round
	mov	x1, x0
	sub	x2, x29, #124
	mov	x0, x21
	mov	x3, x24
	mov	x4, x22
	b	LBB0_11
LBB0_10:
	ldr	w0, [x21, #36]
	sub	x1, x29, #124
	bl	_create_gdi_logbrush
	ldr	w21, [x21, #32]
	mov	x0, x23
	bl	_gdip_round
	mov	x1, x0
	sub	x2, x29, #124
	mov	x0, x21
	mov	x3, #0
	mov	x4, #0
LBB0_11:
	bl	_ExtCreatePen
	mov	x21, x0
	sub	x0, x29, #124
	bl	_free_gdi_logbrush
	ldr	w0, [x19, #12]
	mov	x1, x21
	bl	_SelectObject
	mov	sp, x26
	ldur	x8, [x29, #-88]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x20
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_DASHLEN,4,2                ; @MAX_DASHLEN
	.comm	_UnitPixel,8,3                  ; @UnitPixel
	.comm	_UnitWorld,8,3                  ; @UnitWorld
	.comm	_WineCoordinateSpaceGdiDevice,4,2 ; @WineCoordinateSpaceGdiDevice
	.comm	_CoordinateSpaceDevice,4,2      ; @CoordinateSpaceDevice
	.comm	_DashStyleCustom,8,3            ; @DashStyleCustom
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dashes are: "

l_.str.1:                               ; @.str.1
	.asciz	"%d, "

l_.str.2:                               ; @.str.2
	.asciz	"\n and the pen style is %x\n"

	.no_dead_strip	_prepare_dc
.subsections_via_symbols
