	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bin_to_res_dialog
_bin_to_res_dialog:                     ## @bin_to_res_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r13
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	cmpl	$17, %edx
	jg	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_toosmall
LBB0_2:
	movl	$96, %edi
	callq	_res_alloc
	movq	%rax, %r12
	leaq	8(%r15), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_windres_get_16
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jne	LBB0_3
## %bb.4:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, %r14
	cmpl	$1, %r14d
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_fatal
LBB0_6:
	movl	$32, %edi
	callq	_res_alloc
	movq	%rax, 8(%r12)
	leaq	16(%r15), %rsi
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_windres_get_32
	movq	8(%r12), %rcx
	movq	%rax, 24(%rcx)
	leaq	32(%r15), %rsi
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_windres_get_32
	movq	%rax, 88(%r12)
	leaq	48(%r15), %rsi
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_windres_get_32
	movl	%eax, (%r12)
	movl	$16, %ebx
	jmp	LBB0_7
LBB0_3:
	movq	$0, 8(%r12)
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_windres_get_32
	movl	%eax, (%r12)
	leaq	16(%r15), %rsi
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_windres_get_32
	movq	%rax, 88(%r12)
	movl	$8, %ebx
LBB0_7:
	leal	10(%rbx), %r14d
	cmpl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	jle	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_toosmall
LBB0_9:
	movl	%ebx, %ebx
	leaq	(%r15,%rbx,4), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%rbx,4), %rsi
	addq	$8, %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, 80(%r12)
	leaq	(%r15,%rbx,4), %rsi
	addq	$16, %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, 72(%r12)
	leaq	(%r15,%rbx,4), %rsi
	addq	$24, %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, 64(%r12)
	leaq	(%r15,%rbx,4), %rsi
	addq	$32, %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, 56(%r12)
	leaq	52(%r12), %rsi
	movl	%r14d, %eax
	leaq	(%r15,%rax,4), %rdx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %r12
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %ecx
	subl	%r14d, %ecx
	movq	%r13, %rdi
	callq	_get_resid
	addl	%r14d, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	48(%rcx), %rsi
	movslq	%eax, %rbx
	leaq	(%r12,%rbx,4), %rdx
	movl	%r15d, %ecx
	subl	%ebx, %ecx
	movq	%r13, %rdi
	callq	_get_resid
	movl	%eax, -48(%rbp)
	addl	%ebx, %eax
	movslq	%eax, %rbx
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%rbx,4), %rsi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	%r15d, %edx
	subl	%ebx, %edx
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	callq	_get_unicode
	movq	%rax, 40(%r12)
	movl	-48(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	$0, 40(%r12)
LBB0_11:
	leal	(%rbx,%rax,2), %ebx
	addl	$2, %ebx
	movq	_DS_SETFONT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_12
## %bb.14:
	leal	2(%rbx), %r14d
	cmpl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jle	LBB0_16
## %bb.15:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_toosmall
LBB0_16:
	movslq	%ebx, %rax
	leaq	(%r15,%rax,4), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, 32(%r12)
	cmpq	$0, 8(%r12)
	je	LBB0_17
## %bb.18:
	addl	$6, %ebx
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	jle	LBB0_20
## %bb.19:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_toosmall
LBB0_20:
	movslq	%r14d, %r14
	leaq	(%r15,%r14,4), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_windres_get_16
	movq	8(%r12), %rcx
	movq	%rax, 16(%rcx)
	leaq	(%r15,%r14,4), %rsi
	addq	$8, %rsi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_windres_get_8
	movq	8(%r12), %rcx
	movq	%rax, 8(%rcx)
	leaq	(%r15,%r14,4), %rsi
	addq	$12, %rsi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_windres_get_8
	movq	8(%r12), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_21
LBB0_12:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r12)
	movq	8(%r12), %rax
	testq	%rax, %rax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_22
## %bb.13:
	movups	%xmm0, 8(%rax)
	movl	$1, (%rax)
	jmp	LBB0_22
LBB0_17:
	movl	%r14d, %ebx
LBB0_21:
	movslq	%ebx, %rbx
	leaq	(%r15,%rbx,4), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	subl	%ebx, %edx
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	callq	_get_unicode
	movq	%rax, 24(%r12)
	movl	-48(%rbp), %eax
	leal	(%rbx,%rax,2), %ebx
	addl	$2, %ebx
