	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gdRotatedImageSize
_gdRotatedImageSize:                    ## @gdRotatedImageSize
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	-80(%rbp), %r15
	movq	%r15, %rdi
	callq	_gdAffineRotate
	xorps	%xmm0, %xmm0
	movups	%xmm0, -96(%rbp)
	movl	%ebx, %edi
	callq	_gdImageSX
	movl	%eax, -100(%rbp)
	movl	%ebx, %edi
	callq	_gdImageSY
	movl	%eax, -104(%rbp)
	leaq	-104(%rbp), %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_gdTransformAffineBoundingBox
	movq	%rax, %rcx
	movq	_GD_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	je	LBB0_2
## %bb.1:
	movq	_GD_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GD_TRUE,8,3                    ## @GD_TRUE
	.comm	_GD_FALSE,4,2                   ## @GD_FALSE
	.no_dead_strip	_gdRotatedImageSize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gdRotatedImageSize
_gdRotatedImageSize:                    ; @gdRotatedImageSize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	add	x0, sp, #24
	bl	_gdAffineRotate
	stp	xzr, xzr, [sp, #8]
	mov	x0, x20
	bl	_gdImageSX
	str	w0, [sp, #4]
	mov	x0, x20
	bl	_gdImageSY
	str	w0, [sp]
	mov	x0, sp
	add	x1, sp, #24
	mov	x2, x19
	bl	_gdTransformAffineBoundingBox
Lloh3:
	adrp	x8, _GD_TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GD_TRUE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _GD_FALSE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GD_FALSE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	x0, x8
	csel	w0, w8, w9, eq
	ldur	x8, [x29, #-24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GD_TRUE,8,3                    ; @GD_TRUE
	.comm	_GD_FALSE,4,2                   ; @GD_FALSE
	.no_dead_strip	_gdRotatedImageSize
.subsections_via_symbols
