	.file	"extr_listbox.c_LISTBOX_SetHorizontalExtent.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"[%p]: new horz extent = %d\n"
	.text
	.p2align 4
	.type	LISTBOX_SetHorizontalExtent, @function
LISTBOX_SetHorizontalExtent:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 56
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR LBS_MULTICOLUMN[rip], eax
	jne	.L8
	mov	rbp, rdi
	mov	rbx, rsi
	cmp	QWORD PTR 8[rdi], rsi
	je	.L8
	mov	esi, DWORD PTR 32[rdi]
	mov	rdx, rbx
	lea	rdi, .LC0[rip]
	call	TRACE@PLT
	mov	QWORD PTR 8[rbp], rbx
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR WS_HSCROLL[rip], eax
	je	.L5
	lea	rdx, -1[rbx]
	test	rbx, rbx
	mov	ecx, 0
	mov	DWORD PTR [rsp], 32
	mov	QWORD PTR 24[rsp], 0
	cmove	rdx, rcx
	mov	QWORD PTR 8[rsp], rdx
	mov	edx, DWORD PTR SIF_RANGE[rip]
	mov	DWORD PTR 16[rsp], edx
	test	DWORD PTR LBS_DISABLENOSCROLL[rip], eax
	jne	.L19
.L7:
	mov	edi, DWORD PTR 32[rbp]
	mov	ecx, DWORD PTR TRUE[rip]
	mov	rdx, rsp
	mov	esi, DWORD PTR SB_HORZ[rip]
	call	SetScrollInfo@PLT
.L5:
	sub	rbx, QWORD PTR 24[rbp]
	cmp	QWORD PTR 16[rbp], rbx
	jg	.L20
.L8:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	mov	eax, DWORD PTR LB_OKAY[rip]
	jne	.L21
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rsi, rbx
	mov	rdi, rbp
	call	LISTBOX_SetHorizontalPos@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L19:
	or	edx, DWORD PTR SIF_DISABLENOSCROLL[rip]
	mov	DWORD PTR 16[rsp], edx
	jmp	.L7
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	LISTBOX_SetHorizontalExtent, .-LISTBOX_SetHorizontalExtent
	.comm	WS_HSCROLL,4,4
	.comm	TRUE,4,4
	.comm	SIF_RANGE,4,4
	.comm	SIF_DISABLENOSCROLL,4,4
	.comm	SB_HORZ,4,4
	.comm	LB_OKAY,4,4
	.comm	LBS_MULTICOLUMN,4,4
	.comm	LBS_DISABLENOSCROLL,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_listbox.c_LISTBOX_SetHorizontalExtent.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"[%p]: new horz extent = %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	LISTBOX_SetHorizontalExtent, %function
LISTBOX_SetHorizontalExtent:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r2, .L21
	ldr	r3, [r0]
	ldr	r6, [r2]
	sub	sp, sp, #24
	ands	r6, r3, r6
	ldr	r3, .L21+4
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bne	.L8
	ldr	r3, [r0, #4]
	mov	r4, r0
	cmp	r3, r1
	mov	r5, r1
	beq	.L8
	mov	r2, r1
	ldr	r1, [r0, #16]
	ldr	r0, .L21+8
	bl	TRACE
	ldr	r2, .L21+12
	ldr	r3, [r4]
	ldr	r2, [r2]
	str	r5, [r4, #4]
	tst	r3, r2
	beq	.L5
	mov	r2, #16
	cmp	r5, #0
	moveq	r1, r5
	ldr	r0, .L21+16
	subne	r1, r5, #1
	ldr	r0, [r0]
	str	r2, [sp, #4]
	tst	r3, r0
	ldrne	r3, .L21+20
	ldr	r2, .L21+24
	ldrne	r3, [r3]
	ldr	r2, [r2]
	str	r1, [sp, #8]
	str	r2, [sp, #12]
	orrne	r2, r3, r2
	strne	r2, [sp, #12]
	ldr	r3, .L21+28
	ldr	r2, .L21+32
	ldr	r3, [r3]
	ldr	r1, [r2]
	ldr	r0, [r4, #16]
	add	r2, sp, #4
	str	r6, [sp, #16]
	bl	SetScrollInfo
.L5:
	ldr	r1, [r4, #12]
	ldr	r3, [r4, #8]
	sub	r1, r5, r1
	cmp	r3, r1
	bgt	.L19
.L8:
	ldr	r3, .L21+36
	ldr	r0, [r3]
	ldr	r3, .L21+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L19:
	mov	r0, r4
	bl	LISTBOX_SetHorizontalPos
	b	.L8
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	LBS_MULTICOLUMN
	.word	.LC1
	.word	.LC0
	.word	WS_HSCROLL
	.word	LBS_DISABLENOSCROLL
	.word	SIF_DISABLENOSCROLL
	.word	SIF_RANGE
	.word	TRUE
	.word	SB_HORZ
	.word	LB_OKAY
	.size	LISTBOX_SetHorizontalExtent, .-LISTBOX_SetHorizontalExtent
	.comm	WS_HSCROLL,4,4
	.comm	TRUE,4,4
	.comm	SIF_RANGE,4,4
	.comm	SIF_DISABLENOSCROLL,4,4
	.comm	SB_HORZ,4,4
	.comm	LB_OKAY,4,4
	.comm	LBS_MULTICOLUMN,4,4
	.comm	LBS_DISABLENOSCROLL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
