	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdImageScale                   ## -- Begin function gdImageScale
	.p2align	4, 0x90
_gdImageScale:                          ## @gdImageScale
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movl	(%rdi), %eax
	testl	%eax, %eax
	js	LBB0_12
## %bb.2:
	movl	%edx, %r8d
	movq	_GD_METHOD_COUNT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jg	LBB0_12
## %bb.3:
	movl	%esi, %ecx
	testl	%esi, %esi
	je	LBB0_12
## %bb.4:
	testl	%r8d, %r8d
	je	LBB0_12
## %bb.5:
	cmpl	$130, %eax
	je	LBB0_10
## %bb.6:
	cmpl	$129, %eax
	je	LBB0_9
## %bb.7:
	cmpl	$128, %eax
	jne	LBB0_11
## %bb.8:
	movl	%ecx, %esi
	movl	%r8d, %edx
	popq	%rbp
	jmp	_gdImageScaleNearestNeighbour   ## TAILCALL
LBB0_10:
	movl	%ecx, %esi
	movl	%r8d, %edx
	popq	%rbp
	jmp	_gdImageScaleBicubicFixed       ## TAILCALL
LBB0_9:
	movl	%ecx, %esi
	movl	%r8d, %edx
	popq	%rbp
	jmp	_gdImageScaleBilinear           ## TAILCALL
LBB0_11:
	cmpq	$0, 16(%rdi)
	je	LBB0_12
## %bb.13:
	movl	4(%rdi), %edx
	movl	8(%rdi), %esi
	popq	%rbp
	jmp	_gdImageScaleTwoPass            ## TAILCALL
LBB0_12:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	_gdImageScale                   ; -- Begin function gdImageScale
	.p2align	2
_gdImageScale:                          ; @gdImageScale
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x0]
	tbnz	w8, #31, LBB0_3
; %bb.2:
	mov	x4, x2
	mov	x3, x1
Lloh0:
	adrp	x9, _GD_METHOD_COUNT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GD_METHOD_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	ccmp	w1, #0, #4, le
	ccmp	w2, #0, #4, ne
	b.ne	LBB0_4
LBB0_3:
	mov	x0, #0
	ret
LBB0_4:
	cmp	w8, #130
	b.eq	LBB0_8
; %bb.5:
	cmp	w8, #129
	b.eq	LBB0_9
; %bb.6:
	cmp	w8, #128
	b.ne	LBB0_10
; %bb.7:
	mov	x1, x3
	mov	x2, x4
	b	_gdImageScaleNearestNeighbour
LBB0_8:
	mov	x1, x3
	mov	x2, x4
	b	_gdImageScaleBicubicFixed
LBB0_9:
	mov	x1, x3
	mov	x2, x4
	b	_gdImageScaleBilinear
LBB0_10:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_3
; %bb.11:
	ldp	w2, w1, [x0, #4]
	b	_gdImageScaleTwoPass
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GD_METHOD_COUNT,4,2            ; @GD_METHOD_COUNT
.subsections_via_symbols
