	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdImageScaleTwoPass            ## -- Begin function gdImageScaleTwoPass
	.p2align	4, 0x90
_gdImageScaleTwoPass:                   ## @gdImageScaleTwoPass
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	testl	%ecx, %ecx
	je	LBB0_12
## %bb.1:
	testl	%r8d, %r8d
	je	LBB0_12
## %bb.2:
	movl	%ecx, %r13d
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	cmpl	$0, 4(%rdi)
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_gdImagePaletteToTrueColor
LBB0_4:
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_gdImageCreateTrueColor
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %rbx
	movl	(%r14), %esi
	movq	%rax, %rdi
	callq	_gdImageSetInterpolationMethod
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movq	%rbx, %rcx
	movl	%r13d, %r8d
	movl	%r12d, %r9d
	callq	__gdScaleHoriz
	movq	%rbx, %r15
	cmpl	$1, %eax
	jne	LBB0_10
## %bb.7:
	movl	%r13d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_gdImageCreateTrueColor
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%rax, %rbx
	movl	(%r14), %esi
	movq	%rax, %rdi
	callq	_gdImageSetInterpolationMethod
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movq	%rbx, %rcx
	movl	%r13d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	__gdScaleVert
	cmpl	$1, %eax
	je	LBB0_11
## %bb.9:
	movq	%rbx, %rdi
	callq	_gdImageDestroy
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%r15, %rdi
	callq	_gdImageDestroy
	jmp	LBB0_12
LBB0_5:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdImageScaleTwoPass            ; -- Begin function gdImageScaleTwoPass
	.p2align	2
_gdImageScaleTwoPass:                   ; @gdImageScaleTwoPass
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x24, #0
	cbz	w3, LBB0_12
; %bb.1:
	mov	x20, x4
	cbz	w4, LBB0_12
; %bb.2:
	mov	x21, x3
	mov	x22, x2
	mov	x25, x1
	mov	x23, x0
	ldr	w8, [x0, #4]
	cbnz	w8, LBB0_4
; %bb.3:
	mov	x0, x23
	bl	_gdImagePaletteToTrueColor
LBB0_4:
	mov	x0, x21
	mov	x1, x22
	bl	_gdImageCreateTrueColor
	cbz	x0, LBB0_11
; %bb.5:
	mov	x19, x0
	ldr	w1, [x23]
	bl	_gdImageSetInterpolationMethod
	mov	x0, x23
	mov	x1, x25
	mov	x2, x22
	mov	x3, x19
	mov	x4, x21
	mov	x5, x22
	bl	__gdScaleHoriz
	cmp	w0, #1
	b.ne	LBB0_9
; %bb.6:
	mov	x0, x21
	mov	x1, x20
	bl	_gdImageCreateTrueColor
	mov	x24, x0
	cbz	x0, LBB0_10
; %bb.7:
	ldr	w1, [x23]
	mov	x0, x24
	bl	_gdImageSetInterpolationMethod
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x24
	mov	x4, x21
	mov	x5, x20
	bl	__gdScaleVert
	cmp	w0, #1
	b.eq	LBB0_10
; %bb.8:
	mov	x0, x24
	bl	_gdImageDestroy
LBB0_9:
	mov	x24, #0
LBB0_10:
	mov	x0, x19
	bl	_gdImageDestroy
	b	LBB0_12
LBB0_11:
	mov	x24, #0
LBB0_12:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
