	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bin_to_res_string
_bin_to_res_string:                     ## @bin_to_res_string
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	$8, %edi
	callq	_res_alloc
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%r13d, %eax
	leaq	(%r14,%rax,4), %r14
	subl	%r13d, %ebx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	incq	%r15
	cmpq	$16, %r15
	je	LBB0_10
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	cmpl	$1, %ebx
	jg	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_toosmall
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$2, %r13d
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	shlq	$4, %r15
	movl	%ecx, (%rax,%r15)
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	leal	(%rcx,%rcx), %eax
	addl	$2, %eax
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %ebx
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movq	%rcx, %rbx
	callq	__
	movl	%eax, %edi
	callq	_toosmall
	movq	%rbx, %rcx
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	leal	(,%rcx,8), %edi
	movq	%rcx, %rbx
	callq	_res_alloc
	movq	%rax, %r14
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%r14, 8(%rax,%r15)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %r15
	movl	%ebx, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %eax
	andl	$-2, %eax
	leaq	(%r15,%rax,4), %rsi
	movq	%r12, %rdi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, (%r14,%rbx,4)
	addq	$2, %rbx
	decq	%r13
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_9
LBB0_10:
	movl	$16, %edi
	callq	_res_alloc
	movq	_RES_TYPE_STRINGTABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stringtable string length"

L_.str.1:                               ## @.str.1
	.asciz	"stringtable string"

	.comm	_RES_TYPE_STRINGTABLE,4,2       ## @RES_TYPE_STRINGTABLE
	.no_dead_strip	_bin_to_res_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bin_to_res_string
_bin_to_res_string:                     ; @bin_to_res_string
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x21, x1
	mov	x22, x0
	mov	w0, #8
	bl	_res_alloc
	mov	x19, x0
	mov	x27, #0
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, w28, uxtw #2
	sub	w20, w20, w28
	add	x27, x27, #1
	cmp	x27, #16
	b.eq	LBB0_9
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cmp	w20, #1
	b.gt	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_toosmall
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w28, #2
	mov	x0, x22
	mov	x1, x21
	mov	w2, #2
	bl	_windres_get_16
	mov	x26, x0
	ldr	x8, [x19]
	lsl	x9, x27, #4
	str	w26, [x8, x9]
	cbz	w26, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	lsl	w8, w26, #1
	add	w28, w8, #2
	cmp	w20, w28
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	bl	_toosmall
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	lsl	w0, w26, #3
	bl	_res_alloc
	mov	x25, x0
	mov	x24, #0
	ldr	x8, [x19]
	add	x8, x8, x27, lsl #4
	str	x0, [x8, #8]
	add	x23, x21, #8
	and	x26, x26, #0xffffffff
LBB0_8:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	and	x8, x24, #0xfffffffe
	add	x1, x23, x8, lsl #2
	mov	x0, x22
	mov	w2, #2
	bl	_windres_get_16
	str	x0, [x25], #8
	add	x24, x24, #2
	subs	x26, x26, #1
	b.ne	LBB0_8
	b	LBB0_1
LBB0_9:
	mov	w0, #16
	bl	_res_alloc
Lloh4:
	adrp	x8, _RES_TYPE_STRINGTABLE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RES_TYPE_STRINGTABLE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	str	x19, [x0]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stringtable string length"

l_.str.1:                               ; @.str.1
	.asciz	"stringtable string"

	.comm	_RES_TYPE_STRINGTABLE,4,2       ; @RES_TYPE_STRINGTABLE
	.no_dead_strip	_bin_to_res_string
.subsections_via_symbols
