	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hl_unpin_host_memory           ## -- Begin function hl_unpin_host_memory
	.p2align	4, 0x90
_hl_unpin_host_memory:                  ## @hl_unpin_host_memory
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_hl_debugfs_remove_userptr
	cmpq	$0, 24(%r15)
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rax
	movq	(%r15), %rcx
	movl	(%rcx), %edx
	movl	4(%rcx), %esi
	movl	16(%r15), %ecx
	movq	%r14, %rdi
	callq	*(%rax)
LBB0_2:
	movl	12(%r15), %edi
	callq	_frame_vector_pages
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movl	12(%r15), %edi
	callq	_frame_vector_count
	testl	%eax, %eax
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rbx,8), %rdi
	callq	_set_page_dirty_lock
	incq	%rbx
	movl	12(%r15), %edi
	callq	_frame_vector_count
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movl	12(%r15), %edi
	callq	_put_vaddr_frames
	movl	12(%r15), %edi
	callq	_frame_vector_destroy
	leaq	8(%r15), %rdi
	callq	_list_del
	movq	(%r15), %rdi
	callq	_sg_free_table
	movq	(%r15), %rdi
	callq	_kfree
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hl_unpin_host_memory           ; -- Begin function hl_unpin_host_memory
	.p2align	2
_hl_unpin_host_memory:                  ; @hl_unpin_host_memory
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_hl_debugfs_remove_userptr
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldp	w2, w1, [x9]
	ldr	w3, [x19, #16]
	mov	x0, x20
	blr	x8
LBB0_2:
	ldr	w0, [x19, #12]
	bl	_frame_vector_pages
	mov	x20, x0
	bl	_IS_ERR
	cbnz	w0, LBB0_6
; %bb.3:
	ldr	w0, [x19, #12]
	bl	_frame_vector_count
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x21, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20, x21, lsl #3]
	bl	_set_page_dirty_lock
	add	x21, x21, #1
	ldr	w0, [x19, #12]
	bl	_frame_vector_count
	cmp	x21, w0, sxtw
	b.lt	LBB0_5
LBB0_6:
	ldr	w0, [x19, #12]
	bl	_put_vaddr_frames
	ldr	w0, [x19, #12]
	bl	_frame_vector_destroy
	add	x0, x19, #8
	bl	_list_del
	ldr	x0, [x19]
	bl	_sg_free_table
	ldr	x0, [x19]
	bl	_kfree
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
