	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uma_small_free                 ## -- Begin function uma_small_free
	.p2align	4, 0x90
_uma_small_free:                        ## @uma_small_free
	.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	%rdi, %r14
	movq	_hw_direct_map@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_3
## %bb.1:
	movq	_kernel_pmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	%r14, %rdx
	movq	%r14, %rsi
	callq	_pmap_remove
	cmpq	$0, (%rbx)
	je	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_DMAP_TO_PHYS
	movq	%rax, %rdi
LBB0_4:
	callq	_PHYS_TO_VM_PAGE
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	movq	%r14, %rsi
	callq	_KASSERT
	movq	%rbx, %rdi
	callq	_vm_page_unwire_noq
	movq	%rbx, %rdi
	callq	_vm_page_free
	movq	_hw_uma_mdpages@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_atomic_subtract_int            ## TAILCALL
LBB0_2:
	movq	%r14, %rdi
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_hw_direct_map,8,3              ## @hw_direct_map
	.comm	_kernel_pmap,4,2                ## @kernel_pmap
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_hw_uma_mdpages,4,2             ## @hw_uma_mdpages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uma_small_free                 ; -- Begin function uma_small_free
	.p2align	2
_uma_small_free:                        ; @uma_small_free
	.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, x0
Lloh0:
	adrp	x20, _hw_direct_map@GOTPAGE
Lloh1:
	ldr	x20, [x20, _hw_direct_map@GOTPAGEOFF]
	ldr	x8, [x20]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _kernel_pmap@GOTPAGE
Lloh3:
	ldr	x8, [x8, _kernel_pmap@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x2, x8, x19
	mov	x1, x19
	bl	_pmap_remove
	ldr	x8, [x20]
	cbz	x8, LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_DMAP_TO_PHYS
LBB0_3:
	bl	_PHYS_TO_VM_PAGE
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
	mov	x1, x19
	bl	_KASSERT
	mov	x0, x20
	bl	_vm_page_unwire_noq
	mov	x0, x20
	bl	_vm_page_free
Lloh8:
	adrp	x0, _hw_uma_mdpages@GOTPAGE
Lloh9:
	ldr	x0, [x0, _hw_uma_mdpages@GOTPAGEOFF]
	mov	w1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_atomic_subtract_int
LBB0_4:
	mov	x0, x19
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_hw_direct_map,8,3              ; @hw_direct_map
	.comm	_kernel_pmap,4,2                ; @kernel_pmap
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_hw_uma_mdpages,4,2             ; @hw_uma_mdpages
.subsections_via_symbols
