	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipz_queue_dtor                 ## -- Begin function ipz_queue_dtor
	.p2align	4, 0x90
_ipz_queue_dtor:                        ## @ipz_queue_dtor
	.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	%rsi, %r12
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	8(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.3:
	cmpq	$0, 16(%r12)
	je	LBB0_5
## %bb.4:
	movq	%rdi, %rsi
	movq	%r12, %rdi
	callq	_free_small_queue_page
LBB0_8:
	movq	8(%r12), %rdi
	callq	_is_vmalloc_addr
	movq	8(%r12), %rdi
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	callq	_vfree
	jmp	LBB0_11
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_ehca_gen_dbg
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_5:
	movl	(%r12), %eax
	cltd
	idivl	4(%r12)
	testl	%eax, %eax
	jle	LBB0_8
## %bb.6:
	movl	%eax, %r14d
	movq	(%rcx), %rdi
	callq	_free_page
	movq	_PAGES_PER_KPAGE@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	cmpl	%ebx, %r14d
	jle	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movslq	%ebx, %rbx
	movq	(%rax,%rbx,8), %rdi
	callq	_free_page
	addl	(%r15), %ebx
	cmpl	%r14d, %ebx
	jl	LBB0_7
	jmp	LBB0_8
LBB0_10:
	callq	_kfree
LBB0_11:
	movl	$1, %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"queue or queue_pages is NULL"

	.comm	_PAGES_PER_KPAGE,8,3            ## @PAGES_PER_KPAGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipz_queue_dtor                 ; -- Begin function ipz_queue_dtor
	.p2align	2
_ipz_queue_dtor:                        ; @ipz_queue_dtor
	.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
	cbz	x1, LBB0_6
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_7
; %bb.3:
	mov	x1, x0
	mov	x0, x19
	bl	_free_small_queue_page
LBB0_4:
	ldr	x0, [x19, #8]
	bl	_is_vmalloc_addr
	mov	x8, x0
	ldr	x0, [x19, #8]
	cbz	x8, LBB0_10
; %bb.5:
	bl	_vfree
	b	LBB0_11
LBB0_6:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ehca_gen_dbg
	mov	w0, #0
	b	LBB0_12
LBB0_7:
	ldp	w9, w10, [x19]
	sdiv	w20, w9, w10
	cmp	w20, #1
	b.lt	LBB0_4
; %bb.8:
	ldr	x0, [x8]
	bl	_free_page
Lloh2:
	adrp	x21, _PAGES_PER_KPAGE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _PAGES_PER_KPAGE@GOTPAGEOFF]
	ldr	w22, [x21]
	cmp	w20, w22
	b.le	LBB0_4
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, w22, sxtw #3]
	bl	_free_page
	ldr	w8, [x21]
	add	w22, w22, w8
	cmp	w22, w20
	b.lt	LBB0_9
	b	LBB0_4
LBB0_10:
	bl	_kfree
LBB0_11:
	mov	w0, #1
LBB0_12:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"queue or queue_pages is NULL"

	.comm	_PAGES_PER_KPAGE,8,3            ; @PAGES_PER_KPAGE
.subsections_via_symbols
