	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resid_to_bin
_resid_to_bin:                          ## @resid_to_bin
	.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	%esi, %r14d
	movq	%rdi, %rbx
	leaq	16(%rbp), %r12
	cmpl	$0, 32(%rbp)
	je	LBB0_1
## %bb.4:
	movq	%rbx, %r15
	movq	8(%r12), %r12
	testq	%r12, %r12
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_5
## %bb.6:
	movq	%r12, %rdi
	callq	_unichar_len
	movl	%eax, %r14d
	jmp	LBB0_7
LBB0_1:
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_windres_put_16
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_windres_put_16
	movq	_BIN_RES_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_set_windres_bfd_content
LBB0_3:
	movq	_BIN_RES_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_13
LBB0_5:
	xorl	%r14d, %r14d
LBB0_7:
	leal	4(,%r14,4), %ebx
	testq	%r15, %r15
	je	LBB0_8
## %bb.9:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_reswr_alloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	movq	%r15, %rbx
	jle	LBB0_12
## %bb.10:
	movl	-64(%rbp), %r13d                ## 4-byte Reload
	xorl	%r15d, %r15d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%r15,4), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_windres_put_16
	incq	%r15
	addq	$64, %r14
	cmpq	%r15, %r13
	jne	LBB0_11
LBB0_12:
	movslq	-64(%rbp), %rax                 ## 4-byte Folded Reload
	shlq	$6, %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	addq	%rax, %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_windres_put_16
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_set_windres_bfd_content
	jmp	LBB0_13
LBB0_8:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_13:
	addl	%r14d, %ebx
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIN_RES_ID,4,2                 ## @BIN_RES_ID
	.no_dead_strip	_resid_to_bin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resid_to_bin
_resid_to_bin:                          ; @resid_to_bin
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x2, #16]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	x0, [x21, #8]
	cbz	x0, LBB0_6
; %bb.2:
	bl	_unichar_len
	mov	x23, x0
	b	LBB0_7
LBB0_3:
Lloh0:
	adrp	x22, _BIN_RES_ID@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BIN_RES_ID@GOTPAGEOFF]
	cbz	x20, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	w2, #65535
	bl	_windres_put_16
	ldr	w2, [x21]
	mov	x0, x20
	bl	_windres_put_16
	ldr	w3, [x22]
	mov	x1, sp
	mov	x0, x20
	mov	x2, x19
	bl	_set_windres_bfd_content
LBB0_5:
	ldr	w22, [x22]
	b	LBB0_12
LBB0_6:
	mov	w23, #0
LBB0_7:
	lsl	w8, w23, #2
	add	w22, w8, #4
	cbz	x20, LBB0_12
; %bb.8:
	mov	x0, x22
	bl	_reswr_alloc
	mov	x24, x0
	cmp	w23, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x26, #0
	mov	w8, w23
	lsl	x27, x8, #2
	mov	x25, x24
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	w2, [x8, x26]
	mov	x0, x20
	mov	x1, x25
	bl	_windres_put_16
	add	x26, x26, #4
	add	x25, x25, #64
	cmp	x27, x26
	b.ne	LBB0_10
LBB0_11:
	sxtw	x8, w23
	add	x1, x24, x8, lsl #6
	mov	x0, x20
	mov	w2, #0
	bl	_windres_put_16
	mov	x0, x20
	mov	x1, x24
	mov	x2, x19
	mov	x3, x22
	bl	_set_windres_bfd_content
LBB0_12:
	add	w0, w22, w19
	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	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BIN_RES_ID,4,2                 ; @BIN_RES_ID
	.no_dead_strip	_resid_to_bin
.subsections_via_symbols
