	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function gdImageRotateGeneric
LCPI0_0:
	.long	0x3f000000                      ## float 0.5
LCPI0_1:
	.long	0x43340000                      ## float 180
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gdImageRotateGeneric
	.p2align	4, 0x90
_gdImageRotateGeneric:                  ## @gdImageRotateGeneric
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movss	%xmm0, -64(%rbp)                ## 4-byte Spill
	movq	%rdi, %r14
	movq	_M_PI@GOTPCREL(%rip), %rax
	xorps	%xmm0, %xmm0
	cvtsi2ssq	(%rax), %xmm0
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	callq	_gdImageSX
	movl	%eax, %r13d
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_gdImageSY
	movl	%eax, %r15d
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	callq	_gd_ftofx
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%r15d, %edi
	shrl	$31, %edi
	addl	%r15d, %edi
	sarl	%edi
	callq	_gd_itofx
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	%r13d, %edi
	shrl	$31, %edi
	addl	%r13d, %edi
	sarl	%edi
	callq	_gd_itofx
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movss	-64(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	divss	LCPI0_1(%rip), %xmm0
	mulss	-48(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	callq	_cos
	callq	_gd_ftofx
	movq	%rax, %r14
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_sin
	callq	_gd_ftofx
	movq	%rax, %r12
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	jle	LBB0_6
## %bb.1:
	testq	%r12, %r12
	jle	LBB0_6
## %bb.2:
	cmpq	%r12, %r14
	jbe	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	movq	%r14, %rsi
	jmp	LBB0_5
LBB0_4:
	movq	%r14, %rdi
	movq	%r12, %rsi
LBB0_5:
	callq	_gd_divfx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
LBB0_6:
	testl	%ebx, %ebx
	js	LBB0_24
## %bb.7:
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	leaq	-120(%rbp), %rsi
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movss	-64(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_gdRotatedImageSize
	movl	-120(%rbp), %edi
	movl	-116(%rbp), %r13d
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r13d, %esi
	callq	_gdImageCreateTrueColor
	testq	%rax, %rax
	je	LBB0_24
## %bb.8:
	movl	$1, (%rax)
	testq	%r13, %r13
	je	LBB0_25
## %bb.9:
	movq	%r12, -192(%rbp)                ## 8-byte Spill
	movq	%r14, -200(%rbp)                ## 8-byte Spill
	movl	%r13d, %ecx
	shrl	$31, %ecx
	addl	%r13d, %ecx
	sarl	%ecx
	negl	%ecx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	negl	%edx
	movq	%rdx, -176(%rbp)                ## 8-byte Spill
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, -112(%rbp)                ## 8-byte Folded Spill
	addq	%rcx, -104(%rbp)                ## 8-byte Folded Spill
	movslq	%r15d, %rcx
	movq	%rcx, -168(%rbp)                ## 8-byte Spill
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movslq	%edx, %rcx
	movq	%rcx, -160(%rbp)                ## 8-byte Spill
	decl	%r15d
	movslq	%r15d, %rcx
	movq	%rcx, -152(%rbp)                ## 8-byte Spill
	decl	%edx
	movslq	%edx, %rcx
	movq	%rcx, -144(%rbp)                ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	movq	%r13, -136(%rbp)                ## 8-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movq	-136(%rbp), %r13                ## 8-byte Reload
	movq	%rdx, %rcx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	cmpq	%r13, %rdx
	je	LBB0_25
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	addl	%edx, %ecx
	movl	%ecx, -80(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_15 Depth=2
	movl	%r12d, %edi
	callq	_gdTrueColorGetAlpha
	movl	%eax, %ebx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_gd_fxtof
	movl	%eax, %esi
	shll	$7, %esi
	subl	%eax, %esi
	addl	%ebx, %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	shll	$24, %esi
	orl	%r12d, %esi
	callq	__color_blend
	movl	%eax, %r12d
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=2
	movq	-184(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	movl	%r12d, (%rcx,%r14,4)
	incq	%r14
	cmpq	%r14, -88(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_10
LBB0_15:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-80(%rbp), %edi                 ## 4-byte Reload
	callq	_gd_itofx
	movq	%rax, %rbx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-176(%rbp), %rax                ## 8-byte Reload
	leal	(%rax,%r14), %edi
	callq	_gd_itofx
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	-192(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rsi
	callq	_gd_mulfx
	movq	%rax, %r13
	movq	%rbx, %rdi
	movq	-200(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_gd_mulfx
	addq	-112(%rbp), %r13                ## 8-byte Folded Reload
	addq	%rax, %r13
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_gd_mulfx
	movq	%rax, %rbx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_gd_mulfx
	addq	-104(%rbp), %rbx                ## 8-byte Folded Reload
	subq	%rax, %rbx
	movq	%r13, %rdi
	callq	_gd_fxtoi
	movq	%rax, %r15
	movq	%rbx, %rdi
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	callq	_gd_fxtoi
	movl	%ebx, %r12d
	testq	%rax, %rax
	jle	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	movl	%ebx, %r12d
	testq	%r15, %r15
	jle	LBB0_14
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=2
	movl	%ebx, %r12d
	cmpq	-168(%rbp), %r15                ## 8-byte Folded Reload
	jge	LBB0_14
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	%rax, %r13
	movl	%ebx, %r12d
	cmpq	-160(%rbp), %rax                ## 8-byte Folded Reload
	jge	LBB0_14
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_getPixelInterpolated
	movq	%rax, %r12
	cmpq	$2, %r13
	jb	LBB0_13
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=2
	cmpq	$2, %r15
	jb	LBB0_13
## %bb.21:                              ##   in Loop: Header=BB0_15 Depth=2
	cmpq	-152(%rbp), %r15                ## 8-byte Folded Reload
	jge	LBB0_13
## %bb.22:                              ##   in Loop: Header=BB0_15 Depth=2
	cmpq	-144(%rbp), %r13                ## 8-byte Folded Reload
	jl	LBB0_14
	jmp	LBB0_13
LBB0_24:
	xorl	%eax, %eax
LBB0_25:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_PI,8,3                       ## @M_PI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdImageRotateGeneric           ; -- Begin function gdImageRotateGeneric
	.p2align	2
_gdImageRotateGeneric:                  ; @gdImageRotateGeneric
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	d9, d8, [sp, #112]              ; 16-byte Folded Spill
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	str	w1, [sp, #100]                  ; 4-byte Folded Spill
	fmov	s8, s0
	mov	x19, x0
Lloh0:
	adrp	x8, _M_PI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_PI@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	scvtf	s9, x8
	bl	_gdImageSX
	mov	x27, x0
	str	x19, [sp, #48]                  ; 8-byte Folded Spill
	mov	x0, x19
	bl	_gdImageSY
	mov	x28, x0
	fmov	s0, #0.50000000
	bl	_gd_ftofx
	mov	x23, x0
	cmp	w28, #0
	cinc	w8, w28, lt
	asr	w0, w8, #1
	bl	_gd_itofx
	mov	x24, x0
	cmp	w27, #0
	cinc	w8, w27, lt
	asr	w0, w8, #1
	bl	_gd_itofx
	mov	x25, x0
	mov	w8, #1127481344
	fmov	s0, w8
	fdiv	s0, s8, s0
	fmul	s9, s0, s9
	fmov	s0, s9
	bl	_cos
	bl	_gd_ftofx
	mov	x21, x0
	fmov	s0, s9
	bl	_sin
	bl	_gd_ftofx
	mov	x22, x0
	cmp	x21, #1
	ccmp	x0, #1, #8, ge
	b.ge	LBB0_15
; %bb.1:
	str	xzr, [sp, #24]                  ; 8-byte Folded Spill
	ldr	w8, [sp, #100]                  ; 4-byte Folded Reload
	tbnz	w8, #31, LBB0_19
LBB0_2:
	add	x1, sp, #104
	ldr	x0, [sp, #48]                   ; 8-byte Folded Reload
	fmov	s0, s8
	bl	_gdRotatedImageSize
	ldp	w0, w19, [sp, #104]
	str	x0, [sp, #88]                   ; 8-byte Folded Spill
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x19
	bl	_gdImageCreateTrueColor
	cbz	x0, LBB0_20
; %bb.3:
	mov	w8, #1
	str	w8, [x0]
	cbz	w19, LBB0_20
; %bb.4:
	mov	x20, #0
	cmp	w19, #0
	cinc	w8, w19, lt
	neg	w8, w8, asr #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
	cmp	w8, #0
	add	x9, x23, x24
	str	x9, [sp, #80]                   ; 8-byte Folded Spill
	add	x9, x23, x25
	str	x9, [sp, #72]                   ; 8-byte Folded Spill
	sxtw	x10, w28
	sxtw	x9, w27
	stp	x9, x10, [sp, #56]              ; 16-byte Folded Spill
	cinc	w8, w8, lt
	sub	w9, w28, #1
	sxtw	x10, w9
	sub	w9, w27, #1
	sxtw	x9, w9
	stp	x9, x10, [sp, #32]              ; 16-byte Folded Spill
	neg	w24, w8, asr #1
	str	x19, [sp, #16]                  ; 8-byte Folded Spill
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #1
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	cmp	x20, x19
	b.eq	LBB0_20
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
	cbz	w8, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x19, #0
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	add	w27, w8, w20
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x28
	bl	_gdTrueColorGetAlpha
	mov	x23, x0
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_gd_fxtof
	lsl	w8, w0, #7
	sub	w8, w8, w0
	add	w8, w8, w23
	orr	w1, w28, w8, lsl #24
	ldr	w0, [sp, #100]                  ; 4-byte Folded Reload
	bl	__color_blend
	mov	x28, x0
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x25
	ldr	x8, [x25, #8]
	ldr	x8, [x8, x20, lsl #3]
	str	w28, [x8, x19, lsl #2]
	add	x19, x19, #1
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
	cmp	x8, x19
	b.eq	LBB0_5
LBB0_10:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x25, x0
	mov	x0, x27
	bl	_gd_itofx
	mov	x23, x0
	add	w0, w24, w19
	bl	_gd_itofx
	mov	x26, x0
	mov	x1, x22
	bl	_gd_mulfx
	mov	x28, x0
	mov	x0, x23
	mov	x1, x21
	bl	_gd_mulfx
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	add	x8, x8, x28
	add	x28, x8, x0
	mov	x0, x26
	mov	x1, x21
	bl	_gd_mulfx
	mov	x26, x0
	mov	x0, x23
	mov	x1, x22
	bl	_gd_mulfx
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	add	x8, x8, x26
	sub	x23, x8, x0
	mov	x0, x28
	bl	_gd_fxtoi
	mov	x26, x0
	mov	x0, x23
	bl	_gd_fxtoi
	cmp	x0, #1
	ccmp	x26, #1, #8, ge
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	ccmp	x26, x8, #0, ge
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ccmp	x0, x8, #0, lt
	ldr	w28, [sp, #100]                 ; 4-byte Folded Reload
	b.ge	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x23, x0
	ldr	x0, [sp, #48]                   ; 8-byte Folded Reload
	mov	x1, x23
	mov	x2, x26
	ldr	w3, [sp, #100]                  ; 4-byte Folded Reload
	bl	_getPixelInterpolated
	mov	x28, x0
	cmp	x23, #2
	b.lo	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	cmp	x26, #2
	b.lo	LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	cmp	x26, x8
	b.ge	LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	cmp	x23, x8
	b.lt	LBB0_9
	b	LBB0_8
LBB0_15:
	cmp	x21, x22
	b.ls	LBB0_17
; %bb.16:
	mov	x0, x22
	mov	x1, x21
	b	LBB0_18
LBB0_17:
	mov	x0, x21
	mov	x1, x22
LBB0_18:
	bl	_gd_divfx
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	ldr	w8, [sp, #100]                  ; 4-byte Folded Reload
	tbz	w8, #31, LBB0_2
LBB0_19:
	mov	x0, #0
LBB0_20:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #112]              ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_M_PI,8,3                       ; @M_PI
.subsections_via_symbols
