	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu_open
_smu_open:                              ## @smu_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	%rsi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	12(%rax), %rdi
	callq	_spin_lock_init
	movq	_smu_file_commands@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	addq	$4, %rdi
	callq	_init_waitqueue_head
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_lock_kernel
	movq	_smu_clist_lock@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	_smu_clist@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_list_add
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, (%r14)
	xorl	%eax, %eax
	callq	_unlock_kernel
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_3:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_smu_file_commands,4,2          ## @smu_file_commands
	.comm	_smu_clist_lock,4,2             ## @smu_clist_lock
	.comm	_smu_clist,4,2                  ## @smu_clist
	.no_dead_strip	_smu_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu_open
_smu_open:                              ; @smu_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
	mov	x19, x1
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	add	x0, x0, #12
	bl	_spin_lock_init
Lloh3:
	adrp	x8, _smu_file_commands@GOTPAGE
Lloh4:
	ldr	x8, [x8, _smu_file_commands@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	add	x0, x20, #4
	bl	_init_waitqueue_head
	bl	_lock_kernel
Lloh6:
	adrp	x21, _smu_clist_lock@GOTPAGE
Lloh7:
	ldr	x21, [x21, _smu_clist_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh8:
	adrp	x1, _smu_clist@GOTPAGE
Lloh9:
	ldr	x1, [x1, _smu_clist@GOTPAGEOFF]
	mov	x0, x20
	bl	_list_add
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	str	x20, [x19]
	bl	_unlock_kernel
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_smu_file_commands,4,2          ; @smu_file_commands
	.comm	_smu_clist_lock,4,2             ; @smu_clist_lock
	.comm	_smu_clist,4,2                  ; @smu_clist
	.no_dead_strip	_smu_open
.subsections_via_symbols
