	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_rc_messagetable
_write_rc_messagetable:                 ## @write_rc_messagetable
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movl	$6, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_fwrite
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_write_rc_datablock
	movl	$10, %edi
	movq	%rbx, %rsi
	callq	_fputc
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_wr_printcomment
	movq	_BIN_MESSAGETABLE_SIZE@GOTPCREL(%rip), %r14
	cmpq	%r15, (%r14)
	ja	LBB0_16
## %bb.1:
	movl	8(%r13), %esi
	movq	_wrtarget@GOTPCREL(%rip), %rdi
	movl	%r15d, %edx
	callq	_windres_get_32
	movq	_BIN_MESSAGETABLE_BLOCK_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	imulq	%rax, %rcx
	addq	(%r14), %rcx
	cmpq	%r15, %rcx
	ja	LBB0_16
## %bb.2:
	testq	%rax, %rax
	je	LBB0_17
## %bb.3:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%ecx, %ecx
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdx
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r13d, %r12d
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	cmpq	-88(%rbp), %rcx                 ## 8-byte Folded Reload
	je	LBB0_15
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movl	%r12d, %r13d
	movq	(%rdx), %rax
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	leaq	(,%rcx,4), %rcx
	leaq	(%rcx,%rcx,2), %r12
	movl	8(%rax,%r12), %esi
	movq	_wrtarget@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	movq	%rdx, %rbx
	movl	$4, %edx
	callq	_windres_get_32
	movq	%rax, %r15
	movq	(%rbx), %rax
	movl	4(%rax,%r12), %esi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_windres_get_32
	movq	%rax, %r14
	movq	(%rbx), %rax
	movl	(%rax,%r12), %esi
	movq	_wrtarget@GOTPCREL(%rip), %rdi
	movl	$4, %edx
	callq	_windres_get_32
	movq	%r15, %rcx
	cmpq	%r14, %r15
	ja	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r15
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	_BIN_MESSAGETABLE_ITEM_SIZE@GOTPCREL(%rip), %rax
	subq	(%rax), %r13
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_ascii_print
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	%r12, %rdi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wr_printcomment
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movq	-104(%rbp), %r14                ## 8-byte Reload
	cmpq	%r14, %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	ja	LBB0_13
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_BIN_MESSAGETABLE_ITEM_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%r15, %rax
	movl	$1, %r12d
	cmpq	%rbx, %rax
	ja	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	12(%rdx,%r15,4), %esi
	movq	_wrtarget@GOTPCREL(%rip), %rdi
	movq	%rdx, %r14
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, %r13
	movl	8(%r14,%r15,4), %esi
	movq	_wrtarget@GOTPCREL(%rip), %rdi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%r14, %rdx
	movq	%rax, %r14
	leaq	(%r15,%r13), %rax
	cmpq	%rbx, %rax
	ja	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%rdx, %rbx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	leaq	L_.str.3(%rip), %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_wr_printcomment
	movq	%r12, %rdi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wr_printcomment
	notq	%r14
	movq	(%rbx,%r15,4), %rsi
	movq	_MESSAGE_RESOURCE_UNICODE@GOTPCREL(%rip), %rax
	testq	%r14, (%rax)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	_BIN_MESSAGETABLE_ITEM_SIZE@GOTPCREL(%rip), %rax
	subq	(%rax), %r13
	shrq	%r13
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_unicode_print
	jmp	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r13d, %r12d
	jmp	LBB0_14
LBB0_15:
	testl	%r12d, %r12d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_17
LBB0_16:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_wr_printcomment
LBB0_17:
	movq	%rbx, %rdi
	callq	_wr_print_flush
	leaq	L_.str.6(%rip), %rdi
	movl	$4, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fwrite                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BEGIN\n"

L_.str.2:                               ## @.str.2
	.asciz	"MC syntax dump"

	.comm	_BIN_MESSAGETABLE_SIZE,8,3      ## @BIN_MESSAGETABLE_SIZE
	.comm	_wrtarget,4,2                   ## @wrtarget
	.comm	_BIN_MESSAGETABLE_BLOCK_SIZE,8,3 ## @BIN_MESSAGETABLE_BLOCK_SIZE
	.comm	_BIN_MESSAGETABLE_ITEM_SIZE,8,3 ## @BIN_MESSAGETABLE_ITEM_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"MessageId = 0x%x"

L_.str.4:                               ## @.str.4
	.space	1

	.comm	_MESSAGE_RESOURCE_UNICODE,8,3   ## @MESSAGE_RESOURCE_UNICODE
L_.str.5:                               ## @.str.5
	.asciz	"Illegal data"

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

	.no_dead_strip	_write_rc_messagetable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_rc_messagetable
_write_rc_messagetable:                 ; @write_rc_messagetable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #6
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_write_rc_datablock
	mov	w0, #10
	mov	x1, x19
	bl	_fputc
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_wr_printcomment
Lloh4:
	adrp	x20, _BIN_MESSAGETABLE_SIZE@GOTPAGE
