	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isst_if_open
_isst_if_open:                          ## @isst_if_open
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_punit_misc_dev_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_ISST_IF_DEV_MAX@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.1:
	movl	$8, %ebx
	xorl	%r12d, %r12d
	movq	_punit_callbacks@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r12
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rcx
	cmpq	$0, (%rcx,%rbx)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-8(%rcx,%rbx), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %eax
	jmp	LBB0_5
LBB0_7:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.8:
	negl	%r14d
	testl	%r12d, %r12d
	je	LBB0_13
## %bb.9:
	movl	$8, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	addq	$16, %rbx
	decq	%r12
	je	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	cmpq	$0, (%rax,%rbx)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	-8(%rax,%rbx), %edi
	callq	_module_put
	jmp	LBB0_12
LBB0_6:
	movq	_misc_device_open@GOTPCREL(%rip), %rax
	incl	(%rax)
	xorl	%r14d, %r14d
LBB0_13:
	movq	_punit_misc_dev_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_punit_misc_dev_lock,4,2        ## @punit_misc_dev_lock
	.comm	_ISST_IF_DEV_MAX,4,2            ## @ISST_IF_DEV_MAX
	.comm	_punit_callbacks,8,3            ## @punit_callbacks
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_misc_device_open,4,2           ## @misc_device_open
	.no_dead_strip	_isst_if_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isst_if_open
_isst_if_open:                          ; @isst_if_open
	.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
Lloh0:
	adrp	x0, _punit_misc_dev_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _punit_misc_dev_lock@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x19, _ISST_IF_DEV_MAX@GOTPAGE
Lloh3:
	ldr	x19, [x19, _ISST_IF_DEV_MAX@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x22, #0
	mov	x20, #0
Lloh4:
	adrp	x21, _punit_callbacks@GOTPAGE
Lloh5:
	ldr	x21, [x21, _punit_callbacks@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	add	x22, x22, #16
	cmp	x20, w8, sxtw
	b.ge	LBB0_12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21]
	add	x10, x9, x22
	ldr	x10, [x10, #8]
	cbz	x10, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x9, x22]
	bl	_try_module_get
	cbz	w0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19]
	b	LBB0_2
LBB0_6:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cbz	w8, LBB0_12
; %bb.7:
	neg	w19, w8
	cbz	w20, LBB0_13
; %bb.8:
	mov	x22, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x22, x22, #16
	subs	x20, x20, #1
	b.eq	LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x9, x8, x22
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x8, x22]
	bl	_module_put
	b	LBB0_9
LBB0_12:
	mov	w19, #0
Lloh9:
	adrp	x8, _misc_device_open@GOTPAGE
Lloh10:
	ldr	x8, [x8, _misc_device_open@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_13:
Lloh11:
	adrp	x0, _punit_misc_dev_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _punit_misc_dev_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x19
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_punit_misc_dev_lock,4,2        ; @punit_misc_dev_lock
	.comm	_ISST_IF_DEV_MAX,4,2            ; @ISST_IF_DEV_MAX
	.comm	_punit_callbacks,8,3            ; @punit_callbacks
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_misc_device_open,4,2           ; @misc_device_open
	.no_dead_strip	_isst_if_open
.subsections_via_symbols
