	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isert_comp_get
_isert_comp_get:                        ## @isert_comp_get
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	_device_list_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movl	(%rbx), %r8d
	movq	8(%rbx), %rax
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.2:
	leaq	-1(%r8), %rdx
	movl	%r8d, %r9d
	andl	$3, %r9d
	cmpq	$3, %rdx
	jae	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	xorl	%ebx, %ebx
LBB0_15:
	movl	%ebx, %esi
	testq	%r9, %r9
	jne	LBB0_16
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%rdx
	movl	%esi, %ebx
	decq	%r9
	je	LBB0_19
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rdx,8), %rcx
	movslq	%ebx, %rdi
	movl	%edx, %esi
	cmpq	(%rax,%rdi,8), %rcx
	jl	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%ebx, %esi
	jmp	LBB0_18
LBB0_1:
	xorl	%esi, %esi
LBB0_19:
	movslq	%esi, %rbx
	leaq	(%rax,%rbx,8), %r15
	incq	(%rax,%rbx,8)
	movq	_device_list_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_isert_info
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	andl	$-4, %r8d
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%edi, %ebx
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	$4, %rdx
	cmpq	%r8, %rdx
	je	LBB0_15
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %rsi
	movq	(%rax,%rdx,8), %rcx
	movl	%edx, %edi
	cmpq	(%rax,%rsi,8), %rcx
	jl	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %edi
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rax,%rdx,8), %rcx
	movslq	%edi, %rsi
	cmpq	(%rax,%rsi,8), %rcx
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	leal	1(%rdx), %edi
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rax,%rdx,8), %rcx
	movslq	%edi, %rsi
	cmpq	(%rax,%rsi,8), %rcx
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	leal	2(%rdx), %edi
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%rax,%rdx,8), %rcx
	movslq	%edi, %rsi
	cmpq	(%rax,%rsi,8), %rcx
	jge	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	leal	3(%rdx), %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_device_list_mutex,4,2          ## @device_list_mutex
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"conn %p, using comp %p min_index: %d\n"

	.no_dead_strip	_isert_comp_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isert_comp_get
_isert_comp_get:                        ; @isert_comp_get
	.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, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x0, _device_list_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _device_list_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	w9, [x20]
	ldr	x8, [x20, #8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x10, #0
	mov	w20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8, x10, lsl #3]
	ldr	x12, [x8, w20, sxtw #3]
	cmp	x11, x12
	csel	w20, w10, w20, lt
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
	add	x21, x8, w20, sxtw #3
	ldr	x8, [x21]
	add	x8, x8, #1
	str	x8, [x21]
Lloh2:
	adrp	x0, _device_list_mutex@GOTPAGE
Lloh3:
	ldr	x0, [x0, _device_list_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	mov	x3, x20
	bl	_isert_info
	mov	x0, x21
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_device_list_mutex,4,2          ; @device_list_mutex
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"conn %p, using comp %p min_index: %d\n"

	.no_dead_strip	_isert_comp_get
.subsections_via_symbols
