	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nhmex_rbox_get_constraint
_nhmex_rbox_get_constraint:             ## @nhmex_rbox_get_constraint
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_uncore_box_is_fake
	testl	%eax, %eax
	je	LBB0_1
LBB0_2:
	movslq	20(%r14), %rax
	imulq	$715827883, %rax, %rcx          ## imm = 0x2AAAAAAB
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$32, %rcx
	addl	%edx, %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,2), %ecx
	movl	%eax, %r15d
	subl	%ecx, %r15d
	movl	24(%r14), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	%r15d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	-1(%r12), %r15d
	cmpl	$3, %r12d
	movl	%r12d, %ecx
	cmovgel	%r15d, %ecx
	cltq
	imulq	$715827883, %rax, %rax          ## imm = 0x2AAAAAAB
	movq	%rax, %rdx
	shrq	$63, %rdx
	shrq	$32, %rax
	addl	%edx, %eax
	leal	(%rax,%rax,4), %eax
	addl	%ecx, %eax
	movq	(%rbx), %r13
	movslq	%eax, %r14
	shlq	$5, %r14
	leaq	(%r14,%r13), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%r13), %rbx
	addq	$24, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	cmpl	$1, %r12d
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	jg	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	addq	%r13, %r14
	addq	$28, %r14
	movq	%r14, %rdi
	callq	_atomic_read
	testl	%eax, %eax
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	(%rbx), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpl	24(%rcx), %eax
	jne	LBB0_19
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	%r12d, %eax
	andl	$-2, %eax
	cmpl	$2, %eax
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	leal	-2(%r12), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	leal	-16(,%r12,8), %ecx
	movl	$255, %ebx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	addq	%r13, %r14
	addq	$28, %r14
	movq	%r14, %rdi
	callq	_atomic_read
	movl	%eax, %edi
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	movl	$8, %edx
	callq	___BITS_VALUE
	testl	%eax, %eax
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	(%r13), %eax
	xorl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	testl	%ebx, %eax
	jne	LBB0_19
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=2
	leaq	(%r14,%r13), %rbx
	addq	$28, %rbx
	movq	%rbx, %rdi
	callq	_atomic_read
	testl	%eax, %eax
	je	LBB0_13
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movl	%r12d, %eax
	incl	%eax
	testb	$1, %r12b
	cmovel	%eax, %r15d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movslq	20(%rax), %rax
	imulq	$715827883, %rax, %rcx          ## imm = 0x2AAAAAAB
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$32, %rcx
	addl	%edx, %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,2), %ecx
	movl	%eax, %edx
	subl	%ecx, %edx
	cmpl	%edx, %r15d
	je	LBB0_20
## %bb.22:                              ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$3, %r15d
	je	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	%r15d, %r12d
	cmpl	$2, %r15d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_4
## %bb.24:                              ##   in Loop: Header=BB0_3 Depth=1
	sarl	$8, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_3 Depth=1
	shll	$8, -44(%rbp)                   ## 4-byte Folded Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_3
LBB0_1:
	cmpl	$0, 16(%r14)
	jne	LBB0_18
	jmp	LBB0_2
LBB0_7:
	movq	%r14, %rdi
	callq	_atomic_inc
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	24(%r15), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_14
LBB0_20:
	movq	_constraint_empty@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_11:
	movl	$1, %edi
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	movq	%r14, %rsi
	callq	_atomic_add
	movl	(%r13), %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%eax, %ecx
	andl	%ebx, %ecx
	xorl	%eax, %ecx
	movl	%ecx, (%r13)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_13:
	movq	%rbx, %rdi
	callq	_atomic_inc
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movslq	24(%r15), %rax
	movq	%rax, 8(%r13,%r14)
	movslq	12(%r15), %rax
	movq	%rax, 16(%r13,%r14)
LBB0_14:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	callq	_uncore_box_is_fake
	testl	%eax, %eax
	jne	LBB0_18
## %bb.15:
	movslq	20(%r15), %rax
	imulq	$715827883, %rax, %rcx          ## imm = 0x2AAAAAAB
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$32, %rcx
	addl	%edx, %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,2), %ecx
	subl	%ecx, %eax
	cmpl	%eax, %r12d
	je	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_nhmex_rbox_alter_er
LBB0_17:
	movl	$1, 16(%r15)
LBB0_18:
	xorl	%eax, %eax
LBB0_21:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_constraint_empty,4,2           ## @constraint_empty
	.no_dead_strip	_nhmex_rbox_get_constraint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nhmex_rbox_get_constraint
_nhmex_rbox_get_constraint:             ; @nhmex_rbox_get_constraint
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	bl	_uncore_box_is_fake
	cbz	w0, LBB0_14
