	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rem_res_range
_rem_res_range:                         ## @rem_res_range
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	movq	%rdx, %r13
	movl	%esi, -64(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	callq	_mlx4_priv
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_mlx4_tlock
	movl	%eax, %edi
	callq	_spin_lock_irq
	xorl	%r15d, %r15d
	testl	%r14d, %r14d
	jle	LBB0_13
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movslq	%r14d, %r15
	addq	%r13, %r15
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	shlq	$2, %r14
	movq	%r13, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_res_tracker_lookup
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_remove_ok
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%r15, %rbx
	jl	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	%r14, %rdi
	movq	%r13, %rsi
	callq	_res_tracker_lookup
	movq	%rax, %rbx
	leaq	8(%rax), %rdi
	movq	(%r12), %rsi
	addq	%r14, %rsi
	callq	_rb_erase
	leaq	4(%rbx), %rdi
	callq	_list_del
	movq	%rbx, %rdi
	callq	_kfree
	incq	%r13
	cmpq	%r15, %r13
	jl	LBB0_6
## %bb.7:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_8:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_EPERM@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_12
LBB0_11:
	movl	%eax, %r15d
LBB0_12:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_13:
	movq	%rbx, %rdi
	callq	_mlx4_tlock
	movl	%eax, %edi
	callq	_spin_unlock_irq
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EPERM,4,2                      ## @EPERM
	.no_dead_strip	_rem_res_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rem_res_range
_rem_res_range:                         ; @rem_res_range
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x5
	mov	x23, x4
	mov	x25, x3
	mov	x20, x2
	mov	x24, x1
	mov	x19, x0
	bl	_mlx4_priv
	mov	x21, x0
	mov	x0, x19
	bl	_mlx4_tlock
	bl	_spin_lock_irq
	cmp	w25, #1
	b.lt	LBB0_8
; %bb.1:
	add	x27, x20, w25, sxtw
	mov	x25, x20
	mov	w28, w23
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x0, x8, x28, lsl #2
	mov	x1, x25
	bl	_res_tracker_lookup
	cbz	x0, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x0]
	cmp	w8, w24
	b.ne	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x1, x23
	mov	x2, x22
	bl	_remove_ok
	cbnz	w0, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x25, x25, #1
	cmp	x25, x27
	b.lt	LBB0_2
; %bb.6:
	lsl	x23, x28, #2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x0, x8, x23
	mov	x1, x20
	bl	_res_tracker_lookup
	mov	x22, x0
	add	x0, x0, #8
	ldr	x8, [x21]
	add	x1, x8, x23
	bl	_rb_erase
	add	x0, x22, #4
	bl	_list_del
	mov	x0, x22
	bl	_kfree
	add	x20, x20, #1
	cmp	x20, x27
	b.lt	LBB0_7
LBB0_8:
	mov	w26, #0
	b	LBB0_13
LBB0_9:
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh2:
	adrp	x8, _EPERM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_13
LBB0_12:
	mov	x26, x0
LBB0_13:
	mov	x0, x19
	bl	_mlx4_tlock
	bl	_spin_unlock_irq
	mov	x0, x26
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EPERM,4,2                      ; @EPERM
	.no_dead_strip	_rem_res_range
.subsections_via_symbols
