	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cosm_create_debug_dir          ## -- Begin function cosm_create_debug_dir
	.p2align	4, 0x90
_cosm_create_debug_dir:                 ## @cosm_create_debug_dir
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_cosm_dbg@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movl	4(%rdi), %ecx
	leaq	L_.str(%rip), %rdx
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_scnprintf
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_debugfs_create_dir
	movl	%eax, (%rbx)
	leaq	L_.str.1(%rip), %rdi
	movq	_log_buf_fops@GOTPCREL(%rip), %r8
	movl	$292, %esi                      ## imm = 0x124
	movl	%eax, %edx
	movq	%rbx, %rcx
	callq	_debugfs_create_file
	movl	(%rbx), %edx
	leaq	L_.str.2(%rip), %rdi
	movq	_force_reset_fops@GOTPCREL(%rip), %r8
	movl	$292, %esi                      ## imm = 0x124
	movq	%rbx, %rcx
	callq	_debugfs_create_file
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_cosm_dbg,4,2                   ## @cosm_dbg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mic%d"

L_.str.1:                               ## @.str.1
	.asciz	"log_buf"

	.comm	_log_buf_fops,4,2               ## @log_buf_fops
L_.str.2:                               ## @.str.2
	.asciz	"force_reset"

	.comm	_force_reset_fops,4,2           ## @force_reset_fops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cosm_create_debug_dir          ; -- Begin function cosm_create_debug_dir
	.p2align	2
_cosm_create_debug_dir:                 ; @cosm_create_debug_dir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x20, _cosm_dbg@GOTPAGE
Lloh4:
	ldr	x20, [x20, _cosm_dbg@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w3, [x0, #4]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #16
	bl	_scnprintf
	ldr	w1, [x20]
	add	x0, sp, #8
	bl	_debugfs_create_dir
	mov	x2, x0
	str	w0, [x19]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh9:
	adrp	x4, _log_buf_fops@GOTPAGE
Lloh10:
	ldr	x4, [x4, _log_buf_fops@GOTPAGEOFF]
	mov	w1, #292
	mov	x3, x19
	bl	_debugfs_create_file
	ldr	w2, [x19]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh13:
	adrp	x4, _force_reset_fops@GOTPAGE
Lloh14:
	ldr	x4, [x4, _force_reset_fops@GOTPAGEOFF]
	mov	w1, #292
	mov	x3, x19
	bl	_debugfs_create_file
LBB0_2:
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_cosm_dbg,4,2                   ; @cosm_dbg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mic%d"

l_.str.1:                               ; @.str.1
	.asciz	"log_buf"

	.comm	_log_buf_fops,4,2               ; @log_buf_fops
l_.str.2:                               ; @.str.2
	.asciz	"force_reset"

	.comm	_force_reset_fops,4,2           ; @force_reset_fops
.subsections_via_symbols