LBB0_1:
	mov	w11, #43691
	movk	w11, #10922, lsl #16
	ldp	w8, w9, [x19, #20]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	str	w9, [sp, #4]                    ; 4-byte Folded Spill
	mul	x9, x8, x11
	lsr	x10, x9, #63
	lsr	x9, x9, #32
	add	w9, w9, w10
	mov	w10, #6
	msub	w25, w9, w10, w8
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	subs	w9, w25, #1
	subs	w23, w25, #2
	csel	w9, w9, w25, gt
	smull	x8, w8, w11
	lsr	x10, x8, #63
	lsr	x8, x8, #32
	add	w8, w8, w10
	add	w8, w8, w8, lsl #2
	add	w8, w8, w9
	ldr	x24, [x20]
	sxtw	x27, w8
	add	x21, x24, x27, lsl #5
	add	x22, x21, #24
	mov	x0, x22
	bl	_spin_lock_irqsave
	subs	w26, w25, #1
	b.gt	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x21, #28
	mov	x0, x23
	bl	_atomic_read
	cbz	w0, LBB0_15
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x21]
	ldr	w9, [x19, #24]
	cmp	w8, w9
	b.ne	LBB0_9
	b	LBB0_15
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	and	w8, w25, #0xfffffffe
	cmp	w8, #2
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	lsl	w20, w23, #3
	mov	w8, #255
	lsl	w28, w8, w20
	add	x8, x24, x27, lsl #5
	add	x24, x8, #28
	mov	x0, x24
	bl	_atomic_read
	mov	x1, x23
	mov	w2, #8
	bl	___BITS_VALUE
	cbz	w0, LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x21]
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	eor	w8, w8, w9
	tst	w8, w28
	b.ne	LBB0_9
	b	LBB0_17
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x24, x27, lsl #5
	add	x23, x20, #28
	mov	x0, x23
	bl	_atomic_read
	cbz	w0, LBB0_18
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	tst	w25, #0x1
	csinc	w25, w26, w25, ne
	ldrsw	x8, [x19, #20]
	mov	w11, #43691
	movk	w11, #10922, lsl #16
	mul	x9, x8, x11
	lsr	x10, x9, #63
	lsr	x9, x9, #32
	add	w9, w9, w10
	mov	w10, #6
	msub	w9, w9, w10, w8
	cmp	w25, w9
	b.eq	LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w25, #3
	b.eq	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w25, #2
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	b.ne	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	asr	w9, w9, #8
	str	w9, [sp, #4]                    ; 4-byte Folded Spill
	b	LBB0_2
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	lsl	w9, w9, #8
	str	w9, [sp, #4]                    ; 4-byte Folded Spill
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_2
LBB0_14:
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_20
	b	LBB0_1
LBB0_15:
	mov	x0, x23
	bl	_atomic_inc
	ldr	w8, [x19, #24]
	str	w8, [x21]
	b	LBB0_19
LBB0_16:
Lloh0:
	adrp	x0, _constraint_empty@GOTPAGE
Lloh1:
	ldr	x0, [x0, _constraint_empty@GOTPAGEOFF]
	b	LBB0_24
LBB0_17:
	mov	w8, #1
	lsl	w0, w8, w20
	mov	x1, x24
	bl	_atomic_add
	ldr	w8, [x21]
	bic	w8, w8, w28
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	and	w9, w28, w9
	orr	w8, w8, w9
	str	w8, [x21]
	b	LBB0_19
LBB0_18:
	mov	x0, x23
	bl	_atomic_inc
	ldrsw	x8, [x19, #24]
	ldrsw	x9, [x19, #12]
	stp	x8, x9, [x20, #8]
LBB0_19:
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	bl	_uncore_box_is_fake
	cbz	w0, LBB0_21
LBB0_20:
	mov	x0, #0
	b	LBB0_24
LBB0_21:
	ldrsw	x8, [x19, #20]
	mov	w9, #43691
	movk	w9, #10922, lsl #16
	mul	x9, x8, x9
	lsr	x10, x9, #63
	lsr	x9, x9, #32
	add	w9, w9, w10
	mov	w10, #6
	msub	w8, w9, w10, w8
	cmp	w25, w8
	b.eq	LBB0_23
; %bb.22:
	mov	x0, x20
	mov	x1, x19
	bl	_nhmex_rbox_alter_er
LBB0_23:
	mov	x0, #0
	mov	w8, #1
	str	w8, [x19, #16]
LBB0_24:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_constraint_empty,4,2           ; @constraint_empty
	.no_dead_strip	_nhmex_rbox_get_constraint
.subsections_via_symbols
