	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function team_mode_get
_team_mode_get:                         ## @team_mode_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_mode_list_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movq	%rbx, %rdi
	callq	___find_mode
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	_mode_list_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_unlock
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_request_module
	movq	%r14, %rdi
	callq	_spin_lock
	movq	%rbx, %rdi
	callq	___find_mode
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movq	(%rax), %r14
	movl	(%r14), %edi
	callq	_try_module_get
	xorl	%ebx, %ebx
	testl	%eax, %eax
	cmovneq	%r14, %rbx
LBB0_4:
	movq	_mode_list_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_mode_list_lock,4,2             ## @mode_list_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"team-mode-%s"

	.no_dead_strip	_team_mode_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function team_mode_get
_team_mode_get:                         ; @team_mode_get
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, _mode_list_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _mode_list_lock@GOTPAGEOFF]
	bl	_spin_lock
	mov	x0, x19
	bl	___find_mode
	cbnz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x20, _mode_list_lock@GOTPAGE
Lloh3:
	ldr	x20, [x20, _mode_list_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_unlock
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_request_module
	mov	x0, x20
	bl	_spin_lock
	mov	x0, x19
	bl	___find_mode
	cbz	x0, LBB0_4
LBB0_2:
	ldr	x19, [x0]
	ldr	w0, [x19]
	bl	_try_module_get
	cmp	w0, #0
	csel	x19, xzr, x19, eq
LBB0_3:
Lloh6:
	adrp	x0, _mode_list_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _mode_list_lock@GOTPAGEOFF]
	bl	_spin_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x19, #0
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_mode_list_lock,4,2             ; @mode_list_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"team-mode-%s"

	.no_dead_strip	_team_mode_get
.subsections_via_symbols
