	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfcsim_debugfs_init_dev
_nfcsim_debugfs_init_dev:               ## @nfcsim_debugfs_init_dev
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_nfcsim_debugfs_root@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	je	LBB0_8
## %bb.1:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %r14d
	leaq	L_.str.1(%rip), %rdx
	leaq	-29(%rbp), %rdi
	movl	$5, %esi
	movl	%r14d, %ecx
	callq	_snprintf
	cmpl	$5, %eax
	jb	LBB0_4
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_3
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_NFCSIM_ERR                     ## TAILCALL
LBB0_4:
	movl	(%r15), %esi
	leaq	-29(%rbp), %rdi
	callq	_debugfs_create_dir
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leaq	L_.str.4(%rip), %rdi
	movl	$436, %esi                      ## imm = 0x1B4
	movq	%rax, %rdx
	movq	%rbx, %rcx
	callq	_debugfs_create_u8
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.3(%rip), %rsi
LBB0_3:
	movq	%rbx, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_NFCSIM_ERR
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nfcsim_debugfs_root,4,2        ## @nfcsim_debugfs_root
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nfcsim debugfs not initialized\n"

L_.str.1:                               ## @.str.1
	.asciz	"nfc%d"

L_.str.2:                               ## @.str.2
	.asciz	"Could not compute dev name for dev %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Could not create debugfs entries for nfc%d\n"

L_.str.4:                               ## @.str.4
	.asciz	"dropframe"

	.no_dead_strip	_nfcsim_debugfs_init_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfcsim_debugfs_init_dev
_nfcsim_debugfs_init_dev:               ; @nfcsim_debugfs_init_dev
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _nfcsim_debugfs_root@GOTPAGE
Lloh1:
	ldr	x21, [x21, _nfcsim_debugfs_root@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w20, [x8]
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #11
	mov	w1, #5
	mov	x3, x20
	bl	_snprintf
	cmp	w0, #5
	b.lo	LBB0_4
; %bb.2:
	str	x20, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_3:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	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
	add	sp, sp, #64
	b	_NFCSIM_ERR
LBB0_4:
	ldr	w1, [x21]
	add	x0, sp, #11
	bl	_debugfs_create_dir
	cbz	x0, LBB0_6
; %bb.5:
	mov	x2, x0
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	w1, #436
	mov	x3, x19
	bl	_debugfs_create_u8
	b	LBB0_8
LBB0_6:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_NFCSIM_ERR
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_nfcsim_debugfs_root,4,2        ; @nfcsim_debugfs_root
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nfcsim debugfs not initialized\n"

l_.str.1:                               ; @.str.1
	.asciz	"nfc%d"

l_.str.2:                               ; @.str.2
	.asciz	"Could not compute dev name for dev %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Could not create debugfs entries for nfc%d\n"

l_.str.4:                               ; @.str.4
	.asciz	"dropframe"

	.no_dead_strip	_nfcsim_debugfs_init_dev
.subsections_via_symbols
