	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StEnumSession                  ## -- Begin function StEnumSession
	.p2align	4, 0x90
_StEnumSession:                         ## @StEnumSession
	.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	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movq	(%r12), %r14
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_LockHubList
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_GetHub
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_UnlockHubList
	testq	%r13, %r13
	je	LBB0_3
## %bb.1:
	cmpl	$0, (%rbx)
	je	LBB0_4
LBB0_2:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_SiEnumSessionMain
	movq	%r13, %rdi
	callq	_ReleaseHub
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_7
LBB0_3:
	movq	_ERR_HUB_NOT_FOUND@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_GetHubAdminOption
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	movq	%r13, %rdi
	callq	_ReleaseHub
	movq	_ERR_NOT_ENOUGH_RIGHT@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_NO_ERROR,4,2               ## @ERR_NO_ERROR
	.comm	_CHECK_RIGHT,4,2                ## @CHECK_RIGHT
	.comm	_ERR_HUB_NOT_FOUND,4,2          ## @ERR_HUB_NOT_FOUND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no_enum_session"

	.comm	_ERR_NOT_ENOUGH_RIGHT,4,2       ## @ERR_NOT_ENOUGH_RIGHT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StEnumSession                  ; -- Begin function StEnumSession
	.p2align	2
_StEnumSession:                         ; @StEnumSession
	.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, x1
	mov	x23, x0
	ldr	x21, [x0, #8]
	ldr	x24, [x21]
Lloh0:
	adrp	x8, _ERR_NO_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERR_NO_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	mov	x0, x24
	bl	_LockHubList
	ldr	w1, [x20]
	mov	x0, x24
	bl	_GetHub
	mov	x22, x0
	mov	x0, x24
	bl	_UnlockHubList
	cbz	x22, LBB0_3
; %bb.1:
	ldr	w8, [x23]
	cbz	w8, LBB0_4
LBB0_2:
	mov	x0, x21
	mov	x1, x20
	bl	_SiEnumSessionMain
	mov	x0, x22
	bl	_ReleaseHub
	b	LBB0_7
LBB0_3:
Lloh3:
	adrp	x8, _ERR_HUB_NOT_FOUND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_HUB_NOT_FOUND@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_GetHubAdminOption
	cbz	x0, LBB0_2
; %bb.5:
	mov	x0, x22
	bl	_ReleaseHub
Lloh7:
	adrp	x8, _ERR_NOT_ENOUGH_RIGHT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERR_NOT_ENOUGH_RIGHT@GOTPAGEOFF]
LBB0_6:
	ldr	w19, [x8]
LBB0_7:
	mov	x0, x19
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_NO_ERROR,4,2               ; @ERR_NO_ERROR
	.comm	_CHECK_RIGHT,4,2                ; @CHECK_RIGHT
	.comm	_ERR_HUB_NOT_FOUND,4,2          ; @ERR_HUB_NOT_FOUND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no_enum_session"

	.comm	_ERR_NOT_ENOUGH_RIGHT,4,2       ; @ERR_NOT_ENOUGH_RIGHT
.subsections_via_symbols
