	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_res_tree
_add_res_tree:                          ## @add_res_tree
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movl	%r8d, %r14d
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	16(%rbp), %edx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_fields@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_struct_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	24(%rbp), %rax
	movq	%rbx, 32(%r13)
	movq	%rax, 24(%r13)
	movl	%r12d, (%r13)
	leaq	L_.str(%rip), %rsi
	leaq	-80(%rbp), %r12
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_sprintf
	movq	%r12, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_debugfs_create_dir
	movl	%eax, 16(%r13)
	movl	16(%rbp), %ebx
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.3:
	movq	8(%r13), %rcx
	movl	$0, (%rcx)
	movq	(%r15), %rdi
	movq	_fops@GOTPCREL(%rip), %r8
	movl	$256, %esi                      ## imm = 0x100
	movl	%eax, %edx
	callq	_debugfs_create_file
	cmpl	$1, %ebx
	je	LBB0_6
## %bb.4:
	movl	%ebx, %r12d
	movl	$1, %ebx
	movl	$4, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%r13), %edx
	movq	8(%r13), %rcx
	movl	%ebx, (%rcx,%rbx,4)
	movq	(%r15,%rbx,8), %rdi
	addq	%r14, %rcx
	movl	$256, %esi                      ## imm = 0x100
	movq	_fops@GOTPCREL(%rip), %r8
	callq	_debugfs_create_file
	incq	%rbx
	addq	$4, %r14
	cmpq	%rbx, %r12
	jne	LBB0_5
LBB0_6:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_fields,4,2                     ## @fields
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0x%x"

	.comm	_fops,4,2                       ## @fops
	.no_dead_strip	_add_res_tree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_res_tree
_add_res_tree:                          ; @add_res_tree
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x7
	mov	x22, x6
	mov	x19, x5
	mov	x24, x4
	mov	x20, x3
	mov	x23, x2
	mov	x26, x1
	mov	x27, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, _fields@GOTPAGE
Lloh4:
	ldr	x8, [x8, _fields@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, x6
	bl	_struct_size
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	stp	x25, x27, [x0, #24]
	str	w26, [x0]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	x2, x24
	bl	_sprintf
	add	x0, sp, #8
	mov	x1, x23
	bl	_debugfs_create_dir
	str	w0, [x21, #16]
	cmp	w22, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x2, x0
	ldr	x3, [x21, #8]
	str	wzr, [x3]
	ldr	x0, [x19]
Lloh11:
	adrp	x4, _fops@GOTPAGE
Lloh12:
	ldr	x4, [x4, _fops@GOTPAGEOFF]
	mov	w1, #256
	bl	_debugfs_create_file
	cmp	w22, #1
	b.eq	LBB0_5
; %bb.3:
	mov	w24, #1
	mov	w25, #4
Lloh13:
	adrp	x23, _fops@GOTPAGE
Lloh14:
	ldr	x23, [x23, _fops@GOTPAGEOFF]
	mov	w22, w22
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x21, #16]
	ldr	x8, [x21, #8]
	str	w24, [x8, x24, lsl #2]
	ldr	x0, [x19, x24, lsl #3]
	add	x3, x8, x25
	mov	w1, #256
	mov	x4, x23
	bl	_debugfs_create_file
	add	x24, x24, #1
	add	x25, x25, #4
	cmp	x22, x24
	b.ne	LBB0_4
LBB0_5:
	mov	w0, #0
	str	x21, [x20]
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldr	x8, [sp, #40]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_fields,4,2                     ; @fields
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0x%x"

	.comm	_fops,4,2                       ; @fops
	.no_dead_strip	_add_res_tree
.subsections_via_symbols
