	.file	"extr_image.c_php_get_xbm.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"#define %s %d"
.LC1:
	.string	"width"
.LC2:
	.string	"height"
	.text
	.p2align 4
	.type	php_get_xbm, @function
php_get_xbm:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 8[rsp], rsi
	mov	rcx, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rcx
	xor	ecx, ecx
	test	rsi, rsi
	je	.L2
	mov	QWORD PTR [rsi], 0
.L2:
	mov	rdi, rbx
	xor	r13d, r13d
	lea	rbp, 20[rsp]
	xor	r12d, r12d
	call	php_stream_rewind@PLT
	test	rax, rax
	je	.L3
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, r15
	call	efree@PLT
	mov	rdi, r14
	call	efree@PLT
.L3:
	xor	edx, edx
	xor	esi, esi
	mov	rdi, rbx
	call	php_stream_gets@PLT
	mov	r15, rax
	test	rax, rax
	je	.L12
	mov	rdi, r15
	call	estrdup@PLT
	mov	rcx, rbp
	lea	rsi, .LC0[rip]
	mov	rdi, r15
	mov	rdx, rax
	mov	r14, rax
	call	sscanf@PLT
	cmp	eax, 2
	jne	.L5
	mov	esi, 95
	mov	rdi, r14
	call	strrchr@PLT
	mov	ecx, 6
	lea	rsi, .LC1[rip]
	lea	rdi, 1[rax]
	test	rax, rax
	mov	rax, rdi
	cmove	rax, r14
	mov	rdi, rax
	repz cmpsb
	seta	dl
	sbb	dl, 0
	test	dl, dl
	jne	.L7
	mov	r12d, DWORD PTR 20[rsp]
	test	r13d, r13d
	jne	.L36
.L7:
	mov	rdi, rax
	mov	ecx, 7
	lea	rsi, .LC2[rip]
	repz cmpsb
	seta	al
	sbb	al, 0
	test	al, al
	jne	.L5
	mov	r13d, DWORD PTR 20[rsp]
	test	r12d, r12d
	je	.L5
.L36:
	mov	rdi, r14
	call	efree@PLT
	mov	rdi, r15
	call	efree@PLT
.L12:
	test	r12d, r12d
	je	.L10
	test	r13d, r13d
	je	.L10
	mov	rbx, QWORD PTR 8[rsp]
	test	rbx, rbx
	je	.L11
	mov	esi, 8
	mov	edi, 1
	call	ecalloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR [rax], r12d
	mov	DWORD PTR 4[rax], r13d
.L11:
	mov	eax, DWORD PTR IMAGE_FILETYPE_XBM[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	xor	eax, eax
.L1:
	mov	rbx, QWORD PTR 24[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L38
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L38:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	php_get_xbm, .-php_get_xbm
	.comm	IMAGE_FILETYPE_XBM,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_image.c_php_get_xbm.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"#define %s %d\000"
	.align	2
.LC1:
	.ascii	"width\000"
	.align	2
.LC2:
	.ascii	"height\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	php_get_xbm, %function
php_get_xbm:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r2, r1, #0
	ldr	r3, .L36
	sub	sp, sp, #20
	str	r2, [sp, #4]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	movne	r3, #0
	strne	r3, [r2]
	mov	r6, r0
	bl	php_stream_rewind
	subs	r8, r0, #0
	bne	.L10
	ldr	r7, .L36+4
	ldr	r10, .L36+8
	ldr	fp, .L36+12
	str	r8, [sp]
	b	.L3
.L5:
	mov	r0, r4
	bl	efree
	mov	r0, r5
	bl	efree
.L3:
	mov	r2, #0
	mov	r0, r6
	mov	r1, r2
	bl	php_stream_gets
	subs	r4, r0, #0
	beq	.L12
	bl	estrdup
	mov	r1, r7
	mov	r2, r0
	mov	r5, r0
	add	r3, sp, #8
	mov	r0, r4
	bl	sscanf
	cmp	r0, #2
	bne	.L5
	mov	r1, #95
	mov	r0, r5
	bl	strrchr
	cmp	r0, #0
	moveq	r9, r5
	addne	r9, r0, #1
	mov	r1, r9
	mov	r0, r10
	bl	strcmp
	cmp	r0, #0
	bne	.L7
	ldr	r3, [sp, #8]
	cmp	r8, #0
	str	r3, [sp]
	bne	.L32
.L7:
	mov	r1, r9
	mov	r0, fp
	bl	strcmp
	cmp	r0, #0
	bne	.L5
	ldr	r3, [sp]
	ldr	r8, [sp, #8]
	cmp	r3, #0
	beq	.L5
.L32:
	mov	r0, r5
	bl	efree
	mov	r0, r4
	bl	efree
.L12:
	ldr	r3, [sp]
	cmp	r3, #0
	cmpne	r8, #0
	bne	.L34
.L10:
	mov	r0, #0
.L1:
	ldr	r3, .L36
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L35
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L34:
	ldr	r4, [sp, #4]
	cmp	r4, #0
	beq	.L11
	mov	r1, #8
	mov	r0, #1
	bl	ecalloc
	ldr	r3, [sp]
	str	r0, [r4]
	stm	r0, {r3, r8}
.L11:
	ldr	r3, .L36+16
	ldr	r0, [r3]
	b	.L1
.L35:
	bl	__stack_chk_fail
.L37:
	.align	2
.L36:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	IMAGE_FILETYPE_XBM
	.size	php_get_xbm, .-php_get_xbm
	.comm	IMAGE_FILETYPE_XBM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
