	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_rc_dialog
_write_rc_dialog:                       ## @write_rc_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rsi), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	8(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_2:
	leaq	80(%r14), %rbx
	cmpq	$0, 96(%r14)
	je	LBB0_4
## %bb.3:
	cmpq	$0, 88(%r14)
	jg	LBB0_5
LBB0_4:
	cmpq	$0, (%rbx)
	je	LBB0_6
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	movl	$6, %esi
	movl	$1, %edx
	movq	%r15, %rcx
	callq	_fwrite
	movq	16(%rbx), %rax
	movq	%rax, 16(%rsp)
	movups	(%rbx), %xmm0
	movups	%xmm0, (%rsp)
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_res_id_print
	movl	$10, %edi
	movq	%r15, %rsi
	callq	_fputc
LBB0_6:
	cmpq	$0, 72(%r14)
	je	LBB0_8
## %bb.7:
	leaq	L_.str.4(%rip), %rdi
	movl	$8, %esi
	movl	$1, %edx
	movq	%r15, %rcx
	callq	_fwrite
	movq	72(%r14), %rsi
	movq	%r15, %rdi
	movl	$-1, %edx
	callq	_unicode_print_quoted
	movl	$10, %edi
	movq	%r15, %rsi
	callq	_fputc
LBB0_8:
	leaq	48(%r14), %rbx
	cmpq	$0, 64(%r14)
	je	LBB0_10
## %bb.9:
	cmpq	$0, 56(%r14)
	jg	LBB0_11
LBB0_10:
	cmpq	$0, (%rbx)
	je	LBB0_12
LBB0_11:
	leaq	L_.str.5(%rip), %rdi
	movl	$5, %esi
	movl	$1, %edx
	movq	%r15, %rcx
	callq	_fwrite
	movq	16(%rbx), %rax
	movq	%rax, 16(%rsp)
	movups	(%rbx), %xmm0
	movups	%xmm0, (%rsp)
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_res_id_print
	movl	$10, %edi
	movq	%r15, %rsi
	callq	_fputc
LBB0_12:
	cmpq	$0, 32(%r14)
	je	LBB0_19
## %bb.13:
	movl	40(%r14), %edx
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_fprintf
	movq	32(%r14), %rsi
	movq	%r15, %rdi
	movl	$-1, %edx
	callq	_unicode_print_quoted
	movq	24(%r14), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	movq	(%rax), %rdx
	movq	8(%rax), %rcx
	movq	%rdx, %rsi
	orq	%rcx, %rsi
	jne	LBB0_17
## %bb.15:
	cmpl	$1, 16(%rax)
	je	LBB0_18
## %bb.16:
	xorl	%ecx, %ecx
LBB0_17:
	movl	16(%rax), %r8d
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_18:
	movl	$10, %edi
	movq	%r15, %rsi
	callq	_fputc
