	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function res_to_bin_dialog
_res_to_bin_dialog:                     ## @res_to_bin_dialog
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$376, %rsp                      ## imm = 0x178
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, -288(%rbp)                ## 4-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdx, %rdi
	callq	_extended_dialog
	movl	%eax, %r13d
	movq	%rbx, -280(%rbp)                ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.1:
	testl	%r13d, %r13d
	je	LBB0_2
## %bb.3:
	movq	-280(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_windres_put_16
	movq	%rbx, %rdi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_windres_put_16
	movq	48(%r12), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	(%rax), %edx
	jmp	LBB0_6
LBB0_2:
	movl	(%r12), %edx
	movq	-280(%rbp), %rdi                ## 8-byte Reload
	callq	_windres_put_32
	leaq	4(%r12), %rax
	jmp	LBB0_7
LBB0_4:
	xorl	%edx, %edx
LBB0_6:
	movq	-280(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_windres_put_32
	movl	4(%r12), %edx
	movq	%rbx, %rdi
	callq	_windres_put_32
	movq	%r12, %rax
LBB0_7:
	movl	(%rax), %edx
	movq	-280(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_windres_put_32
	movl	8(%r12), %edx
	movq	%rbx, %rdi
	callq	_windres_put_16
	movl	12(%r12), %edx
	movq	%rbx, %rdi
	callq	_windres_put_16
	movl	16(%r12), %edx
	movq	%rbx, %rdi
	callq	_windres_put_16
	movl	20(%r12), %edx
	movq	%rbx, %rdi
	callq	_windres_put_16
LBB0_8:
	testl	%r13d, %r13d
	jne	LBB0_9
## %bb.10:
	movq	_BIN_DIALOG_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_BIN_DIALOGEX_SIZE@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %esi
	addl	-288(%rbp), %esi                ## 4-byte Folded Reload
	movl	64(%r12), %edx
	movq	-280(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_resid_to_bin
	movl	60(%r12), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_resid_to_bin
	movl	56(%r12), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_unicode_to_bin
	movl	%eax, %r14d
	movq	_DS_SETFONT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	movl	%r13d, -284(%rbp)               ## 4-byte Spill
	je	LBB0_28
## %bb.12:
	cmpq	$0, -280(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_24
## %bb.13:
	testl	%r13d, %r13d
	je	LBB0_14
## %bb.15:
	movl	24(%r12), %edx
	movq	-280(%rbp), %rdi                ## 8-byte Reload
	callq	_windres_put_16
	movq	48(%r12), %rax
	xorl	%r13d, %r13d
	movl	$0, %edx
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movl	4(%rax), %edx
LBB0_17:
	movq	-280(%rbp), %rdi                ## 8-byte Reload
	callq	_windres_put_16
	movq	48(%r12), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movl	8(%rax), %r13d
LBB0_19:
	movq	-280(%rbp), %rdi                ## 8-byte Reload
	movl	%r13d, %edx
	callq	_windres_put_8
	movq	48(%r12), %rax
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:
	movl	12(%rax), %edx
	jmp	LBB0_22
LBB0_14:
	movl	24(%r12), %edx
	movq	-280(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_windres_put_16
	movq	_BIN_DIALOGFONT_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_20:
	movl	$1, %edx
LBB0_22:
	movl	-284(%rbp), %r13d               ## 4-byte Reload
	movq	-280(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_windres_put_8
	movq	_BIN_DIALOGEXFONT_SIZE@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %ecx
	leaq	-272(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_set_windres_bfd_content
LBB0_24:
	testl	%r13d, %r13d
	jne	LBB0_25
## %bb.26:
	movq	_BIN_DIALOGFONT_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_25:
	movq	_BIN_DIALOGEXFONT_SIZE@GOTPCREL(%rip), %rax
LBB0_27:
	addl	(%rax), %r14d
	movl	40(%r12), %edx
	movq	-280(%rbp), %rdi                ## 8-byte Reload
	movl	%r14d, %esi
	callq	_unicode_to_bin
	movl	%eax, %r14d
LBB0_28:
	movq	32(%r12), %r12
	xorl	%edx, %edx
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_41:                                ##   in Loop: Header=BB0_29 Depth=1
	cmpl	%ebx, %eax
	cmovnel	%ebx, %r14d
	movl	%ecx, %edx
	subl	%r14d, %edx
	movl	%ecx, %r14d
	movl	-284(%rbp), %r13d               ## 4-byte Reload
LBB0_42:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	%r15, -304(%rbp)                ## 8-byte Spill
	movl	%r14d, %r15d
	movq	-280(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	movl	%r13d, %ebx
	leaq	-272(%rbp), %r13
	movq	%r13, %rsi
	callq	_windres_put_16
	movq	%r14, %rdi
	movl	%r15d, %r14d
	movq	%r13, %rsi
	movl	%ebx, %r13d
	movq	-304(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	$2, %ecx
	callq	_set_windres_bfd_content
LBB0_43:                                ##   in Loop: Header=BB0_29 Depth=1
	movl	-292(%rbp), %edx                ## 4-byte Reload
	incl	%edx
	movq	48(%r12), %r12
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	testq	%r12, %r12
	je	LBB0_44
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	movl	%edx, -292(%rbp)                ## 4-byte Spill
	movl	-288(%rbp), %r15d               ## 4-byte Reload
	subl	%r14d, %r15d
	andl	$3, %r15d
	addl	%r14d, %r15d
	cmpq	$0, -280(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_35
## %bb.31:                              ##   in Loop: Header=BB0_29 Depth=1
	testl	%r13d, %r13d
	je	LBB0_32
## %bb.33:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	-208(%rbp), %rsi
	movl	28(%r12), %edx
	movq	-280(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_windres_put_32
	movq	-216(%rbp), %rsi
	movl	4(%r12), %edx
	movq	%rbx, %rdi
	callq	_windres_put_32
	movq	-224(%rbp), %rsi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_windres_put_32
	movq	-232(%rbp), %rsi
	movl	8(%r12), %edx
	movq	%rbx, %rdi
	callq	_windres_put_16
	movq	-240(%rbp), %rsi
	movl	12(%r12), %edx
	movq	%rbx, %rdi
	callq	_windres_put_16
	movq	-248(%rbp), %rsi
	movl	16(%r12), %edx
	movq	%rbx, %rdi
	callq	_windres_put_16
	movq	-256(%rbp), %rsi
	movl	20(%r12), %edx
	movq	%rbx, %rdi
	callq	_windres_put_16
	movq	-264(%rbp), %rsi
	movl	24(%r12), %edx
	movq	%rbx, %rdi
	callq	_windres_put_32
	movq	_BIN_DIALOGEX_CONTROL_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	-224(%rbp), %rsi
	movl	(%r12), %edx
	movq	-280(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_windres_put_32
	movq	-216(%rbp), %rsi
	movl	4(%r12), %edx
	movq	%rbx, %rdi
	callq	_windres_put_32
	movq	-232(%rbp), %rsi
	movl	8(%r12), %edx
	movq	%rbx, %rdi
	callq	_windres_put_16
	movq	-240(%rbp), %rsi
	movl	12(%r12), %edx
	movq	%rbx, %rdi
	callq	_windres_put_16
	movq	-248(%rbp), %rsi
	movl	16(%r12), %edx
	movq	%rbx, %rdi
	callq	_windres_put_16
	movq	-256(%rbp), %rsi
	movl	20(%r12), %edx
	movq	%rbx, %rdi
	callq	_windres_put_16
	movq	-264(%rbp), %rsi
	movl	24(%r12), %edx
	movq	%rbx, %rdi
	callq	_windres_put_16
	movq	_BIN_DIALOG_CONTROL_SIZE@GOTPCREL(%rip), %rax
LBB0_34:                                ##   in Loop: Header=BB0_29 Depth=1
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	leaq	-272(%rbp), %rsi
	movl	%r15d, %edx
	callq	_set_windres_bfd_content
LBB0_35:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	_BIN_DIALOGEX_CONTROL_SIZE@GOTPCREL(%rip), %rax
	testl	%r13d, %r13d
	jne	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	_BIN_DIALOG_CONTROL_SIZE@GOTPCREL(%rip), %rax
LBB0_37:                                ##   in Loop: Header=BB0_29 Depth=1
	addl	(%rax), %r15d
	movl	44(%r12), %edx
	movq	-280(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_resid_to_bin
	movl	40(%r12), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_resid_to_bin
	movl	%eax, %r15d
	leal	2(%r15), %r14d
	movq	32(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_38
## %bb.39:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	-280(%rbp), %r13                ## 8-byte Reload
	movl	-288(%rbp), %ebx                ## 4-byte Reload
	subl	%r14d, %ebx
	andl	$3, %ebx
	addl	%r14d, %ebx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_res_to_bin_rcdata
	cmpl	%ebx, %eax
	movl	%eax, %ecx
	cmovel	%r14d, %ecx
	testq	%r13, %r13
	jne	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_29 Depth=1
	movl	%ecx, %r14d
	movl	-284(%rbp), %r13d               ## 4-byte Reload
	jmp	LBB0_43
	.p2align	4, 0x90
LBB0_38:                                ##   in Loop: Header=BB0_29 Depth=1
	xorl	%edx, %edx
	cmpq	$0, -280(%rbp)                  ## 8-byte Folded Reload
	jne	LBB0_42
	jmp	LBB0_43
LBB0_44:
	cmpq	$0, -280(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_46
## %bb.45:
	movq	-280(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_windres_put_16
	testl	%r13d, %r13d
	leaq	-416(%rbp), %rax
	leaq	-272(%rbp), %rsi
	cmoveq	%rax, %rsi
	movq	_BIN_DIALOGEX_SIZE@GOTPCREL(%rip), %rax
	cmoveq	_BIN_DIALOG_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	-288(%rbp), %edx                ## 4-byte Reload
	callq	_set_windres_bfd_content
LBB0_46:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_48
## %bb.47:
	movl	%r14d, %eax
	addq	$376, %rsp                      ## imm = 0x178
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_48:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BIN_DIALOGEX_SIZE,4,2          ## @BIN_DIALOGEX_SIZE
	.comm	_BIN_DIALOG_SIZE,4,2            ## @BIN_DIALOG_SIZE
	.comm	_DS_SETFONT,4,2                 ## @DS_SETFONT
	.comm	_BIN_DIALOGFONT_SIZE,4,2        ## @BIN_DIALOGFONT_SIZE
	.comm	_BIN_DIALOGEXFONT_SIZE,4,2      ## @BIN_DIALOGEXFONT_SIZE
	.comm	_BIN_DIALOG_CONTROL_SIZE,4,2    ## @BIN_DIALOG_CONTROL_SIZE
	.comm	_BIN_DIALOGEX_CONTROL_SIZE,4,2  ## @BIN_DIALOGEX_CONTROL_SIZE
	.no_dead_strip	_res_to_bin_dialog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function res_to_bin_dialog
_res_to_bin_dialog:                     ; @res_to_bin_dialog
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #464
	.cfi_def_cfa_offset 464
	stp	x28, x27, [sp, #368]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #384]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #400]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #416]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #432]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #448]            ; 16-byte Folded Spill
	add	x29, sp, #448
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	str	w1, [sp, #12]                   ; 4-byte Folded Spill
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	mov	x0, x2
	bl	_extended_dialog
	mov	x21, x0
	cbz	x20, LBB0_8
; %bb.1:
	cbz	w21, LBB0_4
; %bb.2:
	mov	x0, x20
	mov	w2, #1
	bl	_windres_put_16
	mov	x0, x20
	mov	w2, #65535
	bl	_windres_put_16
	ldr	x8, [x22, #48]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w2, [x8]
	b	LBB0_6
LBB0_4:
	mov	x23, x22
	ldr	w2, [x23], #4
	mov	x0, x20
	bl	_windres_put_32
	b	LBB0_7
LBB0_5:
	mov	w2, #0
LBB0_6:
	mov	x0, x20
	bl	_windres_put_32
	ldr	w2, [x22, #4]
	mov	x0, x20
	bl	_windres_put_32
	mov	x23, x22
LBB0_7:
	ldr	w2, [x23]
	mov	x0, x20
	bl	_windres_put_32
	ldr	w2, [x22, #8]
	mov	x0, x20
	bl	_windres_put_16
	ldr	w2, [x22, #12]
	mov	x0, x20
	bl	_windres_put_16
	ldr	w2, [x22, #16]
	mov	x0, x20
	bl	_windres_put_16
	ldr	w2, [x22, #20]
	mov	x0, x20
	bl	_windres_put_16
LBB0_8:
Lloh3:
	adrp	x8, _BIN_DIALOGEX_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BIN_DIALOGEX_SIZE@GOTPAGEOFF]
Lloh5:
	adrp	x9, _BIN_DIALOG_SIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BIN_DIALOG_SIZE@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	add	w1, w8, w9
	ldr	w2, [x22, #64]
	mov	x0, x20
	bl	_resid_to_bin
	mov	x1, x0
	ldr	w2, [x22, #60]
	mov	x0, x20
	bl	_resid_to_bin
	mov	x1, x0
	ldr	w2, [x22, #56]
	mov	x0, x20
	bl	_unicode_to_bin
	mov	x27, x0
	ldr	w8, [x22]
Lloh7:
	adrp	x9, _DS_SETFONT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DS_SETFONT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.9:
Lloh10:
	adrp	x24, _BIN_DIALOGEXFONT_SIZE@GOTPAGE
Lloh11:
	ldr	x24, [x24, _BIN_DIALOGEXFONT_SIZE@GOTPAGEOFF]
Lloh12:
	adrp	x25, _BIN_DIALOGFONT_SIZE@GOTPAGE
Lloh13:
	ldr	x25, [x25, _BIN_DIALOGFONT_SIZE@GOTPAGEOFF]
	cbz	x20, LBB0_23
; %bb.10:
	cbz	w21, LBB0_13
; %bb.11:
	ldr	w2, [x22, #24]
	mov	x0, x20
	bl	_windres_put_16
	ldr	x8, [x22, #48]
	cbz	x8, LBB0_14
; %bb.12:
	ldr	w2, [x8, #4]
	b	LBB0_15
LBB0_13:
	ldr	w2, [x22, #24]
	mov	x0, x20
	bl	_windres_put_16
	ldr	w3, [x25]
	b	LBB0_22
LBB0_14:
	mov	w2, #0
LBB0_15:
	mov	x0, x20
	bl	_windres_put_16
	ldr	x8, [x22, #48]
	cbz	x8, LBB0_17
; %bb.16:
	ldr	w2, [x8, #8]
	b	LBB0_18
LBB0_17:
	mov	w2, #0
LBB0_18:
	mov	x0, x20
	bl	_windres_put_8
	ldr	x8, [x22, #48]
	cbz	x8, LBB0_20
; %bb.19:
	ldr	w2, [x8, #12]
	b	LBB0_21
LBB0_20:
	mov	w2, #1
LBB0_21:
	mov	x0, x20
	bl	_windres_put_8
	ldr	w3, [x24]
LBB0_22:
	add	x1, sp, #128
	mov	x0, x20
	mov	x2, x27
	bl	_set_windres_bfd_content
LBB0_23:
	cmp	w21, #0
	csel	x8, x25, x24, eq
	ldr	w8, [x8]
	add	w1, w8, w27
	ldr	w2, [x22, #40]
	mov	x0, x20
	bl	_unicode_to_bin
	mov	x27, x0
LBB0_24:
	ldr	x28, [x22, #32]
	cbz	x28, LBB0_40
; %bb.25:
	mov	w22, #0
Lloh14:
	adrp	x19, _BIN_DIALOGEX_CONTROL_SIZE@GOTPAGE
Lloh15:
	ldr	x19, [x19, _BIN_DIALOGEX_CONTROL_SIZE@GOTPAGEOFF]
Lloh16:
	adrp	x25, _BIN_DIALOG_CONTROL_SIZE@GOTPAGE
Lloh17:
	ldr	x25, [x25, _BIN_DIALOG_CONTROL_SIZE@GOTPAGEOFF]
	b	LBB0_29
LBB0_26:                                ;   in Loop: Header=BB0_29 Depth=1
	csel	w8, w23, w25, eq
	sub	w2, w27, w8
	mov	x25, x26
LBB0_27:                                ;   in Loop: Header=BB0_29 Depth=1
	add	x1, sp, #128
	mov	x0, x20
	bl	_windres_put_16
	add	x1, sp, #128
	mov	x0, x20
	mov	x2, x24
	mov	w3, #2
	bl	_set_windres_bfd_content
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	add	w22, w22, #1
	ldr	x28, [x28, #48]
	cbz	x28, LBB0_41
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	sub	w8, w8, w27
	and	w8, w8, #0x3
	add	w23, w8, w27
	cbz	x20, LBB0_34
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	cbz	w21, LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_29 Depth=1
	ldr	x1, [sp, #192]
	ldr	w2, [x28, #28]
	mov	x0, x20
	bl	_windres_put_32
	ldr	x1, [sp, #184]
	ldr	w2, [x28, #4]
	mov	x0, x20
	bl	_windres_put_32
	ldr	x1, [sp, #176]
	ldr	w2, [x28]
	mov	x0, x20
	bl	_windres_put_32
	ldr	x1, [sp, #168]
	ldr	w2, [x28, #8]
	mov	x0, x20
	bl	_windres_put_16
	ldr	x1, [sp, #160]
	ldr	w2, [x28, #12]
	mov	x0, x20
	bl	_windres_put_16
	ldr	x1, [sp, #152]
	ldr	w2, [x28, #16]
	mov	x0, x20
	bl	_windres_put_16
	ldr	x1, [sp, #144]
	ldr	w2, [x28, #20]
	mov	x0, x20
	bl	_windres_put_16
	ldr	x1, [sp, #136]
	ldr	w2, [x28, #24]
	mov	x0, x20
	bl	_windres_put_32
	ldr	w3, [x19]
	b	LBB0_33
LBB0_32:                                ;   in Loop: Header=BB0_29 Depth=1
	ldr	x1, [sp, #176]
	ldr	w2, [x28]
	mov	x0, x20
	bl	_windres_put_32
	ldr	x1, [sp, #184]
	ldr	w2, [x28, #4]
	mov	x0, x20
	bl	_windres_put_32
	ldr	x1, [sp, #168]
	ldr	w2, [x28, #8]
	mov	x0, x20
	bl	_windres_put_16
	ldr	x1, [sp, #160]
	ldr	w2, [x28, #12]
	mov	x0, x20
	bl	_windres_put_16
	ldr	x1, [sp, #152]
	ldr	w2, [x28, #16]
	mov	x0, x20
	bl	_windres_put_16
	ldr	x1, [sp, #144]
	ldr	w2, [x28, #20]
	mov	x0, x20
	bl	_windres_put_16
	ldr	x1, [sp, #136]
	ldr	w2, [x28, #24]
	mov	x0, x20
	bl	_windres_put_16
	ldr	w3, [x25]
LBB0_33:                                ;   in Loop: Header=BB0_29 Depth=1
	add	x1, sp, #128
	mov	x0, x20
	mov	x2, x23
	bl	_set_windres_bfd_content
LBB0_34:                                ;   in Loop: Header=BB0_29 Depth=1
	cmp	w21, #0
	csel	x8, x25, x19, eq
	ldr	w8, [x8]
	add	w1, w8, w23
	ldr	w2, [x28, #44]
	mov	x0, x20
	bl	_resid_to_bin
	mov	x1, x0
	ldr	w2, [x28, #40]
	mov	x0, x20
	bl	_resid_to_bin
	mov	x24, x0
	add	w23, w0, #2
	ldr	x2, [x28, #32]
	cbz	x2, LBB0_37
; %bb.35:                               ;   in Loop: Header=BB0_29 Depth=1
	mov	x26, x25
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	sub	w8, w8, w23
	and	w8, w8, #0x3
	add	w25, w8, w23
	mov	x0, x20
	mov	x1, x25
	bl	_res_to_bin_rcdata
	cmp	w0, w25
	csel	w27, w23, w0, eq
	cbnz	x20, LBB0_26
; %bb.36:                               ;   in Loop: Header=BB0_29 Depth=1
	mov	x25, x26
	b	LBB0_28
LBB0_37:                                ;   in Loop: Header=BB0_29 Depth=1
	cbz	x20, LBB0_39
; %bb.38:                               ;   in Loop: Header=BB0_29 Depth=1
	mov	w2, #0
	mov	x27, x23
	b	LBB0_27
LBB0_39:                                ;   in Loop: Header=BB0_29 Depth=1
	mov	x27, x23
	b	LBB0_28
LBB0_40:
	mov	w22, #0
LBB0_41:
	cbz	x20, LBB0_43
; %bb.42:
	mov	x0, x20
	mov	x2, x22
	bl	_windres_put_16
	cmp	w21, #0
	add	x8, sp, #128
	add	x9, sp, #16
	csel	x1, x9, x8, eq
Lloh18:
	adrp	x8, _BIN_DIALOGEX_SIZE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BIN_DIALOGEX_SIZE@GOTPAGEOFF]
Lloh20:
	adrp	x9, _BIN_DIALOG_SIZE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _BIN_DIALOG_SIZE@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w3, [x8]
	mov	x0, x20
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_set_windres_bfd_content
LBB0_43:
	ldur	x8, [x29, #-96]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_45
; %bb.44:
	mov	x0, x27
	ldp	x29, x30, [sp, #448]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #432]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #416]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #400]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #384]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #368]            ; 16-byte Folded Reload
	add	sp, sp, #464
	ret
LBB0_45:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_BIN_DIALOGEX_SIZE,4,2          ; @BIN_DIALOGEX_SIZE
	.comm	_BIN_DIALOG_SIZE,4,2            ; @BIN_DIALOG_SIZE
	.comm	_DS_SETFONT,4,2                 ; @DS_SETFONT
	.comm	_BIN_DIALOGFONT_SIZE,4,2        ; @BIN_DIALOGFONT_SIZE
	.comm	_BIN_DIALOGEXFONT_SIZE,4,2      ; @BIN_DIALOGEXFONT_SIZE
	.comm	_BIN_DIALOG_CONTROL_SIZE,4,2    ; @BIN_DIALOG_CONTROL_SIZE
	.comm	_BIN_DIALOGEX_CONTROL_SIZE,4,2  ; @BIN_DIALOGEX_CONTROL_SIZE
	.no_dead_strip	_res_to_bin_dialog
.subsections_via_symbols
