	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmp_read_rle
_bmp_read_rle:                          ## @bmp_read_rle
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	$0, -64(%rbp)
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	xorl	%r12d, %r12d
	movl	$8, %eax
	xorl	%edx, %edx
	idivl	(%rbx)
	cmpl	$0, 4(%rbx)
	jle	LBB0_54
## %bb.1:
	movl	%esi, %r14d
	movl	%eax, %r15d
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	xorl	%r13d, %r13d
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	-60(%rbp), %r14d                ## 4-byte Reload
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cmpl	4(%rbx), %eax
	jge	LBB0_52
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_30 Depth 2
                                        ##       Child Loop BB0_35 Depth 3
                                        ##     Child Loop BB0_12 Depth 2
                                        ##       Child Loop BB0_17 Depth 3
	cmpl	8(%rbx), %r13d
	jg	LBB0_52
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	-48(%rbp), %rdi
	movl	%r14d, %esi
	callq	_gdGetByte
	movl	$1, %r12d
	testl	%eax, %eax
	je	LBB0_54
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	-44(%rbp), %rdi
	movl	%r14d, %esi
	callq	_gdGetByte
	testl	%eax, %eax
	je	LBB0_54
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	notl	%eax
	addl	4(%rbx), %eax
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movl	-48(%rbp), %eax
	movq	_BMP_RLE_COMMAND@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_23
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %eax
	cmpl	$3, %eax
	jl	LBB0_41
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$0, -76(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	movl	%r13d, %r12d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_12 Depth=2
	movl	%r12d, %r13d
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=2
	movl	-92(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	addl	%r15d, %ecx
	subl	%r15d, -76(%rbp)                ## 4-byte Folded Spill
	movl	%r13d, %r12d
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	cmpl	-44(%rbp), %ecx
	jge	LBB0_49
LBB0_12:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_17 Depth 3
	cmpl	8(%rbx), %r12d
	jge	LBB0_48
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	leaq	-64(%rbp), %rdi
	movl	%r14d, %esi
	callq	_gdGetByte
	testl	%eax, %eax
	je	LBB0_53
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%r15, %rcx
	movl	-44(%rbp), %r15d
	movl	%r15d, %eax
	subl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	cmpl	%ecx, %eax
	cmovgel	%ecx, %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%rbx, %r14
	addl	-76(%rbp), %r15d                ## 4-byte Folded Reload
	cmpl	%r15d, %ecx
	cmovll	%ecx, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_17 Depth=3
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	callq	_gdImageSetPixel
	cmpl	%ebx, %r15d
	je	LBB0_21
LBB0_17:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_12 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	leal	(%r12,%rbx), %r13d
	movq	%r14, %rax
	cmpl	8(%r14), %r13d
	jge	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=3
	incl	%ebx
	movl	-64(%rbp), %esi
	movl	(%rax), %edx
	movl	%edx, %eax
	imull	%ebx, %eax
	movb	$8, %cl
	subb	%al, %cl
	sarl	%cl, %esi
	movl	$-1, %eax
	movl	%edx, %ecx
	shll	%cl, %eax
	notl	%eax
	andl	%esi, %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movslq	%eax, %rdx
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_16
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=3
	movq	$0, (%rcx,%rdx,8)
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%rax, %rbx
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_12 Depth=2
	addl	%ebx, %r12d
	movl	%r12d, %r13d
	movq	%r14, %rbx
LBB0_22:                                ##   in Loop: Header=BB0_12 Depth=2
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movslq	-44(%rbp), %rdx
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, (%rcx,%rdx,8)
LBB0_25:                                ##   in Loop: Header=BB0_4 Depth=1
	testl	%eax, %eax
	jle	LBB0_3
## %bb.26:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_30
LBB0_27:                                ##   in Loop: Header=BB0_30 Depth=2
	movl	-48(%rbp), %eax
	incl	%r12d
	movl	%r12d, %r13d
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %r14d
LBB0_28:                                ##   in Loop: Header=BB0_30 Depth=2
	movq	-88(%rbp), %r15                 ## 8-byte Reload
LBB0_29:                                ##   in Loop: Header=BB0_30 Depth=2
	cmpl	%eax, %r14d
	jge	LBB0_2
LBB0_30:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_35 Depth 3
	movl	8(%rbx), %ecx
	cmpl	%ecx, %r13d
	jge	LBB0_2
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=2
	testl	%r15d, %r15d
	jle	LBB0_29
## %bb.32:                              ##   in Loop: Header=BB0_30 Depth=2
	cmpl	%ecx, %r13d
	jge	LBB0_29
## %bb.33:                              ##   in Loop: Header=BB0_30 Depth=2
	cmpl	%eax, %r14d
	jge	LBB0_29
## %bb.34:                              ##   in Loop: Header=BB0_30 Depth=2
	leal	(%r15,%r14), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_35:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_30 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%rbx), %ecx
	movl	$-1, %eax
	shll	%cl, %eax
	notl	%eax
	imull	%r15d, %ecx
	movb	$8, %dl
	subb	%cl, %dl
	movl	%edx, %ecx
	shll	%cl, %eax
	movl	%r13d, %r12d
	andl	-44(%rbp), %eax
	sarl	%cl, %eax
	movl	%eax, -64(%rbp)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movslq	%eax, %rdx
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=3
	movq	$0, (%rcx,%rdx,8)
LBB0_37:                                ##   in Loop: Header=BB0_35 Depth=3
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	callq	_gdImageSetPixel
	cmpl	%r15d, -88(%rbp)                ## 4-byte Folded Reload
	je	LBB0_27
## %bb.38:                              ##   in Loop: Header=BB0_35 Depth=3
	leal	1(%r12), %r13d
	incl	%r14d
	movl	-48(%rbp), %eax
	cmpl	8(%rbx), %r13d
	jge	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_35 Depth=3
	incl	%r15d
	cmpl	%eax, %r14d
	jl	LBB0_35
LBB0_40:                                ##   in Loop: Header=BB0_30 Depth=2
	incl	%r12d
	movl	%r12d, %r13d
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_41:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_BMP_RLE_ENDOFLINE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_44
## %bb.42:                              ##   in Loop: Header=BB0_4 Depth=1
	incl	-52(%rbp)                       ## 4-byte Folded Spill
	xorl	%r13d, %r13d
	jmp	LBB0_3
LBB0_44:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_BMP_RLE_DELTA@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_51
## %bb.45:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	-48(%rbp), %rdi
	movl	%r14d, %esi
	callq	_gdGetByte
	testl	%eax, %eax
	je	LBB0_54
## %bb.46:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	-44(%rbp), %rdi
	movl	%r14d, %esi
	callq	_gdGetByte
	testl	%eax, %eax
	je	LBB0_54
## %bb.47:                              ##   in Loop: Header=BB0_4 Depth=1
	addl	-48(%rbp), %r13d
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	addl	-44(%rbp), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
LBB0_48:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %r13d
LBB0_49:                                ##   in Loop: Header=BB0_4 Depth=1
	testb	$1, %al
	je	LBB0_3
## %bb.50:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	-64(%rbp), %rdi
	movl	%r14d, %esi
	callq	_gdGetByte
	testl	%eax, %eax
	movl	$1, %r12d
	jne	LBB0_3
	jmp	LBB0_54
LBB0_51:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_BMP_RLE_ENDOFBITMAP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
LBB0_52:
	xorl	%r12d, %r12d
	jmp	LBB0_54
LBB0_53:
	movl	$1, %r12d
LBB0_54:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BMP_RLE_COMMAND,4,2            ## @BMP_RLE_COMMAND
	.comm	_BMP_RLE_ENDOFLINE,4,2          ## @BMP_RLE_ENDOFLINE
	.comm	_BMP_RLE_DELTA,4,2              ## @BMP_RLE_DELTA
	.comm	_BMP_RLE_ENDOFBITMAP,4,2        ## @BMP_RLE_ENDOFBITMAP
	.no_dead_strip	_bmp_read_rle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bmp_read_rle
_bmp_read_rle:                          ; @bmp_read_rle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	xzr, [sp, #24]
	str	wzr, [sp, #20]
	ldr	w8, [x2, #4]
	cmp	w8, #1
	b.lt	LBB0_49
; %bb.1:
	mov	x19, x2
	mov	x25, x1
	mov	x21, x0
	mov	w20, #0
	mov	w28, #0
	ldr	w8, [x2]
	mov	w9, #8
	sdiv	w27, w9, w8
	sub	w8, w27, #1
	stp	w27, w8, [sp, #12]              ; 8-byte Folded Spill
	mov	w24, #-1
	str	w1, [sp, #8]                    ; 4-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w20, [sp, #4]                   ; 4-byte Folded Reload
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #4]
	cmp	w20, w8
	b.ge	LBB0_49
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_28 Depth 2
                                        ;       Child Loop BB0_32 Depth 3
                                        ;     Child Loop BB0_13 Depth 2
                                        ;       Child Loop BB0_18 Depth 3
	ldr	w8, [x19, #8]
	cmp	w28, w8
	b.gt	LBB0_49
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #24
	mov	x1, x25
	bl	_gdGetByte
	cbz	w0, LBB0_50
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #20
	mov	x1, x25
	bl	_gdGetByte
	cbz	w0, LBB0_50
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #4]
	mvn	w9, w20
	add	w22, w8, w9
	ldr	w8, [sp, #24]
Lloh0:
	adrp	x9, _BMP_RLE_COMMAND@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BMP_RLE_COMMAND@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_22
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #20]
	cmp	w8, #3
	b.lt	LBB0_40
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w20, [sp, #4]                   ; 4-byte Folded Spill
	mov	w20, #0
	mov	w26, #0
	mov	w23, #0
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	x28, x1
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=2
	ldp	w25, w27, [sp, #8]              ; 8-byte Folded Reload
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	add	w23, w23, #1
	ldr	w8, [sp, #20]
	sub	w20, w20, w27
	add	w26, w26, w27
	cmp	w26, w8
	b.ge	LBB0_42
LBB0_13:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_18 Depth 3
	ldr	w8, [x19, #8]
	cmp	w28, w8
	b.ge	LBB0_42
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	add	x0, sp, #28
	mov	x1, x25
	bl	_gdGetByte
	cbz	w0, LBB0_50
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	w8, [sp, #20]
	sub	w9, w8, w26
	cmp	w9, w27
	csel	w9, w9, w27, lt
	cmp	w9, #1
	b.lt	LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=2
	mov	x9, x27
	mov	w27, #0
	add	w8, w8, w20
	cmp	w9, w8
	csel	w25, w9, w8, lt
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=3
	mov	x0, x21
	mov	x2, x22
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_gdImageSetPixel
	add	w27, w27, #1
	cmp	w25, w27
	b.eq	LBB0_21
LBB0_18:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_13 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w8, [x19, #8]
	add	w1, w28, w27
	cmp	w1, w8
	b.ge	LBB0_10
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=3
	add	w8, w27, #1
	ldr	w9, [sp, #28]
	ldr	w10, [x19]
	mov	w11, #8
	msub	w8, w10, w8, w11
	asr	w8, w9, w8
	lsl	w9, w24, w10
	bic	w9, w8, w9
	ldr	x8, [x21]
	sxtw	x3, w9
	ldr	x9, [x8, w9, sxtw #3]
	cbz	x9, LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=3
	str	xzr, [x8, x3, lsl #3]
	b	LBB0_17
LBB0_21:                                ;   in Loop: Header=BB0_13 Depth=2
	add	w28, w28, w27
	b	LBB0_11
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x21]
	ldrsw	x10, [sp, #20]
	ldr	x11, [x9, x10, lsl #3]
	cbz	x11, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [x9, x10, lsl #3]
LBB0_24:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.25:                               ;   in Loop: Header=BB0_4 Depth=1
	str	w20, [sp, #4]                   ; 4-byte Folded Spill
	mov	w20, #0
	b	LBB0_28
LBB0_26:                                ;   in Loop: Header=BB0_28 Depth=2
	mov	x26, x20
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=2
	mov	x20, x26
	cmp	w26, w8
	b.ge	LBB0_2
LBB0_28:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_32 Depth 3
	ldr	w9, [x19, #8]
	cmp	w28, w9
	b.ge	LBB0_2
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=2
	cmp	w27, #1
	b.lt	LBB0_26
; %bb.30:                               ;   in Loop: Header=BB0_28 Depth=2
	cmp	w28, w9
	ccmp	w20, w8, #0, lt
	b.ge	LBB0_26
; %bb.31:                               ;   in Loop: Header=BB0_28 Depth=2
	mov	w9, #0
	add	w26, w27, w20
LBB0_32:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_28 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x27, x9
	ldr	w8, [sp, #20]
	ldr	w9, [x19]
	lsl	w10, w24, w9
	mvn	w10, w10
	madd	w9, w9, w27, w9
	mov	w11, #8
	sub	w9, w11, w9
	lsl	w10, w10, w9
	and	w8, w10, w8
	asr	w9, w8, w9
	str	w9, [sp, #28]
	ldr	x8, [x21]
	sxtw	x3, w9
	ldr	x9, [x8, w9, sxtw #3]
	cbz	x9, LBB0_34
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=3
	str	xzr, [x8, x3, lsl #3]
LBB0_34:                                ;   in Loop: Header=BB0_32 Depth=3
	add	w23, w28, w27
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_gdImageSetPixel
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	cmp	w8, w27
	b.eq	LBB0_38
; %bb.35:                               ;   in Loop: Header=BB0_32 Depth=3
	add	w10, w23, #1
	ldr	w11, [x19, #8]
	ldr	w8, [sp, #24]
	add	w9, w27, #1
	cmp	w10, w11
	b.ge	LBB0_37
; %bb.36:                               ;   in Loop: Header=BB0_32 Depth=3
	add	w10, w20, w27
	add	w10, w10, #1
	cmp	w10, w8
	b.lt	LBB0_32
LBB0_37:                                ;   in Loop: Header=BB0_28 Depth=2
	add	w10, w28, w27
	add	w28, w10, #1
	add	w26, w20, w9
	b	LBB0_39
LBB0_38:                                ;   in Loop: Header=BB0_28 Depth=2
	ldr	w8, [sp, #24]
	add	w9, w28, w27
	add	w28, w9, #1
LBB0_39:                                ;   in Loop: Header=BB0_28 Depth=2
	ldr	w27, [sp, #12]                  ; 4-byte Folded Reload
	b	LBB0_27
LBB0_40:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh3:
	adrp	x9, _BMP_RLE_ENDOFLINE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BMP_RLE_ENDOFLINE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_44
; %bb.41:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w28, #0
	add	w20, w20, #1
	b	LBB0_3
LBB0_42:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w20, [sp, #4]                   ; 4-byte Folded Reload
	tbz	w23, #0, LBB0_3
; %bb.43:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #28
	mov	x1, x25
	bl	_gdGetByte
	cbnz	w0, LBB0_3
	b	LBB0_50
LBB0_44:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh6:
	adrp	x9, _BMP_RLE_DELTA@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BMP_RLE_DELTA@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_48
; %bb.45:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #24
	mov	x1, x25
	bl	_gdGetByte
	cbz	w0, LBB0_50
; %bb.46:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #20
	mov	x1, x25
	bl	_gdGetByte
	cbz	w0, LBB0_50
; %bb.47:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #24]
	add	w28, w8, w28
	ldr	w8, [sp, #20]
	add	w20, w8, w20
	b	LBB0_3
LBB0_48:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh9:
	adrp	x9, _BMP_RLE_ENDOFBITMAP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BMP_RLE_ENDOFBITMAP@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
LBB0_49:
	mov	w0, #0
	b	LBB0_51
LBB0_50:
	mov	w0, #1
LBB0_51:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BMP_RLE_COMMAND,4,2            ; @BMP_RLE_COMMAND
	.comm	_BMP_RLE_ENDOFLINE,4,2          ; @BMP_RLE_ENDOFLINE
	.comm	_BMP_RLE_DELTA,4,2              ; @BMP_RLE_DELTA
	.comm	_BMP_RLE_ENDOFBITMAP,4,2        ; @BMP_RLE_ENDOFBITMAP
	.no_dead_strip	_bmp_read_rle
.subsections_via_symbols