Lloh5:
	ldr	x20, [x20, _BIN_MESSAGETABLE_SIZE@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x8, x21
	b.hi	LBB0_16
; %bb.1:
	ldr	w1, [x22, #8]
Lloh6:
	adrp	x0, _wrtarget@GOTPAGE
Lloh7:
	ldr	x0, [x0, _wrtarget@GOTPAGEOFF]
	mov	x2, x21
	bl	_windres_get_32
	ldr	x8, [x20]
Lloh8:
	adrp	x9, _BIN_MESSAGETABLE_BLOCK_SIZE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BIN_MESSAGETABLE_BLOCK_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	madd	x8, x9, x0, x8
	cmp	x8, x21
	b.hi	LBB0_16
; %bb.2:
	cbz	x0, LBB0_17
; %bb.3:
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	mov	x9, #0
Lloh11:
	adrp	x25, _BIN_MESSAGETABLE_ITEM_SIZE@GOTPAGE
Lloh12:
	ldr	x25, [x25, _BIN_MESSAGETABLE_ITEM_SIZE@GOTPAGEOFF]
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldp	x0, x9, [sp, #16]               ; 16-byte Folded Reload
	add	x9, x9, #1
	cmp	x9, x0
	b.eq	LBB0_15
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x8, [x22]
	str	x9, [sp, #24]                   ; 8-byte Folded Spill
	add	x9, x9, x9, lsl #1
	lsl	x20, x9, #2
	add	x8, x8, x20
	ldr	w1, [x8, #8]
Lloh13:
	adrp	x23, _wrtarget@GOTPAGE
Lloh14:
	ldr	x23, [x23, _wrtarget@GOTPAGEOFF]
	mov	x0, x23
	mov	w2, #4
	bl	_windres_get_32
	mov	x26, x0
	ldr	x8, [x22]
	add	x8, x8, x20
	ldr	w1, [x8, #4]
	mov	x0, x23
	mov	w2, #4
	bl	_windres_get_32
	mov	x27, x0
	ldr	x8, [x22]
	ldr	w1, [x8, x20]
	mov	x0, x23
	mov	w2, #4
	bl	_windres_get_32
	cmp	x26, x27
	b.hi	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x28, x0
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x25]
	sub	x2, x22, x8
	mov	x0, x19
	bl	_ascii_print
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x19
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wr_printcomment
	add	x26, x26, #1
	cmp	x26, x27
	mov	x22, x23
	b.hi	LBB0_5
LBB0_10:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x25]
	add	x8, x8, x28
	cmp	x8, x21
	b.hi	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x23, x22
	add	x20, x22, x28, lsl #2
	ldr	w1, [x20, #12]
Lloh17:
	adrp	x24, _wrtarget@GOTPAGE
Lloh18:
	ldr	x24, [x24, _wrtarget@GOTPAGEOFF]
	mov	x0, x24
	mov	w2, #2
	bl	_windres_get_16
	mov	x22, x0
	ldr	w1, [x20, #8]
	mov	x0, x24
	mov	w2, #2
	bl	_windres_get_16
	add	x28, x22, x28
	cmp	x28, x21
	b.hi	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x24, x0
	str	x26, [sp]
	mov	x0, x19
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wr_printcomment
	mov	x0, x19
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wr_printcomment
Lloh23:
	adrp	x8, _MESSAGE_RESOURCE_UNICODE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MESSAGE_RESOURCE_UNICODE@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	ldr	x1, [x20]
	bics	xzr, x8, x24
	b.ne	LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x25]
	sub	x8, x22, x8
	lsr	x2, x8, #1
	mov	x0, x19
	bl	_unicode_print
	b	LBB0_9
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	x22, x23
	b	LBB0_5
LBB0_15:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_17
LBB0_16:
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_wr_printcomment
LBB0_17:
	mov	x0, x19
	bl	_wr_print_flush
Lloh28:
	adrp	x0, l_.str.6@PAGE
Lloh29:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	w1, #4
	mov	w2, #1
	mov	x3, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_fwrite
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BEGIN\n"

l_.str.2:                               ; @.str.2
	.asciz	"MC syntax dump"

	.comm	_BIN_MESSAGETABLE_SIZE,8,3      ; @BIN_MESSAGETABLE_SIZE
	.comm	_wrtarget,4,2                   ; @wrtarget
	.comm	_BIN_MESSAGETABLE_BLOCK_SIZE,8,3 ; @BIN_MESSAGETABLE_BLOCK_SIZE
	.comm	_BIN_MESSAGETABLE_ITEM_SIZE,8,3 ; @BIN_MESSAGETABLE_ITEM_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"MessageId = 0x%x"

l_.str.4:                               ; @.str.4
	.space	1

	.comm	_MESSAGE_RESOURCE_UNICODE,8,3   ; @MESSAGE_RESOURCE_UNICODE
l_.str.5:                               ; @.str.5
	.asciz	"Illegal data"

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

	.no_dead_strip	_write_rc_messagetable
.subsections_via_symbols
