	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_rc_directory
_write_rc_directory:                    ## @write_rc_directory
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movq	%r8, %r15
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	cmpq	$0, (%rsi)
	jne	LBB0_4
## %bb.1:
	cmpq	$0, 8(%r13)
	jne	LBB0_4
## %bb.2:
	cmpq	$0, 16(%r13)
	jne	LBB0_4
## %bb.3:
	cmpq	$0, 24(%r13)
	je	LBB0_10
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_wr_printcomment
	movq	(%r13), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_wr_printcomment
LBB0_6:
	movq	8(%r13), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_wr_printcomment
LBB0_8:
	movq	16(%r13), %rdx
	movq	24(%r13), %rcx
	movq	%rdx, %rax
	orq	%rcx, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_wr_printcomment
LBB0_10:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	32(%r13), %r13
	testq	%r13, %r13
	jne	LBB0_11
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	leaq	16(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpq	$0, 8(%r13)
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r15, %r8
	movl	%ebx, %r9d
	callq	_write_rc_subdir
LBB0_26:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	32(%r13), %r13
	testq	%r13, %r13
	je	LBB0_27
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$3, %ebx
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$2, %ebx
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$1, %ebx
	jne	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	16(%r13), %r12
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$3, %ebx
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$0, 24(%r13)
	jne	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	16(%r13), %rax
	cmpq	$65535, %rax                    ## imm = 0xFFFF
	ja	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%r15), %ecx
	cmpq	%rcx, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_SUBLANG_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	movl	$-1, %esi
	shll	%cl, %esi
	notl	%esi
	movl	%eax, %edx
	andl	%esi, %edx
	shrq	%cl, %rax
	movzbl	%al, %ecx
	movq	%r14, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_wr_print
	movl	16(%r13), %eax
	movl	%eax, (%r15)
	jmp	LBB0_20
LBB0_24:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_wr_printcomment
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
LBB0_25:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r15, %r8
	callq	_write_rc_resource
	jmp	LBB0_26
LBB0_27:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 32(%rax)
	je	LBB0_29
## %bb.28:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wr_print_flush                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"COFF information not part of RC"

L_.str.1:                               ## @.str.1
	.asciz	"Time stamp: %u"

L_.str.2:                               ## @.str.2
	.asciz	"Characteristics: %u"

L_.str.3:                               ## @.str.3
	.asciz	"Version major:%d minor:%d"

L_.str.4:                               ## @.str.4
	.asciz	"LANGUAGE %u, %u\n"

	.comm	_SUBLANG_SHIFT,4,2              ## @SUBLANG_SHIFT
L_.str.5:                               ## @.str.5
	.asciz	"Resource at unexpected level %d"

	.no_dead_strip	_write_rc_directory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_rc_directory
_write_rc_directory:                    ; @write_rc_directory
	.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	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x24, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x8, [x1]
	cbnz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x23, #8]
	cbnz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x23, #16]
	cbnz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x23, #24]
	cbz	x8, LBB0_10
LBB0_4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_wr_printcomment
	ldr	x8, [x23]
	cbz	x8, LBB0_6
; %bb.5:
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_wr_printcomment
LBB0_6:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_8
; %bb.7:
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_wr_printcomment
LBB0_8:
	ldp	x8, x9, [x23, #16]
	orr	x10, x8, x9
	cbz	x10, LBB0_10
; %bb.9:
	stp	x8, x9, [sp]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_wr_printcomment
LBB0_10:
	ldr	x25, [x23, #32]
	cbz	x25, LBB0_25
; %bb.11:
	mov	w28, #-1
Lloh8:
	adrp	x26, l_.str.4@PAGE
Lloh9:
	add	x26, x26, l_.str.4@PAGEOFF
Lloh10:
	adrp	x27, l_.str.5@PAGE
Lloh11:
	add	x27, x27, l_.str.5@PAGEOFF
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x19
	mov	x1, x25
	mov	x2, x24
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	bl	_write_rc_subdir
	ldr	x25, [x25, #32]
	cbz	x25, LBB0_23
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	cmp	w20, #3
	b.eq	LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x8, x25, #16
	cmp	w20, #1
	csel	x9, x24, x8, ne
	cmp	w20, #2
	csel	x22, x8, x22, eq
	csel	x24, x24, x9, eq
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x25, #8]
	cbnz	x8, LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	w20, #3
	b.ne	LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w3, [x25]
	mov	x0, x19
	mov	x1, x24
	mov	x2, x22
	b	LBB0_22
LBB0_18:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x25, #24]
	cbnz	w8, LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x25, #16]
	ldr	w9, [x21]
	lsr	x10, x8, #16
	cmp	x10, #0
	ccmp	x8, x9, #4, eq
	b.eq	LBB0_15
; %bb.20:                               ;   in Loop: Header=BB0_13 Depth=1
Lloh12:
	adrp	x9, _SUBLANG_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SUBLANG_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	lsl	w10, w28, w9
	bic	w2, w8, w10
	lsr	x8, x8, x9
	and	w3, w8, #0xff
	mov	x0, x19
	mov	x1, x26
	bl	_wr_print
	ldr	x8, [x25, #16]
	str	w8, [x21]
	b	LBB0_15
LBB0_21:                                ;   in Loop: Header=BB0_13 Depth=1
	str	x20, [sp]
	mov	x0, x19
	mov	x1, x27
	bl	_wr_printcomment
	ldr	w3, [x25]
	mov	x0, x19
	mov	x1, x24
	mov	x2, #0
LBB0_22:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x4, x21
	bl	_write_rc_resource
	ldr	x25, [x25, #32]
	cbnz	x25, LBB0_13
LBB0_23:
	ldr	x8, [x23, #32]
	cbz	x8, LBB0_25
; %bb.24:
	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_25:
	mov	x0, x19
	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
	b	_wr_print_flush
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"COFF information not part of RC"

l_.str.1:                               ; @.str.1
	.asciz	"Time stamp: %u"

l_.str.2:                               ; @.str.2
	.asciz	"Characteristics: %u"

l_.str.3:                               ; @.str.3
	.asciz	"Version major:%d minor:%d"

l_.str.4:                               ; @.str.4
	.asciz	"LANGUAGE %u, %u\n"

	.comm	_SUBLANG_SHIFT,4,2              ; @SUBLANG_SHIFT
l_.str.5:                               ; @.str.5
	.asciz	"Resource at unexpected level %d"

	.no_dead_strip	_write_rc_directory
.subsections_via_symbols
