	.file	"extr_tif_getimage.c_setorientation.c"
	.intel_syntax noprefix
	.text
	.section	.text.unlikely,"ax",@progbits
.LCOLDB0:
	.text
.LHOTB0:
	.p2align 4
	.type	setorientation, @function
setorientation:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	add	eax, -128
	cmp	eax, 7
	ja	.L14
	lea	rdx, .L4[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L7-.L4
	.long	.L5-.L4
	.long	.L6-.L4
	.long	.L3-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR 4[rdi]
	cmp	eax, 129
	je	.L13
	cmp	eax, 132
	je	.L13
	and	eax, -3
	cmp	eax, 128
	je	.L12
	cmp	eax, 133
	jne	.L29
.L11:
	mov	eax, DWORD PTR FLIP_HORIZONTALLY[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR 4[rdi]
	cmp	eax, 129
	je	.L12
	cmp	eax, 132
	je	.L12
	mov	edx, eax
	and	edx, -3
	cmp	edx, 128
	je	.L13
	cmp	eax, 134
	je	.L11
	cmp	eax, 131
	je	.L11
.L29:
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR 4[rdi]
	cmp	eax, 129
	je	.L11
	cmp	eax, 132
	je	.L11
	cmp	eax, 134
	je	.L12
	cmp	eax, 131
	je	.L12
	and	eax, -3
	cmp	eax, 133
	jne	.L29
.L13:
	mov	eax, DWORD PTR FLIP_HORIZONTALLY[rip]
	or	eax, DWORD PTR FLIP_VERTICALLY[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR 4[rdi]
	mov	edx, eax
	and	edx, -3
	cmp	edx, 128
	je	.L11
	cmp	eax, 134
	je	.L13
	cmp	eax, 131
	je	.L13
	xor	eax, eax
	cmp	edx, 133
	jne	.L1
.L12:
	mov	eax, DWORD PTR FLIP_VERTICALLY[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L1:
	ret
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	setorientation.cold, @function
setorientation.cold:
.LFSB0:
.L14:
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.text
	.size	setorientation, .-setorientation
	.section	.text.unlikely
	.size	setorientation.cold, .-setorientation.cold
.LCOLDE0:
	.text
.LHOTE0:
	.comm	FLIP_VERTICALLY,4,4
	.comm	FLIP_HORIZONTALLY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_tif_getimage.c_setorientation.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setorientation, %function
setorientation:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r3, [r0]
	sub	r3, r3, #128
	cmp	r3, #7
	ldrls	pc, [pc, r3, asl #2]
	b	.L13
.L4:
	.word	.L7
	.word	.L6
	.word	.L7
	.word	.L5
	.word	.L6
	.word	.L3
	.word	.L5
	.word	.L3
.L3:
	ldr	r0, [r0, #4]
	cmp	r0, #132
	cmpne	r0, #129
	beq	.L11
	bic	r3, r0, #2
	cmp	r3, #128
	beq	.L12
	cmp	r0, #131
	cmpne	r0, #134
	moveq	r0, #1
	movne	r0, #0
	bxne	lr
.L10:
	ldr	r3, .L31
	ldr	r0, [r3]
	bx	lr
.L7:
	ldr	r3, [r0, #4]
	cmp	r3, #132
	cmpne	r3, #129
	beq	.L10
	cmp	r3, #131
	cmpne	r3, #134
	moveq	r0, #1
	movne	r0, #0
	beq	.L11
	bic	r3, r3, #2
	cmp	r3, #133
	bxne	lr
.L12:
	ldr	r2, .L31
	ldr	r3, .L31+4
	ldr	r0, [r2]
	ldr	r3, [r3]
	orr	r0, r0, r3
	bx	lr
.L6:
	ldr	r0, [r0, #4]
	bic	r3, r0, #2
	cmp	r3, #128
	beq	.L10
	cmp	r0, #131
	cmpne	r0, #134
	moveq	r0, #1
	movne	r0, #0
	beq	.L12
	cmp	r3, #133
	bxne	lr
.L11:
	ldr	r3, .L31+4
	ldr	r0, [r3]
	bx	lr
.L5:
	ldr	r3, [r0, #4]
	cmp	r3, #132
	cmpne	r3, #129
	moveq	r0, #1
	movne	r0, #0
	beq	.L12
	bic	r3, r3, #2
	cmp	r3, #128
	beq	.L11
	cmp	r3, #133
	bxne	lr
	b	.L10
.L13:
	mov	r0, #0
	bx	lr
.L32:
	.align	2
.L31:
	.word	FLIP_HORIZONTALLY
	.word	FLIP_VERTICALLY
	.size	setorientation, .-setorientation
	.comm	FLIP_VERTICALLY,4,4
	.comm	FLIP_HORIZONTALLY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
