	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nhmex_rbox_put_constraint
_nhmex_rbox_put_constraint:             ## @nhmex_rbox_put_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_uncore_box_is_fake
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	cmpq	$0, 8(%r14)
	je	LBB0_6
## %bb.2:
	movslq	(%r14), %rcx
	imulq	$715827883, %rcx, %rax          ## imm = 0x2AAAAAAB
	movq	%rax, %rdx
	shrq	$63, %rdx
	shrq	$32, %rax
	addl	%edx, %eax
	leal	(%rax,%rax), %edx
	leal	(%rdx,%rdx,2), %edx
	subl	%edx, %ecx
	xorl	%edx, %edx
	cmpl	$3, %ecx
	setge	%dl
	leal	(%rax,%rax,4), %eax
	addl	%ecx, %eax
	subl	%edx, %eax
	movslq	%eax, %rsi
	shlq	$2, %rsi
	addq	(%rbx), %rsi
	movl	%ecx, %eax
	andl	$-2, %eax
	cmpl	$2, %eax
	jne	LBB0_4
## %bb.3:
	shll	$3, %ecx
	addb	$-16, %cl
	movl	$1, %edi
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %edi
	callq	_atomic_sub
	jmp	LBB0_5
LBB0_4:
	movq	%rsi, %rdi
	callq	_atomic_dec
LBB0_5:
	movq	$0, 8(%r14)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nhmex_rbox_put_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_put_constraint
_nhmex_rbox_put_constraint:             ; @nhmex_rbox_put_constraint
	.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	x19, x1
	mov	x20, x0
	bl	_uncore_box_is_fake
	cbnz	x0, LBB0_6
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	w8, [x19]
	mov	w9, #43691
	movk	w9, #10922, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	lsr	x9, x9, #32
	add	w9, w9, w10
	mov	w10, #6
	msub	w8, w9, w10, w8
	cmp	w8, #2
	cset	w10, gt
	add	w9, w9, w9, lsl #2
	add	w9, w9, w8
	sub	w9, w9, w10
	ldr	x10, [x20]
	add	x1, x10, w9, sxtw #2
	and	w9, w8, #0xfffffffe
	cmp	w9, #2
	b.ne	LBB0_4
; %bb.3:
	lsl	w8, w8, #3
	sub	w8, w8, #16
	mov	w9, #1
	lsl	w0, w9, w8
	bl	_atomic_sub
	b	LBB0_5
LBB0_4:
	mov	x0, x1
	bl	_atomic_dec
LBB0_5:
	str	xzr, [x19, #8]
LBB0_6:
	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	_nhmex_rbox_put_constraint
.subsections_via_symbols
