	.file	"extr_dialog.c_DEFDLG_SetDefId.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	DEFDLG_SetDefId, @function
DEFDLG_SetDefId:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	mov	esi, edx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, edx
	call	GetDlgItem@PLT
	mov	r14d, DWORD PTR 0[rbp]
	mov	DWORD PTR 0[rbp], ebx
	mov	r12, rax
	test	rax, rax
	je	.L9
	mov	esi, DWORD PTR WM_GETDLGCODE[rip]
	xor	ecx, ecx
	xor	edx, edx
	mov	rdi, rax
	call	SendMessageW@PLT
	mov	ebx, eax
	mov	eax, DWORD PTR DLGC_UNDEFPUSHBUTTON[rip]
	or	eax, DWORD PTR DLGC_BUTTON[rip]
	test	eax, ebx
	je	.L27
.L2:
	mov	esi, r14d
	mov	rdi, r13
	call	GetDlgItem@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L4
.L6:
	mov	rdi, r13
	call	DEFDLG_FindDefButton@PLT
	mov	rbp, rax
.L5:
	mov	eax, DWORD PTR TRUE[rip]
	test	rbp, rbp
	je	.L7
	cmp	rbp, r12
	jne	.L28
.L7:
	test	r12, r12
	je	.L1
.L30:
	test	DWORD PTR DLGC_UNDEFPUSHBUTTON[rip], ebx
	jne	.L29
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	xor	ebx, ebx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, DWORD PTR WM_GETDLGCODE[rip]
	xor	ecx, ecx
	xor	edx, edx
	mov	rdi, rax
	call	SendMessageW@PLT
	test	DWORD PTR DLGC_DEFPUSHBUTTON[rip], eax
	je	.L6
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L28:
	mov	edx, DWORD PTR BS_PUSHBUTTON[rip]
	mov	esi, DWORD PTR BM_SETSTYLE[rip]
	mov	ecx, eax
	mov	rdi, rbp
	call	SendMessageW@PLT
	mov	eax, DWORD PTR TRUE[rip]
	test	r12, r12
	je	.L1
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L27:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR FALSE[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	mov	edx, DWORD PTR BS_DEFPUSHBUTTON[rip]
	mov	esi, DWORD PTR BM_SETSTYLE[rip]
	mov	rdi, r12
	mov	ecx, eax
	call	SendMessageW@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR TRUE[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	DEFDLG_SetDefId, .-DEFDLG_SetDefId
	.comm	WM_GETDLGCODE,4,4
	.comm	TRUE,4,4
	.comm	FALSE,4,4
	.comm	DLGC_UNDEFPUSHBUTTON,4,4
	.comm	DLGC_DEFPUSHBUTTON,4,4
	.comm	DLGC_BUTTON,4,4
	.comm	BS_PUSHBUTTON,4,4
	.comm	BS_DEFPUSHBUTTON,4,4
	.comm	BM_SETSTYLE,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_dialog.c_DEFDLG_SetDefId.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	DEFDLG_SetDefId, %function
DEFDLG_SetDefId:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r1, r2
	mov	r5, r2
	mov	r7, r0
	bl	GetDlgItem
	subs	r6, r0, #0
	ldr	r8, [r4]
	str	r5, [r4]
	beq	.L9
	mov	r3, #0
	ldr	r1, .L27
	mov	r2, r3
	ldr	r1, [r1]
	bl	SendMessageW
	ldr	r3, .L27+4
	ldr	r2, .L27+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	mov	r5, r0
	orr	r3, r3, r2
	tst	r3, r0
	beq	.L24
.L2:
	mov	r1, r8
	mov	r0, r7
	bl	GetDlgItem
	subs	r4, r0, #0
	bne	.L4
.L6:
	mov	r0, r7
	bl	DEFDLG_FindDefButton
	mov	r4, r0
.L5:
	cmp	r4, #0
	cmpne	r4, r6
	ldr	r7, .L27+12
	ldr	r0, [r7]
	bne	.L25
	cmp	r6, #0
	popeq	{r4, r5, r6, r7, r8, pc}
.L26:
	ldr	r3, .L27+4
	ldr	r3, [r3]
	tst	r5, r3
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r2, .L27+16
	ldr	r1, .L27+20
	mov	r3, r0
	ldr	r2, [r2]
	mov	r0, r6
	ldr	r1, [r1]
	bl	SendMessageW
	ldr	r0, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	mov	r5, r6
	b	.L2
.L4:
	mov	r3, #0
	ldr	r1, .L27
	mov	r2, r3
	ldr	r1, [r1]
	bl	SendMessageW
	ldr	r3, .L27+24
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L6
	b	.L5
.L25:
	ldr	r2, .L27+28
	ldr	r1, .L27+20
	mov	r3, r0
	ldr	r2, [r2]
	mov	r0, r4
	ldr	r1, [r1]
	bl	SendMessageW
	cmp	r6, #0
	ldr	r0, [r7]
	popeq	{r4, r5, r6, r7, r8, pc}
	b	.L26
.L24:
	ldr	r3, .L27+32
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L28:
	.align	2
.L27:
	.word	WM_GETDLGCODE
	.word	DLGC_UNDEFPUSHBUTTON
	.word	DLGC_BUTTON
	.word	TRUE
	.word	BS_DEFPUSHBUTTON
	.word	BM_SETSTYLE
	.word	DLGC_DEFPUSHBUTTON
	.word	BS_PUSHBUTTON
	.word	FALSE
	.size	DEFDLG_SetDefId, .-DEFDLG_SetDefId
	.comm	WM_GETDLGCODE,4,4
	.comm	TRUE,4,4
	.comm	FALSE,4,4
	.comm	DLGC_UNDEFPUSHBUTTON,4,4
	.comm	DLGC_DEFPUSHBUTTON,4,4
	.comm	DLGC_BUTTON,4,4
	.comm	BS_PUSHBUTTON,4,4
	.comm	BS_DEFPUSHBUTTON,4,4
	.comm	BM_SETSTYLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
