	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdImageFlipHorizontal          ## -- Begin function gdImageFlipHorizontal
	.p2align	4, 0x90
_gdImageFlipHorizontal:                 ## @gdImageFlipHorizontal
	.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_8
## %bb.1:
	testl	%eax, %eax
	jle	LBB0_15
## %bb.2:
	movq	8(%rdi), %r8
	movl	16(%rdi), %esi
	xorl	%r9d, %r9d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r9
	movslq	%eax, %rcx
	cmpq	%rcx, %r9
	jge	LBB0_15
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	cmpl	$2, %esi
	jl	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r8,%r9,8), %r10
	movl	%esi, %ecx
	leaq	(%r10,%rcx,4), %rcx
	addq	$-4, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r10,%rdx,4), %esi
	movl	(%rcx), %eax
	movl	%eax, (%r10,%rdx,4)
	movl	%esi, (%rcx)
	movl	16(%rdi), %esi
	movl	%esi, %eax
	sarl	%eax
	incq	%rdx
	addq	$-4, %rcx
	cmpl	%eax, %edx
	jl	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rdi), %eax
	jmp	LBB0_7
LBB0_8:
	testl	%eax, %eax
	jle	LBB0_15
## %bb.9:
	movl	16(%rdi), %edx
	xorl	%r8d, %r8d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r8
	movslq	%eax, %rcx
	cmpq	%rcx, %r8
	jge	LBB0_15
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	cmpl	$2, %edx
	jl	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	24(%rdi), %rax
	movq	(%rax,%r8,8), %r9
	movl	%edx, %ecx
	leaq	(%r9,%rcx), %rsi
	decq	%rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r9,%rcx), %edx
	movzbl	(%rsi), %eax
	movb	%al, (%r9,%rcx)
	movb	%dl, (%rsi)
	movl	16(%rdi), %edx
	movl	%edx, %eax
	sarl	%eax
	incq	%rcx
	decq	%rsi
	cmpl	%eax, %ecx
	jl	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%rdi), %eax
	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	_gdImageFlipHorizontal          ; -- Begin function gdImageFlipHorizontal
	.p2align	2
_gdImageFlipHorizontal:                 ; @gdImageFlipHorizontal
	.cfi_startproc
; %bb.0:
	ldr	x9, [x0, #32]
	ldr	w8, [x0]
	cmp	w8, #1
	cbz	x9, LBB0_8
; %bb.1:
	b.lt	LBB0_15
; %bb.2:
	mov	x9, #0
	ldr	x10, [x0, #8]
	ldr	w11, [x0, #16]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	cmp	x9, w8, sxtw
	b.ge	LBB0_15
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	cmp	w11, #2
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, #0
	ldr	x12, [x10, x9, lsl #3]
	mov	w11, w11
	lsl	x11, x11, #2
	sub	x13, x11, #4
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x11, x8, #2
	ldr	w14, [x12, x11]
	ldr	w15, [x12, x13]
	str	w15, [x12, x11]
	str	w14, [x12, x13]
	ldr	w11, [x0, #16]
	add	x8, x8, #1
	sub	x13, x13, #4
	cmp	w8, w11, asr #1
	b.lt	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x0]
	b	LBB0_3
LBB0_8:
	b.lt	LBB0_15
; %bb.9:
	mov	x9, #0
	ldr	w10, [x0, #16]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x9, x9, #1
	cmp	x9, w8, sxtw
	b.ge	LBB0_15
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	cmp	w10, #2
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x8, #0
	ldr	x11, [x0, #24]
	ldr	x11, [x11, x9, lsl #3]
	mov	w10, w10
	sub	x12, x10, #1
LBB0_13:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w10, [x11, x8]
	ldrb	w13, [x11, x12]
	strb	w13, [x11, x8]
	strb	w10, [x11, x12]
	ldr	w10, [x0, #16]
	add	x8, x8, #1
	sub	x12, x12, #1
	cmp	w8, w10, asr #1
	b.lt	LBB0_13
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x0]
	b	LBB0_10
LBB0_15:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
