	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kobj_lookup                    ## -- Begin function kobj_lookup
	.p2align	4, 0x90
_kobj_lookup:                           ## @kobj_lookup
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	$-1, %r14
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movl	(%r15), %edi
	callq	_mutex_lock
	movq	8(%r15), %r15
	movl	%ebx, %edi
	callq	_MAJOR
	cltq
	imulq	$-2139062143, %rax, %rcx        ## imm = 0x80808081
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$7, %ecx
	addl	%edx, %ecx
	movl	%ecx, %edx
	shll	$8, %edx
	subl	%edx, %ecx
	addl	%eax, %ecx
	movslq	%ecx, %rax
	movq	(%r15,%rax,8), %r15
	jmp	LBB0_2
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=2
	movq	%r12, %rdi
	callq	_module_put
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=2
	movq	40(%r15), %r15
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%r15, %r15
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movl	(%r15), %ecx
	cmpl	%ebx, %ecx
	jg	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=2
	movslq	4(%r15), %rax
	addl	%eax, %ecx
	cmpl	%ebx, %ecx
	jle	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=2
	decq	%rax
	cmpq	%rax, %r14
	jbe	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	32(%r15), %rdi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	32(%r15), %r12
	movq	16(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	24(%r15), %r13
	movslq	4(%r15), %r14
	movl	%ebx, %eax
	subl	(%r15), %eax
	decq	%r14
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=2
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	*%rax
	testq	%rax, %rax
	js	LBB0_9
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %edi
	callq	_mutex_unlock
	movl	%ebx, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	*-64(%rbp)                      ## 8-byte Folded Reload
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_module_put
	testq	%r13, %r13
	je	LBB0_1
	jmp	LBB0_13
LBB0_11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_mutex_unlock
	xorl	%r13d, %r13d
LBB0_13:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kobj_lookup                    ; -- Begin function kobj_lookup
	.p2align	2
_kobj_lookup:                           ; @kobj_lookup
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x25, #-1
	mov	w24, #32897
	movk	w24, #32896, lsl #16
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	w0, [x20]
	bl	_mutex_lock
	ldr	x22, [x20, #8]
	mov	x0, x21
	bl	_MAJOR
	smull	x8, w0, w24
	lsr	x8, x8, #32
	add	w8, w8, w0
	asr	w9, w8, #7
	add	w8, w9, w8, lsr #31
	sub	w8, w8, w8, lsl #8
	add	w8, w0, w8
	ldr	x26, [x22, w8, sxtw #3]
	cbnz	x26, LBB0_4
	b	LBB0_11
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x22
	bl	_module_put
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=2
	ldr	x26, [x26, #40]
	cbz	x26, LBB0_11
LBB0_4:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x26]
	cmp	w8, w21
	b.gt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	ldrsw	x9, [x26, #4]
	add	w8, w9, w8
	cmp	w8, w21
	b.le	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	sub	x8, x9, #1
	cmp	x25, x8
	b.ls	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	x0, [x26, #32]
	bl	_try_module_get
	cbz	w0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=2
	ldp	x23, x22, [x26, #24]
	ldp	w9, w8, [x26]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	sub	x25, x8, #1
	sub	w8, w21, w9
	str	w8, [x19]
	ldp	x8, x27, [x26, #8]
	cbz	x8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x21
	mov	x1, x23
	blr	x8
	tbnz	x0, #63, LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x20]
	bl	_mutex_unlock
	mov	x0, x21
	mov	x1, x19
	mov	x2, x23
	blr	x27
	mov	x23, x0
	mov	x0, x22
	bl	_module_put
	cbz	x23, LBB0_1
	b	LBB0_12
LBB0_11:
	ldr	w0, [x20]
	bl	_mutex_unlock
	mov	x23, #0
LBB0_12:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
