	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wiidebug_init                  ## -- Begin function wiidebug_init
	.p2align	4, 0x90
_wiidebug_init:                         ## @wiidebug_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_ENOMEM@GOTPCREL(%rip), %r13
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	subl	(%r13), %r15d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, 16(%rax)
	movq	_S_IRUSR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	16(%r14), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	movq	_wiidebug_eeprom_fops@GOTPCREL(%rip), %r8
	movq	%rbx, %rcx
	callq	_debugfs_create_file
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movl	(%r12), %esi
	movq	16(%rbx), %rax
	movq	16(%rax), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rdi
	movq	_wiidebug_drm_fops@GOTPCREL(%rip), %r8
	movq	%rbx, %rcx
	callq	_debugfs_create_file
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, 8(%r14)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_1:
	subl	(%r13), %r12d
	movl	%r12d, %r15d
	jmp	LBB0_7
LBB0_5:
	movq	(%rbx), %rdi
	callq	_debugfs_remove
LBB0_6:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"eeprom"

	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
	.comm	_wiidebug_eeprom_fops,4,2       ## @wiidebug_eeprom_fops
L_.str.1:                               ## @.str.1
	.asciz	"drm"

	.comm	_wiidebug_drm_fops,4,2          ## @wiidebug_drm_fops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wiidebug_init                  ; -- Begin function wiidebug_init
	.p2align	2
_wiidebug_init:                         ; @wiidebug_init
	.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, x0
Lloh0:
	adrp	x22, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ENOMEM@GOTPAGEOFF]
	ldr	w21, [x22]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #16]
Lloh5:
	adrp	x22, _S_IRUSR@GOTPAGE
Lloh6:
	ldr	x22, [x22, _S_IRUSR@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	x8, [x19, #16]
	ldr	w2, [x8]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
Lloh9:
	adrp	x4, _wiidebug_eeprom_fops@GOTPAGE
Lloh10:
	ldr	x4, [x4, _wiidebug_eeprom_fops@GOTPAGEOFF]
	mov	x3, x20
	bl	_debugfs_create_file
	str	x0, [x20]
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w1, [x22]
	ldr	x8, [x20, #16]
	ldr	x8, [x8, #16]
	ldr	w2, [x8]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh13:
	adrp	x4, _wiidebug_drm_fops@GOTPAGE
Lloh14:
	ldr	x4, [x4, _wiidebug_drm_fops@GOTPAGEOFF]
	mov	x3, x20
	bl	_debugfs_create_file
	str	x0, [x20, #8]
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_spin_lock_irqsave
	str	x20, [x19, #8]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w19, #0
	b	LBB0_7
LBB0_4:
	ldr	w8, [x22]
	neg	w19, w8
	b	LBB0_7
LBB0_5:
	ldr	x0, [x20]
	bl	_debugfs_remove
LBB0_6:
	neg	w19, w21
	mov	x0, x20
	bl	_kfree
LBB0_7:
	mov	x0, x19
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"eeprom"

	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
	.comm	_wiidebug_eeprom_fops,4,2       ; @wiidebug_eeprom_fops
l_.str.1:                               ; @.str.1
	.asciz	"drm"

	.comm	_wiidebug_drm_fops,4,2          ; @wiidebug_drm_fops
.subsections_via_symbols
