	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function waddr_to_live_reg_index
_waddr_to_live_reg_index:               ## @waddr_to_live_reg_index
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edi killed $edi def $rdi
	cmpl	$31, %edi
	jg	LBB0_2
## %bb.1:
	leal	32(%rdi), %eax
	testl	%esi, %esi
	cmovel	%edi, %eax
	popq	%rbp
	retq
LBB0_2:
	movq	_QPU_W_ACC3@GOTPCREL(%rip), %rcx
	movl	$-1, %eax
	cmpl	%edi, (%rcx)
	jl	LBB0_4
## %bb.3:
	movq	_QPU_W_ACC0@GOTPCREL(%rip), %rax
	subl	(%rax), %edi
	addl	$64, %edi
	movl	%edi, %eax
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QPU_W_ACC3,4,2                 ## @QPU_W_ACC3
	.comm	_QPU_W_ACC0,4,2                 ## @QPU_W_ACC0
	.no_dead_strip	_waddr_to_live_reg_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function waddr_to_live_reg_index
_waddr_to_live_reg_index:               ; @waddr_to_live_reg_index
	.cfi_startproc
; %bb.0:
	cmp	w0, #31
	b.gt	LBB0_2
; %bb.1:
	add	w8, w0, #32
	cmp	w1, #0
	csel	w0, w0, w8, eq
	ret
LBB0_2:
Lloh0:
	adrp	x8, _QPU_W_ACC3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QPU_W_ACC3@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ge	LBB0_4
; %bb.3:
	mov	w0, #-1
	ret
LBB0_4:
Lloh3:
	adrp	x8, _QPU_W_ACC0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QPU_W_ACC0@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sub	w8, w0, w8
	add	w0, w8, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_QPU_W_ACC3,4,2                 ; @QPU_W_ACC3
	.comm	_QPU_W_ACC0,4,2                 ; @QPU_W_ACC0
	.no_dead_strip	_waddr_to_live_reg_index
.subsections_via_symbols
