	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_res_id
_read_res_id:                           ## @read_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_BIN_RES_ID@GOTPCREL(%rip), %r13
	movq	(%r13), %r8
	addq	$-2, %r8
	leaq	-64(%rbp), %rcx
	callq	_read_res_data
	movq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_windres_get_16
	cmpw	$-1, %ax
	jne	LBB0_2
## %bb.1:
	movq	-64(%rbp), %rcx
	movq	(%r13), %r8
	addq	$-2, %r8
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_read_res_data
	movl	$0, (%r14)
	movq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, 24(%r14)
	jmp	LBB0_3
LBB0_2:
	addl	$-2, (%r12)
	leaq	-44(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_read_unistring
	movl	$1, (%r14)
	movl	-44(%rbp), %ecx
	movl	%ecx, 8(%r14)
	movq	%rax, 16(%r14)
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIN_RES_ID,8,3                 ## @BIN_RES_ID
	.no_dead_strip	_read_res_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_res_id
_read_res_id:                           ; @read_res_id
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _BIN_RES_ID@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BIN_RES_ID@GOTPAGEOFF]
	ldr	x8, [x23]
	sub	x4, x8, #2
	add	x3, sp, #16
	bl	_read_res_data
	ldr	x1, [sp, #24]
	mov	x0, x20
	mov	w2, #2
	bl	_windres_get_16
	mvn	w8, w0
	tst	x8, #0xffff
	b.ne	LBB0_2
; %bb.1:
	ldr	x3, [sp, #16]
	ldr	x8, [x23]
	sub	x4, x8, #2
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_read_res_data
	str	wzr, [x19]
	ldr	x1, [sp, #16]
	mov	x0, x20
	mov	w2, #2
	bl	_windres_get_16
	str	x0, [x19, #24]
	b	LBB0_3
LBB0_2:
	ldr	w8, [x22]
	sub	w8, w8, #2
	str	w8, [x22]
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_read_unistring
	mov	w8, #1
	str	w8, [x19]
	ldr	w8, [sp, #12]
	str	w8, [x19, #8]
	str	x0, [x19, #16]
LBB0_3:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BIN_RES_ID,8,3                 ; @BIN_RES_ID
	.no_dead_strip	_read_res_id
.subsections_via_symbols
