	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function testDrawing
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_testDrawing
	.p2align	4, 0x90
_testDrawing:                           ## @testDrawing
	.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	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movl	%edi, %ebx
	callq	_gdImageSX
	mulsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	cvttsd2si	%xmm0, %r13d
	movl	%ebx, %edi
	callq	_gdImageSY
	mulsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	cvttsd2si	%xmm0, %esi
	movl	%r13d, %edi
	callq	_gdImageCreateTrueColor
	movl	%eax, %r13d
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_gdImageAlphaBlending
	movl	%ebx, %edi
	callq	_gdImageSX
	mulsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	mulsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %r14d
	movl	%ebx, %edi
	callq	_gdImageSY
	mulsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	mulsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %r12d
	movl	$192, %edi
	movl	$192, %esi
	movl	$255, %edx
	callq	_gdTrueColor
	movl	%r13d, %edi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_gdImageFill
	movl	%ebx, %edi
	callq	_gdImageSX
	mulsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	cvttsd2si	%xmm0, %r14d
	movl	%ebx, %edi
	callq	_gdImageSY
	mulsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	cvttsd2si	%xmm0, %r12d
	movl	%ebx, %edi
	callq	_gdImageSX
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movl	%ebx, %edi
	callq	_gdImageSY
	movapd	%xmm0, %xmm1
	movl	%r13d, %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	pushq	%r12
	pushq	%r14
	callq	_gdImageCopyResampled
	addq	$16, %rsp
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_fopen
	movq	%rax, %rbx
	xorl	%esi, %esi
	testl	%r15d, %r15d
	sete	%sil
	movl	%r13d, %edi
	callq	_gdImageSaveAlpha
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_2
## %bb.1:
	movl	%r13d, %edi
	movl	$1, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_gdImageTrueColorToPalette
LBB0_2:
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_gdImagePng
	movq	%rbx, %rdi
	callq	_fclose
	movl	%r13d, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gdImageDestroy                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wb"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_testDrawing                    ; -- Begin function testDrawing
	.p2align	2
_testDrawing:                           ; @testDrawing
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -88
	.cfi_offset b9, -96
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	fmov	d8, d0
	mov	x23, x0
	bl	_gdImageSX
	fmul	d0, d0, d8
	fcvtzs	w20, d0
	mov	x0, x23
	bl	_gdImageSY
	fmul	d0, d0, d8
	fcvtzs	w1, d0
	mov	x0, x20
	bl	_gdImageCreateTrueColor
	mov	x20, x0
	mov	x1, x21
	bl	_gdImageAlphaBlending
	mov	x0, x23
	bl	_gdImageSX
	fmul	d0, d0, d8
	fmov	d9, #0.50000000
	fmul	d0, d0, d9
	fcvtzs	w24, d0
	mov	x0, x23
	bl	_gdImageSY
	fmul	d0, d0, d8
	fmul	d0, d0, d9
	fcvtzs	w25, d0
	mov	w0, #192
	mov	w1, #192
	mov	w2, #255
	bl	_gdTrueColor
	mov	x3, x0
	mov	x0, x20
	mov	x1, x24
	mov	x2, x25
	bl	_gdImageFill
	mov	x0, x23
	bl	_gdImageSX
	fmul	d0, d0, d8
	fcvtzs	w24, d0
	mov	x0, x23
	bl	_gdImageSY
	fmul	d0, d0, d8
	fcvtzs	w25, d0
	mov	x0, x23
	bl	_gdImageSX
	fmov	d8, d0
	mov	x0, x23
	bl	_gdImageSY
	fmov	d1, d0
	mov	x0, x20
	mov	x1, x23
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	x6, x24
	mov	x7, x25
	fmov	d0, d8
	bl	_gdImageCopyResampled
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_fopen
	mov	x22, x0
	cmp	w21, #0
	cset	w1, eq
	mov	x0, x20
	bl	_gdImageSaveAlpha
	cbz	w19, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	w1, #1
	mov	w2, #256
	bl	_gdImageTrueColorToPalette
LBB0_2:
	mov	x0, x20
	mov	x1, x22
	bl	_gdImagePng
	mov	x0, x22
	bl	_fclose
	mov	x0, x20
	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	d9, d8, [sp], #96               ; 16-byte Folded Reload
	b	_gdImageDestroy
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wb"

.subsections_via_symbols