LBB0_22:
	movq	$0, 16(%r12)
	cmpl	$0, -80(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_44
## %bb.23:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	addq	$16, %r12
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_42:                                ##   in Loop: Header=BB0_24 Depth=1
	movl	$32, %edi
	callq	_res_alloc
	movq	%rax, 8(%r12)
	movq	$0, 24(%rax)
	movq	_RCDATA_BUFFER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movl	%r14d, (%rax)
	movslq	%r15d, %rcx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	leaq	(%r15,%rcx,4), %rcx
	movq	%rcx, 8(%rax)
LBB0_43:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	$0, (%r12)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	decl	%eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_44
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	addl	$3, %ebx
	andl	$-4, %ebx
	movl	$88, %edi
	callq	_res_alloc
	movq	%rax, %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	je	LBB0_25
## %bb.28:                              ##   in Loop: Header=BB0_24 Depth=1
	leal	12(%rbx), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jle	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_24 Depth=1
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_toosmall
LBB0_30:                                ##   in Loop: Header=BB0_24 Depth=1
	movslq	%ebx, %rbx
	leaq	(%r15,%rbx,4), %rsi
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_windres_get_32
	movq	%rax, 80(%r12)
	leaq	(%r15,%rbx,4), %rsi
	addq	$16, %rsi
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_windres_get_32
	movq	%rax, 72(%r12)
	leaq	(%r15,%rbx,4), %rsi
	addq	$32, %rsi
	movq	%r13, %r14
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_windres_get_32
	movq	%rax, 64(%r12)
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_24 Depth=1
	leal	8(%rbx), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jle	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_toosmall
LBB0_27:                                ##   in Loop: Header=BB0_24 Depth=1
	movslq	%ebx, %rbx
	leaq	(%r15,%rbx,4), %rsi
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_windres_get_32
	movq	%rax, 64(%r12)
	leaq	(%r15,%rbx,4), %rsi
	addq	$16, %rsi
	movq	%r13, %r14
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_windres_get_32
	movq	%rax, 72(%r12)
	movq	$0, 80(%r12)
LBB0_31:                                ##   in Loop: Header=BB0_24 Depth=1
	xorl	%eax, %eax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	cmpq	$0, 8(%r13)
	setne	%al
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rcx,%rax,2), %eax
	addl	$10, %eax
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jle	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_24 Depth=1
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_toosmall
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
LBB0_33:                                ##   in Loop: Header=BB0_24 Depth=1
	movslq	%ecx, %rbx
	leaq	(%r15,%rbx,4), %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, 56(%r12)
	leaq	(%r15,%rbx,4), %rsi
	addq	$8, %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, 48(%r12)
	leaq	(%r15,%rbx,4), %rsi
	addq	$16, %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, 40(%r12)
	leaq	(%r15,%rbx,4), %rsi
	addq	$24, %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, 32(%r12)
	cmpq	$0, 8(%r13)
	leaq	32(%r15,%rbx,4), %rsi
	movq	%r14, %rdi
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_24 Depth=1
	movl	$4, %edx
	callq	_windres_get_32
	jmp	LBB0_36
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_24 Depth=1
	movl	$2, %edx
	callq	_windres_get_16
LBB0_36:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	%r14, %r13
	movq	%rax, 24(%r12)
	xorl	%eax, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, 8(%rcx)
	setne	%al
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rcx,%rax,2), %ebx
	leal	10(%rcx,%rax,2), %eax
	leaq	20(%r12), %rsi
	cltq
	leaq	(%r15,%rax,4), %rdx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %ecx
	subl	%eax, %ecx
	movq	%r13, %rdi
	callq	_get_resid
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, -48(%rbp)
	addl	%ebx, %eax
	addl	$10, %eax
	movq	%r12, %rsi
	addq	$16, %rsi
	movslq	%eax, %rbx
	leaq	(%r15,%rbx,4), %rdx
	movl	%r14d, %ecx
	subl	%ebx, %ecx
	movq	%r13, %rdi
	callq	_get_resid
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, -48(%rbp)
	movq	%r15, %rcx
	leal	(%rbx,%rax), %r15d
	addl	%eax, %ebx
	addl	$2, %ebx
	cmpl	%r14d, %ebx
	jle	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_24 Depth=1
	leaq	L_.str.6(%rip), %rdi
	movq	%rcx, %r14
	callq	__
	movl	%eax, %edi
	callq	_toosmall
	movq	%r14, %rcx
LBB0_38:                                ##   in Loop: Header=BB0_24 Depth=1
	movslq	%r15d, %rax
	leaq	(%rcx,%rax,4), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, %r14
	testl	%r14d, %r14d
	je	LBB0_39
