	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_res_id
_write_res_id:                          ## @write_res_id
	.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
	movq	%rdx, %rbx
	movl	%esi, %r13d
	movq	%rdi, %r12
	cmpq	$0, 24(%rdx)
	je	LBB0_8
## %bb.1:
	movl	8(%rbx), %r15d
	xorl	%r14d, %r14d
	testl	%r15d, %r15d
	cmovgl	%r15d, %r14d
	leal	4(,%r14,4), %eax
	testq	%r12, %r12
	je	LBB0_11
## %bb.2:
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_xmalloc
	testl	%r15d, %r15d
	jle	LBB0_3
## %bb.4:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %r14d
	xorl	%r15d, %r15d
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	movl	(%rax,%r15,4), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_windres_put_16
	incq	%r15
	addq	$64, %r13
	cmpq	%r15, %r14
	jne	LBB0_5
## %bb.6:
	shlq	$2, %r14
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_8:
	testq	%r12, %r12
	je	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_windres_put_16
	movl	(%rbx), %edx
	movq	%r12, %rdi
	callq	_windres_put_16
	movq	_BIN_RES_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-72(%rbp), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_set_windres_bfd_content
LBB0_10:
	movq	_BIN_RES_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_3:
	xorl	%r14d, %r14d
LBB0_7:
	shlq	$4, %r14
	movq	%rax, %rsi
	addq	%r14, %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	movq	%rax, %rbx
	callq	_windres_put_16
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_set_windres_bfd_content
	movl	%ebx, %eax
LBB0_11:
	addl	%r13d, %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	_write_res_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_res_id
_write_res_id:                          ; @write_res_id
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x2, #24]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	w25, [x22, #8]
	cmp	w25, #0
	csel	w24, w25, wzr, gt
	lsl	w8, w24, #2
	add	w21, w8, #4
	cbz	x20, LBB0_10
; %bb.2:
	mov	x0, x21
	bl	_xmalloc
	mov	x23, x0
	cmp	w25, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x26, #0
	lsl	x25, x24, #2
	mov	x24, x23
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #16]
	ldr	w2, [x8, x26]
	mov	x0, x20
	mov	x1, x24
	bl	_windres_put_16
	add	x26, x26, #4
	add	x24, x24, #64
	cmp	x25, x26
	b.ne	LBB0_4
	b	LBB0_9
LBB0_5:
Lloh0:
	adrp	x21, _BIN_RES_ID@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BIN_RES_ID@GOTPAGEOFF]
	cbz	x20, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	w2, #65535
	bl	_windres_put_16
	ldr	w2, [x22]
	mov	x0, x20
	bl	_windres_put_16
	ldr	w3, [x21]
	mov	x1, sp
	mov	x0, x20
	mov	x2, x19
	bl	_set_windres_bfd_content
LBB0_7:
	ldr	w21, [x21]
	b	LBB0_10
LBB0_8:
	mov	x25, #0
LBB0_9:
	add	x1, x23, x25, lsl #4
	mov	x0, x20
	mov	w2, #0
	bl	_windres_put_16
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	mov	x3, x21
	bl	_set_windres_bfd_content
LBB0_10:
	add	w0, w21, w19
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BIN_RES_ID,4,2                 ; @BIN_RES_ID
	.no_dead_strip	_write_res_id
.subsections_via_symbols
