	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rvu_lookup_rsrc
_rvu_lookup_rsrc:                       ## @rvu_lookup_rsrc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	shll	$24, %edx
	shll	$16, %ecx
	orl	%edx, %ecx
	orl	$8192, %ecx                     ## imm = 0x2000
	movl	(%rsi), %edx
	movl	4(%rsi), %esi
	callq	_rvu_write64
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	callq	_rvu_read64
	testl	$8192, %eax                     ## imm = 0x2000
	jne	LBB0_1
## %bb.2:
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	callq	_rvu_read64
	movl	%eax, %ecx
	andl	$4096, %ecx                     ## imm = 0x1000
	andl	$4095, %eax                     ## imm = 0xFFF
	xorl	%edx, %edx
	cmpq	$1, %rcx
	sbbl	%edx, %edx
	orl	%edx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rvu_lookup_rsrc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rvu_lookup_rsrc
_rvu_lookup_rsrc:                       ; @rvu_lookup_rsrc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	lsl	w8, w2, #24
	orr	w8, w8, w3, lsl #16
	orr	w3, w8, #0x2000
	ldr	w1, [x1, #4]
	ldr	w2, [x20]
	bl	_rvu_write64
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w2, w1, [x20]
	mov	x0, x19
	bl	_rvu_read64
	tbnz	w0, #13, LBB0_1
; %bb.2:
	ldp	w2, w1, [x20]
	mov	x0, x19
	bl	_rvu_read64
	and	w8, w0, #0xfff
	tst	x0, #0x1000
	csinv	w0, w8, wzr, ne
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rvu_lookup_rsrc
.subsections_via_symbols
