	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function gdImageRotateInterpolated
LCPI0_0:
	.long	0x42c80000                      ## float 100
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gdImageRotateInterpolated
	.p2align	4, 0x90
_gdImageRotateInterpolated:             ## @gdImageRotateInterpolated
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movaps	%xmm0, %xmm1
	movq	%rdi, %r15
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm1, -28(%rbp)                ## 4-byte Spill
	mulss	%xmm1, %xmm0
	callq	_floorf
	movl	%eax, %edi
	movl	$36000, %esi                    ## imm = 0x8CA0
	callq	_fmod
	testl	%r14d, %r14d
	js	LBB0_6
## %bb.1:
	movl	%eax, %ebx
	cmpq	$0, (%r15)
	je	LBB0_8
## %bb.2:
	testl	%ebx, %ebx
	js	LBB0_11
LBB0_3:
	cmpl	$17999, %ebx                    ## imm = 0x464F
	jg	LBB0_20
## %bb.4:
	testl	%ebx, %ebx
	je	LBB0_25
## %bb.5:
	cmpl	$9000, %ebx                     ## imm = 0x2328
	je	LBB0_23
	jmp	LBB0_14
LBB0_8:
	movq	_gdMaxColors@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jle	LBB0_10
## %bb.9:
	movq	56(%r15), %rax
	movl	%r14d, %ecx
	movl	(%rax,%rcx,4), %edi
	movq	48(%r15), %rax
	movl	(%rax,%rcx,4), %esi
	movq	32(%r15), %rax
	movq	40(%r15), %rdx
	movl	(%rdx,%rcx,4), %edx
	movl	(%rax,%rcx,4), %ecx
	callq	_gdTrueColorAlpha
	movl	%eax, %r14d
LBB0_10:
	movq	%r15, %rdi
	callq	_gdImagePaletteToTrueColor
	testl	%ebx, %ebx
	jns	LBB0_3
LBB0_11:
	cmpl	$-27000, %ebx                   ## imm = 0x9688
	je	LBB0_23
## %bb.12:
	cmpl	$-18000, %ebx                   ## imm = 0xB9B0
	je	LBB0_24
## %bb.13:
	cmpl	$-9000, %ebx                    ## imm = 0xDCD8
	je	LBB0_22
LBB0_14:
	movl	12(%r15), %eax
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	LBB0_7
## %bb.15:
	movq	_GD_METHOD_COUNT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_7
## %bb.16:
	movq	%r15, %rdi
	cmpl	$130, %eax
	je	LBB0_28
## %bb.17:
	cmpl	$129, %eax
	je	LBB0_29
## %bb.18:
	cmpl	$128, %eax
	jne	LBB0_30
