	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdTransformAffineGetImage      ## -- Begin function gdTransformAffineGetImage
	.p2align	4, 0x90
_gdTransformAffineGetImage:             ## @gdTransformAffineGetImage
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rdx, %rdx
	jne	LBB0_2
## %bb.1:
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -144(%rbp)
	movq	%r12, %rdi
	callq	_gdImageSX
	movl	%eax, -124(%rbp)
	movq	%r12, %rdi
	callq	_gdImageSY
	movl	%eax, -128(%rbp)
	leaq	-144(%rbp), %rbx
LBB0_2:
	leaq	-120(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_gdTransformAffineBoundingBox
	movl	-104(%rbp), %esi
	movl	-100(%rbp), %edi
	callq	_gdImageCreateTrueColor
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movl	$1, (%rax)
	cmpl	$0, 4(%r12)
	jne	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_gdImagePaletteToTrueColor
LBB0_5:
	xorl	%edx, %edx
	xorl	%esi, %esi
	subq	-112(%rbp), %rsi
	movq	-120(%rbp), %rax
	subq	%rax, %rdx
	leaq	-96(%rbp), %r13
	movq	%r13, %rdi
	callq	_gdAffineTranslate
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_gdAffineConcat
	movq	(%r14), %rdi
	xorl	%esi, %esi
	callq	_gdImageAlphaBlending
	movq	(%r14), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r12, %rcx
	movq	%rbx, %r8
	movq	%r13, %r9
	callq	_gdTransformAffineCopy
	movq	_GD_TRUE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_8
## %bb.6:
	movq	(%r14), %rdi
	callq	_gdImageDestroy
LBB0_7:
	movq	_GD_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_10
## %bb.9:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GD_FALSE,4,2                   ## @GD_FALSE
	.comm	_GD_TRUE,4,2                    ## @GD_TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdTransformAffineGetImage      ; -- Begin function gdTransformAffineGetImage
	.p2align	2
_gdTransformAffineGetImage:             ; @gdTransformAffineGetImage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	cbnz	x2, LBB0_2
; %bb.1:
	stp	xzr, xzr, [sp, #8]
	mov	x0, x20
	bl	_gdImageSX
	str	w0, [sp, #28]
	mov	x0, x20
	bl	_gdImageSY
	str	w0, [sp, #24]
	add	x21, sp, #8
LBB0_2:
	add	x2, sp, #32
	mov	x0, x21
	mov	x1, x22
	bl	_gdTransformAffineBoundingBox
	ldp	w1, w0, [sp, #48]
	bl	_gdImageCreateTrueColor
	str	x0, [x19]
	cbz	x0, LBB0_7
; %bb.3:
	mov	w8, #1
	str	w8, [x0]
	ldr	w8, [x20, #4]
	cbnz	w8, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_gdImagePaletteToTrueColor
LBB0_5:
	ldp	x9, x8, [sp, #32]
	neg	x1, x8
	neg	x2, x9
	add	x0, sp, #56
	bl	_gdAffineTranslate
	add	x0, sp, #56
	add	x2, sp, #56
	mov	x1, x22
	bl	_gdAffineConcat
	ldr	x0, [x19]
	mov	w1, #0
	bl	_gdImageAlphaBlending
	ldr	x0, [x19]
	add	x5, sp, #56
	mov	w1, #0
	mov	w2, #0
	mov	x3, x20
	mov	x4, x21
	bl	_gdTransformAffineCopy
Lloh3:
	adrp	x8, _GD_TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GD_TRUE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.6:
	ldr	x0, [x19]
	bl	_gdImageDestroy
LBB0_7:
Lloh6:
	adrp	x8, _GD_FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GD_FALSE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_8:
	ldur	x8, [x29, #-40]
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_10
; %bb.9:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GD_FALSE,4,2                   ; @GD_FALSE
	.comm	_GD_TRUE,4,2                    ; @GD_TRUE
.subsections_via_symbols
