	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wiidebug_drm_show
_wiidebug_drm_show:                     ## @wiidebug_drm_show
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	(%rbx), %rdi
	addq	$8, %rdi
	callq	_spin_lock_irqsave
	movq	(%rbx), %rdi
	movq	(%rdi), %rbx
	addq	$8, %rdi
	callq	_spin_unlock_irqrestore
	movq	_WIIPROTO_REQ_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jae	LBB0_1
## %bb.2:
	movq	_wiidebug_drmmap@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	testq	%rax, %rax
	leaq	L_.str(%rip), %rdx
	cmovneq	%rax, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_seq_printf
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WIIPROTO_REQ_MAX,8,3           ## @WIIPROTO_REQ_MAX
	.comm	_wiidebug_drmmap,8,3            ## @wiidebug_drmmap
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown"

L_.str.1:                               ## @.str.1
	.asciz	"%s\n"

	.no_dead_strip	_wiidebug_drm_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wiidebug_drm_show
_wiidebug_drm_show:                     ; @wiidebug_drm_show
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0]
	ldr	x8, [x20]
	add	x0, x8, #8
	bl	_spin_lock_irqsave
	ldr	x0, [x20]
	ldr	x20, [x0], #8
	bl	_spin_unlock_irqrestore
Lloh0:
	adrp	x8, _WIIPROTO_REQ_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WIIPROTO_REQ_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x20, x8
	b.hs	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _wiidebug_drmmap@GOTPAGE
Lloh4:
	ldr	x8, [x8, _wiidebug_drmmap@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x8, [x8, x20, lsl #3]
	b	LBB0_3
LBB0_2:
	mov	x8, #0
LBB0_3:
Lloh6:
	adrp	x9, l_.str@PAGE
Lloh7:
	add	x9, x9, l_.str@PAGEOFF
	cmp	x8, #0
	csel	x2, x9, x8, eq
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_seq_printf
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_WIIPROTO_REQ_MAX,8,3           ; @WIIPROTO_REQ_MAX
	.comm	_wiidebug_drmmap,8,3            ; @wiidebug_drmmap
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown"

l_.str.1:                               ; @.str.1
	.asciz	"%s\n"

	.no_dead_strip	_wiidebug_drm_show
.subsections_via_symbols
