	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gdImageTileGet
_gdImageTileGet:                        ## @gdImageTileGet
	.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
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movl	%edx, %r14d
	movl	%esi, %ebx
	callq	_gdImageSX
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%edx, %ebx
	movq	(%r15), %rdi
	callq	_gdImageSY
	movl	%eax, %ecx
	movl	%r14d, %eax
	cltd
	idivl	%ecx
	movq	(%r15), %rdi
	movl	%ebx, %esi
	callq	_gdImageGetPixel
	movl	%eax, %r14d
	cmpq	$0, 8(%r15)
	movq	(%r15), %rdi
	movq	(%rdi), %rax
	je	LBB0_6
## %bb.4:
	testq	%rax, %rax
	jne	LBB0_2
## %bb.5:
	movl	%r14d, %esi
	callq	_gdImageRed
	movl	%eax, %r12d
	movq	(%r15), %rdi
	movl	%r14d, %esi
	callq	_gdImageGreen
	movl	%eax, %r13d
	movq	(%r15), %rdi
	movl	%r14d, %esi
	callq	_gdImageBlue
	movl	%eax, %ebx
	movq	(%r15), %rdi
	movl	%r14d, %esi
	callq	_gdImageAlpha
	movl	%r12d, %edi
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gdTrueColorAlpha               ## TAILCALL
LBB0_1:
	movl	$-1, %r14d
LBB0_2:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	%r14d, %edi
	callq	_gdTrueColorGetRed
	movl	%eax, %r12d
	movl	%r14d, %edi
	callq	_gdTrueColorGetGreen
	movl	%eax, %r13d
	movl	%r14d, %edi
	callq	_gdTrueColorGetBlue
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_gdTrueColorGetAlpha
	jmp	LBB0_8
LBB0_9:
	movl	%r14d, %esi
	callq	_gdImageRed
	movl	%eax, %r12d
	movq	(%r15), %rdi
	movl	%r14d, %esi
	callq	_gdImageGreen
	movl	%eax, %r13d
	movq	(%r15), %rdi
	movl	%r14d, %esi
	callq	_gdImageBlue
	movl	%eax, %ebx
	movq	(%r15), %rdi
	movl	%r14d, %esi
	callq	_gdImageAlpha
LBB0_8:
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gdImageColorResolveAlpha       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gdImageTileGet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gdImageTileGet
_gdImageTileGet:                        ; @gdImageTileGet
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	bl	_gdImageSX
	sdiv	w8, w21, w0
	msub	w21, w8, w0, w21
	ldr	x0, [x19]
	bl	_gdImageSY
	sdiv	w8, w20, w0
	msub	w2, w8, w0, w20
	ldr	x0, [x19]
	mov	x1, x21
	bl	_gdImageGetPixel
	mov	x20, x0
	ldp	x0, x9, [x19]
	ldr	x8, [x0]
	cbz	x9, LBB0_6
; %bb.2:
	cbnz	x8, LBB0_5
; %bb.3:
	mov	x1, x20
	bl	_gdImageRed
	mov	x21, x0
	ldr	x0, [x19]
	mov	x1, x20
	bl	_gdImageGreen
	mov	x22, x0
	ldr	x0, [x19]
	mov	x1, x20
	bl	_gdImageBlue
	mov	x23, x0
	ldr	x0, [x19]
	mov	x1, x20
	bl	_gdImageAlpha
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_gdTrueColorAlpha
LBB0_4:
	mov	w20, #-1
LBB0_5:
	mov	x0, x20
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_gdTrueColorGetRed
	mov	x21, x0
	mov	x0, x20
	bl	_gdTrueColorGetGreen
	mov	x22, x0
	mov	x0, x20
	bl	_gdTrueColorGetBlue
	mov	x23, x0
	mov	x0, x20
	bl	_gdTrueColorGetAlpha
	b	LBB0_9
LBB0_8:
	mov	x1, x20
	bl	_gdImageRed
	mov	x21, x0
	ldr	x0, [x19]
	mov	x1, x20
	bl	_gdImageGreen
	mov	x22, x0
	ldr	x0, [x19]
	mov	x1, x20
	bl	_gdImageBlue
	mov	x23, x0
	ldr	x0, [x19]
	mov	x1, x20
	bl	_gdImageAlpha
LBB0_9:
	mov	x4, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_gdImageColorResolveAlpha
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gdImageTileGet
.subsections_via_symbols
