	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdImageFlipVertical            ## -- Begin function gdImageFlipVertical
	.p2align	4, 0x90
_gdImageFlipVertical:                   ## @gdImageFlipVertical
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, 32(%rdi)
	movl	(%rdi), %eax
	je	LBB0_9
## %bb.1:
	cmpl	$2, %eax
	jl	LBB0_15
## %bb.2:
	movq	8(%rdi), %r9
	movl	16(%rdi), %esi
	xorl	%r8d, %r8d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rdi), %eax
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r8
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %r8
	jge	LBB0_15
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	testl	%esi, %esi
	jle	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r9,%r8,8), %rdx
	movl	%r8d, %r11d
	notl	%r11d
	addl	%r11d, %eax
	cltq
	movq	(%r9,%rax,8), %r10
	movl	(%rdx), %esi
	movq	(%r9,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movl	%esi, (%r10)
	movl	16(%rdi), %esi
	cmpl	$2, %esi
	jl	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %eax
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdx,%rax,4), %esi
	movl	(%rdi), %ecx
	addl	%r11d, %ecx
	movslq	%ecx, %rcx
	movq	(%r9,%rcx,8), %rcx
	movl	(%rcx,%rax,4), %ecx
	movl	%ecx, (%rdx,%rax,4)
	movl	%esi, (%r10,%rax,4)
	incq	%rax
	movslq	16(%rdi), %rsi
	cmpq	%rsi, %rax
	jl	LBB0_6
	jmp	LBB0_7
LBB0_9:
	cmpl	$2, %eax
	jl	LBB0_15
## %bb.10:
	movl	16(%rdi), %edx
	xorl	%r8d, %r8d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r8
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %r8
	jge	LBB0_15
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	testl	%edx, %edx
	jle	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%r8d, %r9d
	notl	%r9d
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%rdi), %rdx
	movq	(%rdx,%r8,8), %rsi
	movzbl	(%rsi,%rcx), %r10d
	addl	%r9d, %eax
	cltq
	movq	(%rdx,%rax,8), %rax
	movzbl	(%rax,%rcx), %eax
	movb	%al, (%rsi,%rcx)
	movq	24(%rdi), %rax
	movl	(%rdi), %edx
	addl	%r9d, %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movb	%r10b, (%rax,%rcx)
	incq	%rcx
	movslq	16(%rdi), %rdx
	movl	(%rdi), %eax
	cmpq	%rdx, %rcx
	jl	LBB0_13
	jmp	LBB0_14
LBB0_15:
	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	_gdImageFlipVertical            ; -- Begin function gdImageFlipVertical
	.p2align	2
_gdImageFlipVertical:                   ; @gdImageFlipVertical
	.cfi_startproc
; %bb.0:
	ldr	x9, [x0, #32]
	ldr	w8, [x0]
	cmp	w8, #2
	cbz	x9, LBB0_9
; %bb.1:
	b.lt	LBB0_17
; %bb.2:
	mov	x9, #0
	ldr	x10, [x0, #8]
	ldr	w11, [x0, #16]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x0]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #1
	cmp	w8, #0
	cinc	w12, w8, lt
	asr	w12, w12, #1
	cmp	x9, w12, sxtw
	b.ge	LBB0_17
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cmp	w11, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x12, [x10, x9, lsl #3]
	mvn	w13, w9
	add	w11, w8, w13
	ldr	x8, [x10, w11, sxtw #3]
	ldr	x11, [x10, w11, sxtw #3]
	ldr	w14, [x12]
	ldr	w11, [x11]
	str	w11, [x12]
	str	w14, [x8]
	ldr	w11, [x0, #16]
	cmp	w11, #2
	b.lt	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w14, #1
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x0]
	lsl	x15, x14, #2
	ldr	w16, [x12, x15]
	add	w11, w11, w13
	ldr	x11, [x10, w11, sxtw #3]
	ldr	w11, [x11, x15]
	str	w11, [x12, x15]
	str	w16, [x8, x15]
	add	x14, x14, #1
	ldrsw	x11, [x0, #16]
	cmp	x14, x11
	b.lt	LBB0_8
	b	LBB0_3
LBB0_9:
	b.lt	LBB0_17
; %bb.10:
	mov	x9, #0
	ldr	w10, [x0, #16]
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x0]
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x9, x9, #1
	cmp	w8, #0
	cinc	w11, w8, lt
	asr	w11, w11, #1
	cmp	x9, w11, sxtw
	b.ge	LBB0_17
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	cmp	w10, #1
	b.lt	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mvn	w11, w9
	ldr	x10, [x0, #24]
	ldr	x12, [x10, x9, lsl #3]
	ldrb	w13, [x12]
	add	w8, w8, w11
	ldr	x8, [x10, w8, sxtw #3]
	ldrb	w8, [x8]
	strb	w8, [x12]
	ldr	x8, [x0, #24]
	ldr	w10, [x0]
	add	w10, w10, w11
	ldr	x8, [x8, w10, sxtw #3]
	strb	w13, [x8]
	ldr	w10, [x0, #16]
	cmp	w10, #2
	b.lt	LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w8, #1
LBB0_16:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x0]
	ldr	x12, [x0, #24]
	ldr	x13, [x12, x9, lsl #3]
	ldrb	w14, [x13, x8]
	add	w10, w10, w11
	ldr	x10, [x12, w10, sxtw #3]
	ldrb	w10, [x10, x8]
	strb	w10, [x13, x8]
	ldr	x10, [x0, #24]
	ldr	w12, [x0]
	add	w12, w12, w11
	ldr	x10, [x10, w12, sxtw #3]
	strb	w14, [x10, x8]
	add	x8, x8, #1
	ldrsw	x10, [x0, #16]
	cmp	x8, x10
	b.lt	LBB0_16
	b	LBB0_11
LBB0_17:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
