	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function define_fontdir_rcdata
_define_fontdir_rcdata:                 ## @define_fontdir_rcdata
	.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	%rdx, %rbx
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movl	%edi, %edx
	movq	_RT_FONTDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_resources@GOTPCREL(%rip), %rdi
	movl	$1033, %ecx                     ## imm = 0x409
	xorl	%r8d, %r8d
	callq	_define_standard_resource
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_rcdata_render_as_buffer
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	-64(%rbp), %rdx
	movq	_wrtarget@GOTPCREL(%rip), %rdi
	movq	%rax, %rsi
	callq	_windres_get_16
	testq	%rax, %rax
	jle	LBB0_1
## %bb.3:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	incq	%rax
	movl	$2, %edx
	xorl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	decq	%rax
	cmpq	$1, %rax
	jle	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movl	$32, %edi
	callq	_res_alloc
	movq	%rax, %r14
	movq	%r12, %r15
	shlq	$4, %r15
	movq	8(%rbx,%r15), %rsi
	movq	-64(%rbp), %rdx
	subq	%r12, %rdx
	movq	_wrtarget@GOTPCREL(%rip), %rdi
	callq	_windres_get_16
	movq	%rax, 24(%r14)
	leaq	(%rbx,%r12,4), %rax
	movq	%rax, 16(%r14)
	movq	(%rbx,%r15), %rdi
	callq	_strlen
	movslq	%eax, %r13
	leaq	1(%r13), %rdi
	addq	(%rbx,%r15), %rdi
	callq	_strlen
	cltq
	leaq	(%r12,%r13), %rcx
	incq	%rcx
	leaq	(%rax,%rcx), %rdx
	addq	$57, %rdx
	movq	%rdx, %rcx
	subq	%r12, %rcx
	movq	%rcx, 8(%r14)
	movq	$0, (%r14)
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rcx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_8:
	movq	_RES_TYPE_FONTDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 16(%rcx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_resources,4,2                  ## @resources
	.comm	_RT_FONTDIR,4,2                 ## @RT_FONTDIR
	.comm	_wrtarget,4,2                   ## @wrtarget
	.comm	_RES_TYPE_FONTDIR,4,2           ## @RES_TYPE_FONTDIR
	.no_dead_strip	_define_fontdir_rcdata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function define_fontdir_rcdata
_define_fontdir_rcdata:                 ; @define_fontdir_rcdata
	.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	x21, x2
	str	x1, [sp]                        ; 8-byte Folded Spill
	mov	x2, x0
Lloh0:
	adrp	x8, _RT_FONTDIR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RT_FONTDIR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, _resources@GOTPAGE
Lloh4:
	ldr	x0, [x0, _resources@GOTPAGEOFF]
	mov	w3, #1033
	mov	w4, #0
	bl	_define_standard_resource
	mov	x20, x0
	add	x1, sp, #8
	mov	x0, x21
	bl	_rcdata_render_as_buffer
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	ldr	x2, [sp, #8]
Lloh5:
	adrp	x0, _wrtarget@GOTPAGE
Lloh6:
	ldr	x0, [x0, _wrtarget@GOTPAGEOFF]
	mov	x1, x21
	bl	_windres_get_16
	cmp	x0, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x24, #0
	mov	x26, #0
	add	x25, x0, #1
	mov	w27, #2
Lloh7:
	adrp	x22, _wrtarget@GOTPAGE
Lloh8:
	ldr	x22, [x22, _wrtarget@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	x23, [x26]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	x25, x25, #1
	mov	x26, x23
	mov	x27, x8
	cmp	x25, #1
	b.le	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #32
	bl	_res_alloc
	mov	x23, x0
	add	x28, x21, x27, lsl #4
	ldr	x1, [x28, #8]
	ldr	x8, [sp, #8]
	sub	x2, x8, x27
	mov	x0, x22
	bl	_windres_get_16
	add	x8, x21, x27, lsl #2
	stp	x8, x0, [x23, #16]
	ldr	x0, [x28]
	bl	_strlen
	add	w8, w0, #1
	sxtw	x19, w8
	ldr	x8, [x28]
	add	x0, x8, x19
	bl	_strlen
	add	x8, x27, x19
	add	x8, x8, w0, sxtw
	add	x8, x8, #57
	sub	x9, x8, x27
	stp	xzr, x9, [x23]
	cbnz	x24, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x23
	b	LBB0_4
LBB0_7:
	mov	x24, #0
LBB0_8:
Lloh9:
	adrp	x8, _RES_TYPE_FONTDIR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RES_TYPE_FONTDIR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	str	x24, [x20, #8]
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	w8, [x8]
	str	w8, [x20]
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_resources,4,2                  ; @resources
	.comm	_RT_FONTDIR,4,2                 ; @RT_FONTDIR
	.comm	_wrtarget,4,2                   ; @wrtarget
	.comm	_RES_TYPE_FONTDIR,4,2           ; @RES_TYPE_FONTDIR
	.no_dead_strip	_define_fontdir_rcdata
.subsections_via_symbols
