	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function valid_ext_handler
_valid_ext_handler:                     ## @valid_ext_handler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	cmpl	$0, 4(%rdi)
	je	LBB0_4
## %bb.1:
	movl	(%rdi), %ecx
	cmpq	$7, %rsi
	ja	LBB0_3
## %bb.2:
	movq	_WIIMOD_FLAG_EXT8@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ecx, %edx
	je	LBB0_3
LBB0_4:
	popq	%rbp
	retq
LBB0_3:
	movq	_WIIMOD_FLAG_EXT16@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	sete	%al
	cmpq	$16, %rsi
	setae	%cl
	orb	%al, %cl
	movzbl	%cl, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WIIMOD_FLAG_EXT8,4,2           ## @WIIMOD_FLAG_EXT8
	.comm	_WIIMOD_FLAG_EXT16,4,2          ## @WIIMOD_FLAG_EXT16
	.no_dead_strip	_valid_ext_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function valid_ext_handler
_valid_ext_handler:                     ; @valid_ext_handler
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	w8, [x0]
	cmp	x1, #7
	b.hi	LBB0_4
; %bb.2:
Lloh0:
	adrp	x9, _WIIMOD_FLAG_EXT8@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WIIMOD_FLAG_EXT8@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w9, w9, w8
	cbz	w9, LBB0_4
LBB0_3:
	mov	w0, #0
	ret
LBB0_4:
Lloh3:
	adrp	x9, _WIIMOD_FLAG_EXT16@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WIIMOD_FLAG_EXT16@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	ccmp	x1, #15, #2, ne
	cset	w0, hi
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_WIIMOD_FLAG_EXT8,4,2           ; @WIIMOD_FLAG_EXT8
	.comm	_WIIMOD_FLAG_EXT16,4,2          ; @WIIMOD_FLAG_EXT16
	.no_dead_strip	_valid_ext_handler
.subsections_via_symbols
