	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_zone_free_entries_unique  ## -- Begin function mlx4_zone_free_entries_unique
	.p2align	4, 0x90
_mlx4_zone_free_entries_unique:         ## @mlx4_zone_free_entries_unique
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MLX4_ZONE_ALLOC_FLAGS_NO_OVERLAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.2:
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	leaq	4(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	___mlx4_find_zone_by_uid_unique
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	___mlx4_free_from_zone
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_1:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	movl	$-1, %ebx
LBB0_5:
	movq	%r15, %rdi
	callq	_spin_unlock
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_ZONE_ALLOC_FLAGS_NO_OVERLAP,4,2 ## @MLX4_ZONE_ALLOC_FLAGS_NO_OVERLAP
	.comm	_EFAULT,4,2                     ## @EFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_zone_free_entries_unique  ; -- Begin function mlx4_zone_free_entries_unique
	.p2align	2
_mlx4_zone_free_entries_unique:         ; @mlx4_zone_free_entries_unique
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MLX4_ZONE_ALLOC_FLAGS_NO_OVERLAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX4_ZONE_ALLOC_FLAGS_NO_OVERLAP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock
	mov	x0, x22
	mov	x1, x21
	bl	___mlx4_find_zone_by_uid_unique
	cbz	x0, LBB0_4
; %bb.2:
	mov	x1, x21
	mov	x2, x20
	bl	___mlx4_free_from_zone
	mov	w20, #0
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _EFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_4:
	mov	w20, #-1
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_ZONE_ALLOC_FLAGS_NO_OVERLAP,4,2 ; @MLX4_ZONE_ALLOC_FLAGS_NO_OVERLAP
	.comm	_EFAULT,4,2                     ; @EFAULT
.subsections_via_symbols