LBB0_19:
	leaq	L_.str.8(%rip), %rdi
	movl	$6, %esi
	movl	$1, %edx
	movq	%r15, %rcx
	callq	_fwrite
	movq	16(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_22
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_write_rc_dialog_control
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_20
LBB0_22:
	leaq	L_.str.9(%rip), %rdi
	movl	$4, %esi
	movl	$1, %edx
	movq	%r15, %rcx
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fwrite                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"STYLE 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"EXSTYLE 0x%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"CLASS "

L_.str.4:                               ## @.str.4
	.asciz	"CAPTION "

L_.str.5:                               ## @.str.5
	.asciz	"MENU "

L_.str.6:                               ## @.str.6
	.asciz	"FONT %d, "

L_.str.7:                               ## @.str.7
	.asciz	", %d, %d, %d"

L_.str.8:                               ## @.str.8
	.asciz	"BEGIN\n"

L_.str.9:                               ## @.str.9
	.asciz	"END\n"

	.no_dead_strip	_write_rc_dialog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_rc_dialog
_write_rc_dialog:                       ; @write_rc_dialog
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x1]
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
; %bb.1:
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_fprintf
LBB0_2:
	add	x21, x20, #80
	ldr	x8, [x20, #96]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x20, #88]
	cmp	x8, #0
	b.gt	LBB0_5
LBB0_4:
	ldr	x8, [x21]
	cbz	x8, LBB0_6
LBB0_5:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w1, #6
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
	ldr	q0, [x21]
	str	q0, [sp, #32]
	ldr	x8, [x21, #16]
	str	x8, [sp, #48]
	add	x1, sp, #32
	mov	x0, x19
	mov	w2, #1
	bl	_res_id_print
	mov	w0, #10
	mov	x1, x19
	bl	_fputc
LBB0_6:
	ldr	x8, [x20, #72]
	cbz	x8, LBB0_8
; %bb.7:
Lloh6:
	adrp	x0, l_.str.4@PAGE
Lloh7:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	w1, #8
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
	ldr	x1, [x20, #72]
	mov	x0, x19
	mov	w2, #-1
	bl	_unicode_print_quoted
	mov	w0, #10
	mov	x1, x19
	bl	_fputc
LBB0_8:
	add	x21, x20, #48
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	x8, [x20, #56]
	cmp	x8, #0
	b.gt	LBB0_11
LBB0_10:
	ldr	x8, [x21]
	cbz	x8, LBB0_12
LBB0_11:
Lloh8:
	adrp	x0, l_.str.5@PAGE
Lloh9:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	w1, #5
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
	ldr	q0, [x21]
	str	q0, [sp, #32]
	ldr	x8, [x21, #16]
	str	x8, [sp, #48]
	add	x1, sp, #32
	mov	x0, x19
	mov	w2, #0
	bl	_res_id_print
	mov	w0, #10
	mov	x1, x19
	bl	_fputc
LBB0_12:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_19
; %bb.13:
	ldr	x8, [x20, #40]
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.6@PAGE
Lloh11:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	ldr	x1, [x20, #32]
	mov	x0, x19
	mov	w2, #-1
	bl	_unicode_print_quoted
	ldr	x9, [x20, #24]
	cbz	x9, LBB0_18
; %bb.14:
	ldp	x8, x10, [x9]
	orr	x11, x8, x10
	cbnz	x11, LBB0_17
; %bb.15:
	ldr	w10, [x9, #16]
	cmp	w10, #1
	b.eq	LBB0_18
; %bb.16:
	mov	x10, #0
LBB0_17:
	ldr	w9, [x9, #16]
	stp	x10, x9, [sp, #8]
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.7@PAGE
Lloh13:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_fprintf
LBB0_18:
	mov	w0, #10
	mov	x1, x19
	bl	_fputc
LBB0_19:
Lloh14:
	adrp	x0, l_.str.8@PAGE
Lloh15:
	add	x0, x0, l_.str.8@PAGEOFF
	mov	w1, #6
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
	ldr	x20, [x20, #16]
	cbz	x20, LBB0_21
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_write_rc_dialog_control
	ldr	x20, [x20]
	cbnz	x20, LBB0_20
LBB0_21:
Lloh16:
	adrp	x0, l_.str.9@PAGE
Lloh17:
	add	x0, x0, l_.str.9@PAGEOFF
	mov	w1, #4
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
	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
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"STYLE 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"EXSTYLE 0x%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"CLASS "

l_.str.4:                               ; @.str.4
	.asciz	"CAPTION "

l_.str.5:                               ; @.str.5
	.asciz	"MENU "

l_.str.6:                               ; @.str.6
	.asciz	"FONT %d, "

l_.str.7:                               ; @.str.7
	.asciz	", %d, %d, %d"

l_.str.8:                               ; @.str.8
	.asciz	"BEGIN\n"

l_.str.9:                               ; @.str.9
	.asciz	"END\n"

	.no_dead_strip	_write_rc_dialog
.subsections_via_symbols