## %bb.40:                              ##   in Loop: Header=BB0_24 Depth=1
	addl	$5, %r15d
	andl	$-4, %r15d
	leal	(%r15,%r14), %ebx
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	jle	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_24 Depth=1
	leaq	L_.str.7(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_toosmall
	jmp	LBB0_42
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	$0, 8(%r12)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_43
LBB0_44:
	movl	$16, %edi
	callq	_res_alloc
	movq	_RES_TYPE_DIALOG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dialog header"

L_.str.1:                               ## @.str.1
	.asciz	"unexpected DIALOGEX version %d"

	.comm	_DS_SETFONT,4,2                 ## @DS_SETFONT
L_.str.2:                               ## @.str.2
	.asciz	"dialog font point size"

L_.str.3:                               ## @.str.3
	.asciz	"dialogex font information"

L_.str.4:                               ## @.str.4
	.asciz	"dialog control"

L_.str.5:                               ## @.str.5
	.asciz	"dialogex control"

L_.str.6:                               ## @.str.6
	.asciz	"dialog control end"

L_.str.7:                               ## @.str.7
	.asciz	"dialog control data"

	.comm	_RCDATA_BUFFER,4,2              ## @RCDATA_BUFFER
	.comm	_RES_TYPE_DIALOG,4,2            ## @RES_TYPE_DIALOG
	.no_dead_strip	_bin_to_res_dialog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bin_to_res_dialog
_bin_to_res_dialog:                     ; @bin_to_res_dialog
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	cmp	w2, #17
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_toosmall
LBB0_2:
	mov	w0, #96
	bl	_res_alloc
	mov	x27, x0
	add	x1, x20, #8
	mov	x0, x21
	mov	w2, #2
	bl	_windres_get_16
	mov	w8, #65535
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #2
	bl	_windres_get_16
	mov	x23, x0
	cmp	w23, #1
	b.eq	LBB0_5
; %bb.4:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x23
	bl	_fatal
LBB0_5:
	mov	w0, #32
	bl	_res_alloc
	str	x0, [x27, #8]
	add	x1, x20, #16
	mov	x0, x21
	mov	w2, #4
	bl	_windres_get_32
	ldr	x8, [x27, #8]
	str	x0, [x8, #24]
	add	x1, x20, #32
	mov	x0, x21
	mov	w2, #4
	bl	_windres_get_32
	str	x0, [x27, #88]
	add	x1, x20, #48
	mov	x0, x21
	mov	w2, #4
	bl	_windres_get_32
	str	w0, [x27]
	mov	w23, #16
	b	LBB0_7
LBB0_6:
	str	xzr, [x27, #8]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #4
	bl	_windres_get_32
	str	w0, [x27]
	add	x1, x20, #16
	mov	x0, x21
	mov	w2, #4
	bl	_windres_get_32
	str	x0, [x27, #88]
	mov	w23, #8
LBB0_7:
	add	w22, w23, #10
	cmp	w22, w19
	b.le	LBB0_9
; %bb.8:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_toosmall
LBB0_9:
	add	x24, x20, w23, uxtw #2
	mov	x0, x21
	mov	x1, x24
	mov	w2, #2
	bl	_windres_get_16
	mov	x23, x0
	add	x1, x24, #8
	mov	x0, x21
	mov	w2, #2
	bl	_windres_get_16
	str	x0, [x27, #80]
	add	x1, x24, #16
	mov	x0, x21
	mov	w2, #2
	bl	_windres_get_16
	str	x0, [x27, #72]
	add	x1, x24, #24
	mov	x0, x21
	mov	w2, #2
	bl	_windres_get_16
	str	x0, [x27, #64]
	add	x1, x24, #32
	mov	x0, x21
	mov	w2, #2
	bl	_windres_get_16
	str	x0, [x27, #56]
	add	x1, x27, #52
	add	x2, x20, w22, uxtw #2
	sub	w3, w19, w22
	mov	x0, x21
	bl	_get_resid
	add	x1, x27, #48
	add	w22, w0, w22
	sub	w3, w19, w22
	add	x2, x20, w22, sxtw #2
	mov	x0, x21
	bl	_get_resid
	str	w0, [sp, #12]
	add	w22, w0, w22
	sub	w2, w19, w22
	add	x1, x20, w22, sxtw #2
	add	x3, sp, #12
	mov	x0, x21
	bl	_get_unicode
	str	x0, [x27, #40]
	ldr	w9, [sp, #12]
	add	w8, w22, w9, lsl #1
	cbnz	w9, LBB0_11
; %bb.10:
	str	xzr, [x27, #40]
LBB0_11:
	add	w25, w8, #2
	ldr	w8, [x27]
Lloh6:
	adrp	x9, _DS_SETFONT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DS_SETFONT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.12:
	mov	x8, x25
	sxtw	x24, w8
	add	x22, x24, #2
	cmp	w22, w19
	b.le	LBB0_14
; %bb.13:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	bl	_toosmall
LBB0_14:
	add	x1, x20, x24, lsl #2
	mov	x0, x21
	mov	w2, #2
	bl	_windres_get_16
	str	x0, [x27, #32]
	ldr	x8, [x27, #8]
	cbz	x8, LBB0_18
; %bb.15:
	add	w25, w25, #6
	cmp	w25, w19
	b.le	LBB0_17
; %bb.16:
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	bl	_toosmall
LBB0_17:
	add	x24, x20, x22, lsl #2
	mov	x0, x21
	mov	x1, x24
	mov	w2, #2
	bl	_windres_get_16
	ldr	x8, [x27, #8]
	str	x0, [x8, #16]
	add	x1, x24, #8
	mov	x0, x21
	mov	w2, #1
	bl	_windres_get_8
	ldr	x8, [x27, #8]
	str	x0, [x8, #8]
	add	x1, x24, #12
	mov	x0, x21
	mov	w2, #1
	bl	_windres_get_8
	ldr	x8, [x27, #8]
	str	w0, [x8]
	mov	x22, x25
LBB0_18:
	add	x1, x20, w22, sxtw #2
	sub	w2, w19, w22
	add	x3, sp, #12
	mov	x0, x21
	bl	_get_unicode
	str	x0, [x27, #24]
	ldr	w8, [sp, #12]
	add	w8, w22, w8, lsl #1
	add	w25, w8, #2
	b	LBB0_21
LBB0_19:
	stp	xzr, xzr, [x27, #24]
	ldr	x8, [x27, #8]
	cbz	x8, LBB0_21
; %bb.20:
	stp	xzr, xzr, [x8, #8]
	mov	w9, #1
	str	w9, [x8]
LBB0_21:
	mov	x22, x27
	str	xzr, [x22, #16]!
	cmp	w23, #1
	b.ge	LBB0_25
LBB0_22:
	mov	w0, #16
	bl	_res_alloc
Lloh13:
	adrp	x8, _RES_TYPE_DIALOG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RES_TYPE_DIALOG@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	str	x27, [x0]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_23:                                ;   in Loop: Header=BB0_25 Depth=1
	mov	w0, #32
	bl	_res_alloc
	str	x0, [x28, #8]
	str	xzr, [x0, #24]
Lloh16:
	adrp	x8, _RCDATA_BUFFER@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RCDATA_BUFFER@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	str	w26, [x0]
	add	x8, x20, x24, lsl #2
	str	x8, [x0, #8]
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	str	xzr, [x28]
	str	x28, [x22]
	mov	x22, x28
	subs	w23, w23, #1
	b.eq	LBB0_22
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	sxtw	x8, w25
	add	x8, x8, #3
	and	x26, x8, #0xfffffffffffffffc
	mov	w0, #88
	bl	_res_alloc
	mov	x28, x0
	ldr	x8, [x27, #8]
	cbz	x8, LBB0_29
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	add	w25, w26, #12
	cmp	w25, w19
	b.le	LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=1
Lloh19:
	adrp	x0, l_.str.5@PAGE
Lloh20:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	bl	_toosmall
LBB0_28:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x26, x20, x26, lsl #2
	mov	x0, x21
	mov	x1, x26
	mov	w2, #4
	bl	_windres_get_32
	str	x0, [x28, #80]
	add	x1, x26, #16
	mov	x0, x21
	mov	w2, #4
	bl	_windres_get_32
	str	x0, [x28, #72]
	add	x1, x26, #32
	mov	x0, x21
	mov	w2, #4
	bl	_windres_get_32
	str	x0, [x28, #64]
	b	LBB0_32
LBB0_29:                                ;   in Loop: Header=BB0_25 Depth=1
	add	w25, w26, #8
	cmp	w25, w19
	b.le	LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_25 Depth=1
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	bl	_toosmall
LBB0_31:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x26, x20, w26, sxtw #2
	mov	x0, x21
	mov	x1, x26
	mov	w2, #4
	bl	_windres_get_32
	str	x0, [x28, #64]
	add	x1, x26, #16
	mov	x0, x21
	mov	w2, #4
	bl	_windres_get_32
	stp	x0, xzr, [x28, #72]
LBB0_32:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	x8, [x27, #8]
	cmp	x8, #0
	cset	w8, ne
	add	w8, w25, w8, lsl #1
	add	w8, w8, #10
	cmp	w8, w19
	b.le	LBB0_34
; %bb.33:                               ;   in Loop: Header=BB0_25 Depth=1
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	bl	_toosmall
LBB0_34:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x26, x20, w25, sxtw #2
	mov	x0, x21
	mov	x1, x26
	mov	w2, #2
	bl	_windres_get_16
	str	x0, [x28, #56]
	add	x1, x26, #8
	mov	x0, x21
	mov	w2, #2
	bl	_windres_get_16
	str	x0, [x28, #48]
	add	x1, x26, #16
	mov	x0, x21
	mov	w2, #2
	bl	_windres_get_16
	str	x0, [x28, #40]
	add	x1, x26, #24
	mov	x0, x21
	mov	w2, #2
	bl	_windres_get_16
	str	x0, [x28, #32]
	ldr	x8, [x27, #8]
	add	x1, x26, #32
	mov	x0, x21
	cbz	x8, LBB0_36
; %bb.35:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	w2, #4
	bl	_windres_get_32
	b	LBB0_37
LBB0_36:                                ;   in Loop: Header=BB0_25 Depth=1
	mov	w2, #2
	bl	_windres_get_16
LBB0_37:                                ;   in Loop: Header=BB0_25 Depth=1
	sxtw	x8, w25
	str	x0, [x28, #24]
	ldr	x9, [x27, #8]
	cmp	x9, #0
	mov	w9, #12
	mov	w10, #10
	csel	w9, w10, w9, eq
	add	x1, x28, #20
	add	x24, x9, x8
	sub	w3, w19, w24
	add	x2, x20, x24, lsl #2
	mov	x0, x21
	bl	_get_resid
	str	w0, [sp, #12]
	add	x24, x24, w0, sxtw
	add	x1, x28, #16
	add	x2, x20, x24, lsl #2
	sub	w3, w19, w24
	mov	x0, x21
	bl	_get_resid
	str	w0, [sp, #12]
	add	x24, x24, w0, sxtw
	add	w25, w24, #2
	cmp	w25, w19
	b.le	LBB0_39
; %bb.38:                               ;   in Loop: Header=BB0_25 Depth=1
Lloh25:
	adrp	x0, l_.str.6@PAGE
Lloh26:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	bl	_toosmall
LBB0_39:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x1, x20, x24, lsl #2
	mov	x0, x21
	mov	w2, #2
	bl	_windres_get_16
	mov	x26, x0
	cbz	w26, LBB0_42
; %bb.40:                               ;   in Loop: Header=BB0_25 Depth=1
	add	x8, x24, #5
	and	x24, x8, #0xfffffffffffffffc
	add	w25, w24, w26
	cmp	w25, w19
	b.le	LBB0_23
; %bb.41:                               ;   in Loop: Header=BB0_25 Depth=1
Lloh27:
	adrp	x0, l_.str.7@PAGE
Lloh28:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	__
	bl	_toosmall
	b	LBB0_23
LBB0_42:                                ;   in Loop: Header=BB0_25 Depth=1
	str	xzr, [x28, #8]
	b	LBB0_24
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dialog header"

l_.str.1:                               ; @.str.1
	.asciz	"unexpected DIALOGEX version %d"

	.comm	_DS_SETFONT,4,2                 ; @DS_SETFONT
l_.str.2:                               ; @.str.2
	.asciz	"dialog font point size"

l_.str.3:                               ; @.str.3
	.asciz	"dialogex font information"

l_.str.4:                               ; @.str.4
	.asciz	"dialog control"

l_.str.5:                               ; @.str.5
	.asciz	"dialogex control"

l_.str.6:                               ; @.str.6
	.asciz	"dialog control end"

l_.str.7:                               ; @.str.7
	.asciz	"dialog control data"

	.comm	_RCDATA_BUFFER,4,2              ; @RCDATA_BUFFER
	.comm	_RES_TYPE_DIALOG,4,2            ; @RES_TYPE_DIALOG
	.no_dead_strip	_bin_to_res_dialog
.subsections_via_symbols
