	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kobj_unmap                     ## -- Begin function kobj_unmap
	.p2align	4, 0x90
_kobj_unmap:                            ## @kobj_unmap
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	(%rsi,%rdx), %rdi
	decq	%rdi
	callq	_MAJOR
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_MAJOR
	subl	%eax, %r12d
	incl	%r12d
	movl	%r12d, %r13d
	movq	%rbx, %rdi
	callq	_MAJOR
	movl	%eax, %r12d
	movl	%r13d, %eax
	cmpl	$255, %r13d
	movl	$255, %r13d
	cmovbl	%eax, %r13d
	movl	(%r14), %edi
	callq	_mutex_lock
	xorl	%eax, %eax
	testl	%r13d, %r13d
	je	LBB0_1
## %bb.2:
	movl	$2155905153, %r8d               ## imm = 0x80808081
	xorl	%ecx, %ecx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%eax
	incl	%r12d
	cmpl	%r13d, %eax
	je	LBB0_10
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	8(%r14), %rsi
	movl	%r12d, %edi
	imulq	%r8, %rdi
	shrq	$39, %rdi
	movl	%edi, %edx
	shll	$8, %edx
	subl	%edx, %edi
	addl	%r12d, %edi
	movq	(%rsi,%rdi,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rsi,%rdi,8), %rsi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	%rdx, %rsi
	movq	16(%rdx), %rdi
	addq	$16, %rsi
	movq	%rdi, %rdx
	testq	%rdi, %rdi
	je	LBB0_9
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rbx, (%rdx)
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	cmpq	%r15, 8(%rdx)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rdx), %rdi
	movq	%rdi, (%rsi)
	testq	%rcx, %rcx
	cmoveq	%rdx, %rcx
	jmp	LBB0_9
LBB0_1:
	xorl	%ecx, %ecx
LBB0_10:
	movl	(%r14), %edi
	movq	%rcx, %rbx
	callq	_mutex_unlock
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kobj_unmap                     ; -- Begin function kobj_unmap
	.p2align	2
_kobj_unmap:                            ; @kobj_unmap
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x8, x1, x2
	sub	x0, x8, #1
	bl	_MAJOR
	mov	x22, x0
	mov	x0, x21
	bl	_MAJOR
	sub	w23, w22, w0
	add	w24, w23, #1
	mov	x0, x21
	bl	_MAJOR
	mov	x22, x0
	cmp	w24, #255
	mov	w8, #255
	csinc	w24, w8, w23, hs
	ldr	w0, [x19]
	bl	_mutex_lock
	mov	x23, #0
	cbz	w24, LBB0_8
; %bb.1:
	mov	w8, #0
	mov	w9, #32897
	movk	w9, #32896, lsl #16
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w8, #1
	add	w22, w22, #1
	cmp	w8, w24
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x10, [x19, #8]
	umull	x11, w22, w9
	lsr	x11, x11, #39
	sub	w11, w11, w11, lsl #8
	add	w11, w22, w11
	add	x11, x10, w11, uxtw #3
	ldr	x10, [x11]
	cbnz	x10, LBB0_5
	b	LBB0_2
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldr	x12, [x10, #16]!
	mov	x11, x10
	mov	x10, x12
	cbz	x12, LBB0_2
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x12, [x10]
	cmp	x12, x21
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x12, [x10, #8]
	cmp	x12, x20
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [x10, #16]
	str	x12, [x11]
	cmp	x23, #0
	csel	x23, x10, x23, eq
	b	LBB0_2
LBB0_8:
	ldr	w0, [x19]
	bl	_mutex_unlock
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_kfree
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
