	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function free_phys_pg_pack
_free_phys_pg_pack:                     ## @free_phys_pg_pack
	.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, %r15
	cmpl	$0, 32(%rsi)
	je	LBB0_1
LBB0_8:
	movq	8(%r15), %rdi
	callq	_kvfree
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_1:
	movq	%rdi, %r14
	cmpq	$0, 24(%r15)
	je	LBB0_2
## %bb.5:
	movl	4(%r14), %edi
	movq	8(%r15), %rax
	movl	(%rax), %esi
	movl	20(%r15), %edx
	callq	_gen_pool_free
	cmpq	$0, (%r15)
	je	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	movq	_dram_pg_pool_do_release@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_kref_put
	incq	%rbx
	cmpq	(%r15), %rbx
	jb	LBB0_7
	jmp	LBB0_8
LBB0_2:
	cmpq	$0, (%r15)
	je	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	movq	_dram_pg_pool_do_release@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r14), %edi
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	movl	16(%r15), %edx
	callq	_gen_pool_free
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_kref_put
	incq	%rbx
	cmpq	(%r15), %rbx
	jb	LBB0_4
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_dram_pg_pool_do_release,4,2    ## @dram_pg_pool_do_release
	.no_dead_strip	_free_phys_pg_pack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function free_phys_pg_pack
_free_phys_pg_pack:                     ; @free_phys_pg_pack
	.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
	ldr	w8, [x1, #32]
	cbz	w8, LBB0_2
LBB0_1:
	ldr	x0, [x19, #8]
	bl	_kvfree
	mov	x0, x19
	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
	b	_kfree
LBB0_2:
	mov	x20, x0
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	w0, [x20, #4]
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	ldr	w2, [x19, #20]
	bl	_gen_pool_free
	ldr	x8, [x19]
	cbz	x8, LBB0_1
; %bb.4:
	mov	x21, #0
Lloh0:
	adrp	x22, _dram_pg_pool_do_release@GOTPAGE
Lloh1:
	ldr	x22, [x22, _dram_pg_pool_do_release@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_kref_put
	add	x21, x21, #1
	ldr	x8, [x19]
	cmp	x21, x8
	b.lo	LBB0_5
	b	LBB0_1
LBB0_6:
	ldr	x8, [x19]
	cbz	x8, LBB0_1
; %bb.7:
	mov	x21, #0
Lloh2:
	adrp	x22, _dram_pg_pool_do_release@GOTPAGE
Lloh3:
	ldr	x22, [x22, _dram_pg_pool_do_release@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #4]
	ldr	x8, [x19, #8]
	ldr	w1, [x8, x21, lsl #2]
	ldr	w2, [x19, #16]
	bl	_gen_pool_free
	ldr	w1, [x22]
	mov	x0, x20
	bl	_kref_put
	add	x21, x21, #1
	ldr	x8, [x19]
	cmp	x21, x8
	b.lo	LBB0_8
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_dram_pg_pool_do_release,4,2    ; @dram_pg_pool_do_release
	.no_dead_strip	_free_phys_pg_pack
.subsections_via_symbols
