	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scif_destroy_remote_lookup
_scif_destroy_remote_lookup:            ## @scif_destroy_remote_lookup
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rsi)
	je	LBB0_17
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	cmpl	$0, 4(%rsi)
	jle	LBB0_10
## %bb.2:
	xorl	%ebx, %ebx
	movq	_SCIF_NR_ADDR_IN_PAGE@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	addl	(%r12), %r13d
	addq	$8, %rbx
	cmpl	4(%r15), %r13d
	jge	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r15), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rax,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_scif_unmap_single
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rax,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_scif_unmap_single
	jmp	LBB0_9
LBB0_10:
	movq	40(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	movl	(%r15), %ecx
	movl	32(%r15), %esi
	shll	$3, %ecx
	movq	%r14, %rdx
	callq	_scif_free_coherent
LBB0_12:
	movq	24(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	movl	(%r15), %ecx
	movl	16(%r15), %esi
	shll	$3, %ecx
	movq	%r14, %rdx
	callq	_scif_free_coherent
LBB0_14:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	movq	%r14, %rsi
	movl	$48, %edx
	callq	_scif_unmap_single
LBB0_16:
	movl	$0, (%r15)
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_SCIF_NR_ADDR_IN_PAGE,8,3       ## @SCIF_NR_ADDR_IN_PAGE
	.no_dead_strip	_scif_destroy_remote_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scif_destroy_remote_lookup
_scif_destroy_remote_lookup:            ; @scif_destroy_remote_lookup
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x1]
	cbz	w8, LBB0_17
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1, #4]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x21, #0
	mov	w22, #0
Lloh0:
	adrp	x23, _SCIF_NR_ADDR_IN_PAGE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SCIF_NR_ADDR_IN_PAGE@GOTPAGEOFF]
Lloh2:
	adrp	x24, _PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _PAGE_SIZE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	ldr	w9, [x19, #4]
	add	x21, x21, #8
	add	w22, w22, w8
	cmp	w22, w9
	b.ge	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x8, x21]
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x24]
	mov	x1, x20
	bl	_scif_unmap_single
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x8, x21]
	cbz	x0, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x24]
	mov	x1, x20
	bl	_scif_unmap_single
	b	LBB0_3
LBB0_10:
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_12
; %bb.11:
	ldr	w1, [x19, #32]
	ldr	w8, [x19]
	lsl	w3, w8, #3
	mov	x2, x20
	bl	_scif_free_coherent
LBB0_12:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_14
; %bb.13:
	ldr	w1, [x19, #16]
	ldr	w8, [x19]
	lsl	w3, w8, #3
	mov	x2, x20
	bl	_scif_free_coherent
LBB0_14:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_16
; %bb.15:
	mov	x1, x20
	mov	w2, #48
	bl	_scif_unmap_single
LBB0_16:
	str	wzr, [x19]
LBB0_17:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_SCIF_NR_ADDR_IN_PAGE,8,3       ; @SCIF_NR_ADDR_IN_PAGE
	.no_dead_strip	_scif_destroy_remote_lookup
.subsections_via_symbols
