	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_resid
_get_resid:                             ## @get_resid
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	cmpl	$1, %ecx
	jg	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_toosmall
LBB0_2:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$2, %edx
	callq	_windres_get_16
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jne	LBB0_6
## %bb.3:
	cmpl	$3, %r12d
	jg	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_toosmall
LBB0_5:
	movl	$0, (%r14)
	addq	$8, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, 16(%r14)
	movl	$4, %eax
	jmp	LBB0_7
LBB0_6:
	movl	$1, (%r14)
	leaq	8(%r14), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_get_unicode
	movl	%eax, 12(%r14)
	movl	8(%r14), %eax
	addl	%eax, %eax
	addl	$2, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"resource ID"

	.no_dead_strip	_get_resid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_resid
_get_resid:                             ; @get_resid
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	cmp	w3, #1
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_toosmall
LBB0_2:
	mov	x0, x20
	mov	x1, x21
	mov	w2, #2
	bl	_windres_get_16
	mov	w8, #65535
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.3:
	cmp	w22, #3
	b.gt	LBB0_5
; %bb.4:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_toosmall
LBB0_5:
	str	wzr, [x19]
	add	x1, x21, #8
	mov	x0, x20
	mov	w2, #2
	bl	_windres_get_16
	str	x0, [x19, #16]
	mov	w0, #4
	b	LBB0_7
LBB0_6:
	mov	w8, #1
	str	w8, [x19]
	add	x3, x19, #8
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_get_unicode
	str	w0, [x19, #12]
	ldr	w8, [x19, #8]
	lsl	w8, w8, #1
	add	w0, w8, #2
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"resource ID"

	.no_dead_strip	_get_resid
.subsections_via_symbols
