	.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
	movq	_smu_mutex@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	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)
	movq	%r15, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	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_mutex,4,2                  ## @smu_mutex
	.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
Lloh6:
	adrp	x21, _smu_mutex@GOTPAGE
Lloh7:
	ldr	x21, [x21, _smu_mutex@GOTPAGEOFF]
	mov	x0, x21
	bl	_mutex_lock
Lloh8:
	adrp	x22, _smu_clist_lock@GOTPAGE
Lloh9:
	ldr	x22, [x22, _smu_clist_lock@GOTPAGEOFF]
	mov	x0, x22
	bl	_spin_lock_irqsave
Lloh10:
	adrp	x1, _smu_clist@GOTPAGE
Lloh11:
	ldr	x1, [x1, _smu_clist@GOTPAGEOFF]
	mov	x0, x20
	bl	_list_add
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	str	x20, [x19]
	mov	x0, x21
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	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	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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_mutex,4,2                  ; @smu_mutex
	.comm	_smu_clist_lock,4,2             ; @smu_clist_lock
	.comm	_smu_clist,4,2                  ; @smu_clist
	.no_dead_strip	_smu_open
.subsections_via_symbols