## %bb.19:
	movss	-28(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gdImageRotateNearestNeighbour  ## TAILCALL
LBB0_20:
	cmpl	$18000, %ebx                    ## imm = 0x4650
	je	LBB0_24
## %bb.21:
	cmpl	$27000, %ebx                    ## imm = 0x6978
	jne	LBB0_14
LBB0_22:
	movq	%r15, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gdImageRotate270               ## TAILCALL
LBB0_23:
	movq	%r15, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gdImageRotate90                ## TAILCALL
LBB0_24:
	movq	%r15, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gdImageRotate180               ## TAILCALL
LBB0_25:
	movl	16(%r15), %esi
	movl	20(%r15), %edi
	callq	_gdImageCreateTrueColor
	testq	%rax, %rax
	je	LBB0_6
## %bb.26:
	movq	%rax, %rbx
	movl	28(%r15), %eax
	movl	%eax, 28(%rbx)
	movl	$1, 8(%rbx)
	movq	_gdEffectReplace@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	16(%r15), %eax
	movl	20(%r15), %r10d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r10
	callq	_gdImageCopy
	addq	$16, %rsp
	jmp	LBB0_7
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movss	-28(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gdImageRotateBicubicFixed      ## TAILCALL
LBB0_29:
	movss	-28(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gdImageRotateBilinear          ## TAILCALL
LBB0_30:
	movss	-28(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gdImageRotateGeneric           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_gdMaxColors,4,2                ## @gdMaxColors
	.comm	_gdEffectReplace,4,2            ## @gdEffectReplace
	.comm	_GD_METHOD_COUNT,4,2            ## @GD_METHOD_COUNT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdImageRotateInterpolated      ; -- Begin function gdImageRotateInterpolated
	.p2align	2
_gdImageRotateInterpolated:             ; @gdImageRotateInterpolated
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.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
	.cfi_offset b8, -56
	.cfi_offset b9, -64
	mov	x20, x1
	fmov	s8, s0
	mov	x19, x0
	mov	w8, #1120403456
	fmov	s0, w8
	fmul	s0, s8, s0
	bl	_floorf
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #36000
	bl	_fmod
	tbnz	w20, #31, LBB0_6
; %bb.1:
	mov	x21, x0
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.2:
	tbnz	w21, #31, LBB0_11
LBB0_3:
	mov	w8, #17999
	cmp	w21, w8
	b.gt	LBB0_15
; %bb.4:
	cbz	w21, LBB0_25
; %bb.5:
	mov	w8, #9000
	cmp	w21, w8
	b.eq	LBB0_23
	b	LBB0_17
LBB0_6:
	mov	x21, #0
LBB0_7:
	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
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh0:
	adrp	x8, _gdMaxColors@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gdMaxColors@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.le	LBB0_10
; %bb.9:
	mov	w8, w20
	lsl	x8, x8, #2
	ldp	x10, x9, [x19, #48]
	ldr	w0, [x9, x8]
	ldr	w1, [x10, x8]
	ldp	x10, x9, [x19, #32]
	ldr	w2, [x9, x8]
	ldr	w3, [x10, x8]
	bl	_gdTrueColorAlpha
	mov	x20, x0
LBB0_10:
	mov	x0, x19
	bl	_gdImagePaletteToTrueColor
	tbz	w21, #31, LBB0_3
LBB0_11:
	mov	w8, #-27000
	cmp	w21, w8
	b.eq	LBB0_23
; %bb.12:
	mov	w8, #-18000
	cmp	w21, w8
	b.eq	LBB0_24
; %bb.13:
	mov	w8, #-9000
	cmp	w21, w8
	b.ne	LBB0_17
LBB0_14:
	mov	x0, x19
	mov	w1, #0
	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
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	b	_gdImageRotate270
LBB0_15:
	mov	w8, #18000
	cmp	w21, w8
	b.eq	LBB0_24
; %bb.16:
	mov	w8, #27000
	cmp	w21, w8
	b.eq	LBB0_14
LBB0_17:
	mov	x21, #0
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.18:
Lloh3:
	adrp	x9, _GD_METHOD_COUNT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GD_METHOD_COUNT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_7
; %bb.19:
	mov	x0, x19
	fmov	s0, s8
	mov	x1, x20
	cmp	w8, #130
	b.eq	LBB0_27
; %bb.20:
	cmp	w8, #129
	b.eq	LBB0_28
; %bb.21:
	cmp	w8, #128
	b.ne	LBB0_29
; %bb.22:
	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
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	b	_gdImageRotateNearestNeighbour
LBB0_23:
	mov	x0, x19
	mov	w1, #0
	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
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	b	_gdImageRotate90
LBB0_24:
	mov	x0, x19
	mov	w1, #0
	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
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	b	_gdImageRotate180
LBB0_25:
	ldp	w1, w0, [x19, #16]
	bl	_gdImageCreateTrueColor
	mov	x21, x0
	cbz	x0, LBB0_7
; %bb.26:
	ldr	w8, [x19, #28]
	mov	w9, #1
Lloh6:
	adrp	x10, _gdEffectReplace@GOTPAGE
Lloh7:
	ldr	x10, [x10, _gdEffectReplace@GOTPAGEOFF]
	str	w9, [x21, #8]
Lloh8:
	ldr	w9, [x10]
	stp	w9, w8, [x21, #24]
	ldp	w7, w6, [x19, #16]
	mov	x0, x21
	mov	x1, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_gdImageCopy
	b	LBB0_7
LBB0_27:
	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
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	b	_gdImageRotateBicubicFixed
LBB0_28:
	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
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	b	_gdImageRotateBilinear
LBB0_29:
	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
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	b	_gdImageRotateGeneric
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_gdMaxColors,4,2                ; @gdMaxColors
	.comm	_gdEffectReplace,4,2            ; @gdEffectReplace
	.comm	_GD_METHOD_COUNT,4,2            ; @GD_METHOD_COUNT
.subsections_via_symbols
