	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function res_to_bin_fontdir
_res_to_bin_fontdir:                    ## @res_to_bin_fontdir
	.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
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	leaq	2(%rsi), %r12
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	xorl	%r13d, %r13d
	leaq	-56(%rbp), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	4(%rbx), %rax
	addq	%rax, %r12
	addq	$2, %r12
	movq	16(%rbx), %rbx
	incl	%r13d
	testq	%rbx, %rbx
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r15, %r15
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_windres_put_16
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movl	$2, %ecx
	callq	_set_windres_bfd_content
	movl	4(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rsi
	leaq	2(%r12), %rdx
	movq	%r15, %rdi
	callq	_set_windres_bfd_content
	jmp	LBB0_6
LBB0_1:
	xorl	%r13d, %r13d
LBB0_7:
	testq	%r15, %r15
	je	LBB0_9
## %bb.8:
	leaq	-56(%rbp), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_windres_put_16
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	$2, %ecx
	callq	_set_windres_bfd_content
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_res_to_bin_fontdir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function res_to_bin_fontdir
_res_to_bin_fontdir:                    ; @res_to_bin_fontdir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	add	x19, x1, #2
	cbz	x2, LBB0_6
; %bb.1:
	mov	x22, x2
	mov	w23, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x8, [x22, #4]
	add	x8, x19, x8
	add	x19, x8, #2
	ldr	x22, [x22, #16]
	add	w23, w23, #1
	cbz	x22, LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x21, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x22]
	mov	x1, sp
	mov	x0, x21
	bl	_windres_put_16
	mov	x1, sp
	mov	x0, x21
	mov	x2, x19
	mov	w3, #2
	bl	_set_windres_bfd_content
	ldr	w3, [x22, #4]
	cbz	w3, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x22, #8]
	add	x2, x19, #2
	mov	x0, x21
	bl	_set_windres_bfd_content
	b	LBB0_2
LBB0_6:
	mov	w23, #0
LBB0_7:
	cbz	x21, LBB0_9
; %bb.8:
	mov	x1, sp
	mov	x0, x21
	mov	x2, x23
	bl	_windres_put_16
	mov	x1, sp
	mov	x0, x21
	mov	x2, x20
	mov	w3, #2
	bl	_set_windres_bfd_content
LBB0_9:
	ldr	x8, [sp, #8]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_res_to_bin_fontdir
.subsections_via_symbols
