	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_con_clear_unimap               ## -- Begin function con_clear_unimap
	.p2align	4, 0x90
_con_clear_unimap:                      ## @con_clear_unimap
	.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	(%rdi), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.1:
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.2:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_8:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	jne	LBB0_9
	jmp	LBB0_7
LBB0_4:
	movl	(%rbx), %eax
	movl	%eax, %ecx
	decl	%ecx
	movl	%ecx, (%rbx)
	je	LBB0_10
## %bb.5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
LBB0_9:
	movl	$1, (%rax)
	movq	(%r14), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_13
LBB0_10:
	movq	_dflt@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	jne	LBB0_12
## %bb.11:
	movq	$0, (%rcx)
LBB0_12:
	movl	%eax, (%rbx)
	movq	$0, 8(%rbx)
	movq	%rbx, %rdi
	callq	_con_release_unimap
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_6:
	incl	(%rbx)
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_dflt,8,3                       ## @dflt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_con_clear_unimap               ; -- Begin function con_clear_unimap
	.p2align	2
_con_clear_unimap:                      ; @con_clear_unimap
	.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
	ldr	x8, [x0]
	ldr	x20, [x8]
	cbz	x20, LBB0_3
; %bb.1:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_12
LBB0_3:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	mov	x8, x0
	cbnz	x0, LBB0_6
	b	LBB0_11
LBB0_4:
	ldr	w8, [x20]
	subs	w9, w8, #1
	str	w9, [x20]
	b.eq	LBB0_7
; %bb.5:
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	mov	x8, x0
	cbz	x0, LBB0_10
LBB0_6:
	mov	w0, #0
	mov	w9, #1
	str	w9, [x8]
	ldr	x9, [x19]
	str	x8, [x9]
	b	LBB0_13
LBB0_7:
Lloh8:
	adrp	x9, _dflt@GOTPAGE
Lloh9:
	ldr	x9, [x9, _dflt@GOTPAGEOFF]
	ldr	x10, [x9]
	cmp	x10, x20
	b.ne	LBB0_9
; %bb.8:
	str	xzr, [x9]
LBB0_9:
	str	w8, [x20]
	str	xzr, [x20, #8]
	mov	x0, x20
	bl	_con_release_unimap
	mov	w0, #0
	b	LBB0_13
LBB0_10:
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
LBB0_11:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_dflt,8,3                       ; @dflt
.subsections_via_symbols
