	.file	"extr_builtins.c_expand_builtin_compare_and_swap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	expand_builtin_compare_and_swap, @function
expand_builtin_compare_and_swap:
.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
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edi
	mov	edi, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	TREE_VALUE@PLT
	mov	esi, ebp
	mov	edi, eax
	call	get_builtin_sync_mem@PLT
	mov	edi, r13d
	mov	r12d, eax
	call	TREE_CHAIN@PLT
	mov	r13d, DWORD PTR EXPAND_NORMAL[rip]
	mov	edi, eax
	mov	r15d, eax
	call	TREE_VALUE@PLT
	xor	esi, esi
	mov	ecx, r13d
	mov	edx, ebp
	mov	edi, eax
	call	expand_expr@PLT
	mov	edi, eax
	mov	r13d, eax
	call	GET_MODE@PLT
	cmp	eax, DWORD PTR VOIDmode[rip]
	mov	esi, eax
	je	.L8
.L2:
	mov	edx, r13d
	mov	ecx, 1
	mov	edi, ebp
	call	convert_modes@PLT
	mov	edi, r15d
	mov	r13d, eax
	call	TREE_CHAIN@PLT
	mov	r15d, DWORD PTR EXPAND_NORMAL[rip]
	mov	edi, eax
	mov	DWORD PTR 12[rsp], eax
	call	TREE_VALUE@PLT
	xor	esi, esi
	mov	ecx, r15d
	mov	edx, ebp
	mov	edi, eax
	call	expand_expr@PLT
	mov	edi, eax
	mov	r15d, eax
	call	GET_MODE@PLT
	cmp	eax, DWORD PTR VOIDmode[rip]
	mov	r8d, DWORD PTR 12[rsp]
	mov	esi, eax
	je	.L9
.L3:
	mov	ecx, 1
	mov	edx, r15d
	mov	edi, ebp
	call	convert_modes@PLT
	mov	ecx, r14d
	mov	esi, r13d
	mov	edi, r12d
	mov	edx, eax
	test	ebx, ebx
	je	.L4
	add	rsp, 24
	.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
	jmp	expand_bool_compare_and_swap@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	add	rsp, 24
	.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
	jmp	expand_val_compare_and_swap@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, r15d
	call	TREE_VALUE@PLT
	mov	edi, eax
	call	TREE_TYPE@PLT
	mov	edi, eax
	call	TYPE_MODE@PLT
	mov	esi, eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, r8d
	call	TREE_VALUE@PLT
	mov	edi, eax
	call	TREE_TYPE@PLT
	mov	edi, eax
	call	TYPE_MODE@PLT
	mov	esi, eax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	expand_builtin_compare_and_swap, .-expand_builtin_compare_and_swap
	.comm	VOIDmode,4,4
	.comm	EXPAND_NORMAL,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_builtins.c_expand_builtin_compare_and_swap.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	expand_builtin_compare_and_swap, %function
expand_builtin_compare_and_swap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	sub	sp, sp, #4
	mov	r0, r1
	mov	r8, r2
	mov	r7, r3
	mov	r6, r1
	bl	TREE_VALUE
	mov	r1, r4
	bl	get_builtin_sync_mem
	mov	r5, r0
	mov	r0, r6
	bl	TREE_CHAIN
	ldr	fp, .L10
	mov	r9, r0
	bl	TREE_VALUE
	mov	r1, #0
	ldr	r3, [fp]
	mov	r2, r4
	bl	expand_expr
	mov	r6, r0
	bl	GET_MODE
	ldr	r10, .L10+4
	ldr	r3, [r10]
	cmp	r0, r3
	movne	r1, r0
	beq	.L8
.L2:
	mov	r2, r6
	mov	r3, #1
	mov	r0, r4
	bl	convert_modes
	mov	r6, r0
	mov	r0, r9
	bl	TREE_CHAIN
	mov	r9, r0
	bl	TREE_VALUE
	ldr	r3, [fp]
	mov	r1, #0
	mov	r2, r4
	bl	expand_expr
	mov	fp, r0
	bl	GET_MODE
	ldr	r3, [r10]
	mov	r1, r0
	cmp	r0, r3
	beq	.L9
.L3:
	mov	r2, fp
	mov	r3, #1
	mov	r0, r4
	bl	convert_modes
	cmp	r8, #0
	mov	r2, r0
	mov	r3, r7
	mov	r1, r6
	mov	r0, r5
	beq	.L4
	add	sp, sp, #4
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	expand_bool_compare_and_swap
.L4:
	add	sp, sp, #4
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	expand_val_compare_and_swap
.L8:
	mov	r0, r9
	bl	TREE_VALUE
	bl	TREE_TYPE
	bl	TYPE_MODE
	mov	r1, r0
	b	.L2
.L9:
	mov	r0, r9
	bl	TREE_VALUE
	bl	TREE_TYPE
	bl	TYPE_MODE
	mov	r1, r0
	b	.L3
.L11:
	.align	2
.L10:
	.word	EXPAND_NORMAL
	.word	VOIDmode
	.size	expand_builtin_compare_and_swap, .-expand_builtin_compare_and_swap
	.comm	VOIDmode,4,4
	.comm	EXPAND_NORMAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
