	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scif_put_pages                 ## -- Begin function scif_put_pages
	.p2align	4, 0x90
_scif_put_pages:                        ## @scif_put_pages
	.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
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_2
## %bb.4:
	movq	(%r14), %rax
	movq	_SCIFEP_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.5:
	movq	24(%r14), %r15
	movq	(%r15), %rax
	movq	_SCIFEP_CONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.6:
	movq	_SCIFEP_DISCONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movq	_ENOTCONN@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	8(%r15), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_scif_put_window
	cmpl	$0, 16(%r14)
	je	LBB0_9
## %bb.10:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	(%rbx), %esi
	movl	8(%rbx), %edi
	shll	$2, %esi
	callq	_scif_free
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	shll	$3, %esi
	callq	_scif_free
	movq	%rbx, %rdi
	callq	_kfree
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_9:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_scif_put_pages.cold.1
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function scif_put_pages.cold.1
_scif_put_pages.cold.1:                 ## @scif_put_pages.cold.1
	.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	%rdx, %rbx
	movq	%rsi, %r14
	addq	$12, %rdi
	callq	_list_del
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	movl	12(%rbx), %esi
	callq	_scif_drain_dma_intr
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SCIFEP_MAGIC,8,3               ## @SCIFEP_MAGIC
	.comm	_SCIFEP_CONNECTED,8,3           ## @SCIFEP_CONNECTED
	.comm	_SCIFEP_DISCONNECTED,8,3        ## @SCIFEP_DISCONNECTED
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.comm	_SCIF_MUNMAP,4,2                ## @SCIF_MUNMAP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scif_put_pages                 ; -- Begin function scif_put_pages
	.p2align	2
_scif_put_pages:                        ; @scif_put_pages
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #16]
	cbz	x20, LBB0_6
; %bb.2:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _SCIFEP_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SCIFEP_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	ldr	x21, [x20, #24]
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _SCIFEP_CONNECTED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SCIFEP_CONNECTED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _SCIFEP_DISCONNECTED@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SCIFEP_DISCONNECTED@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_9
; %bb.4:
	add	x22, x21, #8
	mov	x0, x22
	bl	_mutex_lock
	ldr	w1, [x19]
	mov	x0, x20
	bl	_scif_put_window
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_10
; %bb.5:
	mov	x0, x22
	bl	_mutex_unlock
	ldr	w0, [x19, #8]
	ldr	w8, [x19]
	lsl	w1, w8, #2
	bl	_scif_free
	ldp	w8, w0, [x19]
	lsl	w1, w8, #3
	bl	_scif_free
	mov	x0, x19
	bl	_kfree
	mov	w0, #0
	b	LBB0_8
LBB0_6:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
LBB0_9:
Lloh11:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
	b	LBB0_7
LBB0_10:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_scif_put_pages.cold.1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function scif_put_pages.cold.1
_scif_put_pages.cold.1:                 ; @scif_put_pages.cold.1
	.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, x2
	mov	x20, x1
	add	x0, x0, #12
	bl	_list_del
	mov	x0, x20
	bl	_mutex_unlock
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	ldr	w1, [x19, #12]
	bl	_scif_drain_dma_intr
	brk	#0x1
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SCIFEP_MAGIC,8,3               ; @SCIFEP_MAGIC
	.comm	_SCIFEP_CONNECTED,8,3           ; @SCIFEP_CONNECTED
	.comm	_SCIFEP_DISCONNECTED,8,3        ; @SCIFEP_DISCONNECTED
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.comm	_SCIF_MUNMAP,4,2                ; @SCIF_MUNMAP
.subsections_via_symbols
