	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function select_drm
_select_drm:                            ## @select_drm
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	8(%rdi), %rdx
	movq	_WIIPROTO_FLAG_EXT_USED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_WIIPROTO_FLAG_MP_USED@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movslq	%ecx, %rcx
	testq	%rcx, %rax
	setne	%cl
	movq	_WIIMOTE_DEV_BALANCE_BOARD@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_3
LBB0_1:
	testb	%cl, %cl
	je	LBB0_15
## %bb.2:
	movq	_WIIPROTO_REQ_DRM_KEE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_3:
	movq	_WIIPROTO_FLAGS_IR@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	andq	%rax, %rdx
	movq	_WIIPROTO_FLAG_IR_BASIC@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_6
## %bb.4:
	movq	_WIIPROTO_FLAG_ACCEL@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	testq	%rcx, %rax
	jne	LBB0_8
## %bb.5:
	movq	_WIIPROTO_REQ_DRM_KIE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_15:
	movq	_WIIPROTO_REQ_DRM_K@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_6:
	movq	_WIIPROTO_FLAG_IR_EXT@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_9
## %bb.7:
	movq	_WIIPROTO_REQ_DRM_KAI@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_8:
	movq	_WIIPROTO_REQ_DRM_KAIE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_9:
	movq	_WIIPROTO_FLAG_IR_FULL@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_11
## %bb.10:
	movq	_WIIPROTO_REQ_DRM_SKAI1@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_11:
	movq	_WIIPROTO_FLAG_ACCEL@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	testq	%rdx, %rax
	je	LBB0_1
## %bb.12:
	testb	%cl, %cl
	je	LBB0_16
## %bb.13:
	movq	_WIIPROTO_REQ_DRM_KAE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_16:
	movq	_WIIPROTO_REQ_DRM_KA@GOTPCREL(%rip), %rax
LBB0_17:
	movq	(%rax), %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WIIPROTO_FLAGS_IR,8,3          ## @WIIPROTO_FLAGS_IR
	.comm	_WIIPROTO_FLAG_EXT_USED,4,2     ## @WIIPROTO_FLAG_EXT_USED
	.comm	_WIIPROTO_FLAG_MP_USED,4,2      ## @WIIPROTO_FLAG_MP_USED
	.comm	_WIIMOTE_DEV_BALANCE_BOARD,8,3  ## @WIIMOTE_DEV_BALANCE_BOARD
	.comm	_WIIPROTO_REQ_DRM_KEE,8,3       ## @WIIPROTO_REQ_DRM_KEE
	.comm	_WIIPROTO_REQ_DRM_K,8,3         ## @WIIPROTO_REQ_DRM_K
	.comm	_WIIPROTO_FLAG_IR_BASIC,8,3     ## @WIIPROTO_FLAG_IR_BASIC
	.comm	_WIIPROTO_FLAG_ACCEL,4,2        ## @WIIPROTO_FLAG_ACCEL
	.comm	_WIIPROTO_REQ_DRM_KAIE,8,3      ## @WIIPROTO_REQ_DRM_KAIE
	.comm	_WIIPROTO_REQ_DRM_KIE,8,3       ## @WIIPROTO_REQ_DRM_KIE
	.comm	_WIIPROTO_FLAG_IR_EXT,8,3       ## @WIIPROTO_FLAG_IR_EXT
	.comm	_WIIPROTO_REQ_DRM_KAI,8,3       ## @WIIPROTO_REQ_DRM_KAI
	.comm	_WIIPROTO_FLAG_IR_FULL,8,3      ## @WIIPROTO_FLAG_IR_FULL
	.comm	_WIIPROTO_REQ_DRM_SKAI1,8,3     ## @WIIPROTO_REQ_DRM_SKAI1
	.comm	_WIIPROTO_REQ_DRM_KAE,8,3       ## @WIIPROTO_REQ_DRM_KAE
	.comm	_WIIPROTO_REQ_DRM_KA,8,3        ## @WIIPROTO_REQ_DRM_KA
	.no_dead_strip	_select_drm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function select_drm
_select_drm:                            ; @select_drm
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _WIIPROTO_FLAG_EXT_USED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WIIPROTO_FLAG_EXT_USED@GOTPAGEOFF]
Lloh2:
	adrp	x9, _WIIPROTO_FLAG_MP_USED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _WIIPROTO_FLAG_MP_USED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w8, w9
	sxtw	x9, w8
	ldp	x8, x10, [x0]
	tst	x8, x9
	cset	w9, ne
Lloh6:
	adrp	x11, _WIIMOTE_DEV_BALANCE_BOARD@GOTPAGE
Lloh7:
	ldr	x11, [x11, _WIIMOTE_DEV_BALANCE_BOARD@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _WIIPROTO_REQ_DRM_K@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WIIPROTO_REQ_DRM_K@GOTPAGEOFF]
Lloh11:
	adrp	x10, _WIIPROTO_REQ_DRM_KEE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _WIIPROTO_REQ_DRM_KEE@GOTPAGEOFF]
	cmp	w9, #0
	csel	x8, x10, x8, ne
	ldr	x0, [x8]
	ret
LBB0_2:
Lloh13:
	adrp	x10, _WIIPROTO_FLAGS_IR@GOTPAGE
Lloh14:
	ldr	x10, [x10, _WIIPROTO_FLAGS_IR@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	and	x10, x10, x8
Lloh16:
	adrp	x11, _WIIPROTO_FLAG_IR_BASIC@GOTPAGE
Lloh17:
	ldr	x11, [x11, _WIIPROTO_FLAG_IR_BASIC@GOTPAGEOFF]
Lloh18:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_4
; %bb.3:
Lloh19:
	adrp	x9, _WIIPROTO_FLAG_ACCEL@GOTPAGE
Lloh20:
	ldr	x9, [x9, _WIIPROTO_FLAG_ACCEL@GOTPAGEOFF]
Lloh21:
	ldrsw	x9, [x9]
Lloh22:
	adrp	x10, _WIIPROTO_REQ_DRM_KAIE@GOTPAGE
Lloh23:
	ldr	x10, [x10, _WIIPROTO_REQ_DRM_KAIE@GOTPAGEOFF]
Lloh24:
	adrp	x11, _WIIPROTO_REQ_DRM_KIE@GOTPAGE
Lloh25:
	ldr	x11, [x11, _WIIPROTO_REQ_DRM_KIE@GOTPAGEOFF]
	tst	x8, x9
	csel	x8, x11, x10, eq
	ldr	x0, [x8]
	ret
LBB0_4:
Lloh26:
	adrp	x11, _WIIPROTO_FLAG_IR_EXT@GOTPAGE
Lloh27:
	ldr	x11, [x11, _WIIPROTO_FLAG_IR_EXT@GOTPAGEOFF]
Lloh28:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_6
; %bb.5:
Lloh29:
	adrp	x8, _WIIPROTO_REQ_DRM_KAI@GOTPAGE
Lloh30:
	ldr	x8, [x8, _WIIPROTO_REQ_DRM_KAI@GOTPAGEOFF]
Lloh31:
	ldr	x0, [x8]
	ret
LBB0_6:
Lloh32:
	adrp	x11, _WIIPROTO_FLAG_IR_FULL@GOTPAGE
Lloh33:
	ldr	x11, [x11, _WIIPROTO_FLAG_IR_FULL@GOTPAGEOFF]
Lloh34:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_8
; %bb.7:
Lloh35:
	adrp	x8, _WIIPROTO_REQ_DRM_SKAI1@GOTPAGE
Lloh36:
	ldr	x8, [x8, _WIIPROTO_REQ_DRM_SKAI1@GOTPAGEOFF]
Lloh37:
	ldr	x0, [x8]
	ret
LBB0_8:
Lloh38:
	adrp	x10, _WIIPROTO_FLAG_ACCEL@GOTPAGE
Lloh39:
	ldr	x10, [x10, _WIIPROTO_FLAG_ACCEL@GOTPAGEOFF]
Lloh40:
	adrp	x11, _WIIPROTO_REQ_DRM_K@GOTPAGE
Lloh41:
	ldr	x11, [x11, _WIIPROTO_REQ_DRM_K@GOTPAGEOFF]
Lloh42:
	ldrsw	x10, [x10]
Lloh43:
	adrp	x12, _WIIPROTO_REQ_DRM_KEE@GOTPAGE
Lloh44:
	ldr	x12, [x12, _WIIPROTO_REQ_DRM_KEE@GOTPAGEOFF]
	cmp	w9, #0
Lloh45:
	adrp	x9, _WIIPROTO_REQ_DRM_KA@GOTPAGE
Lloh46:
	ldr	x9, [x9, _WIIPROTO_REQ_DRM_KA@GOTPAGEOFF]
	csel	x11, x12, x11, ne
Lloh47:
	adrp	x12, _WIIPROTO_REQ_DRM_KAE@GOTPAGE
Lloh48:
	ldr	x12, [x12, _WIIPROTO_REQ_DRM_KAE@GOTPAGEOFF]
	csel	x9, x12, x9, ne
	tst	x8, x10
	csel	x8, x11, x9, eq
	ldr	x0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_WIIPROTO_FLAGS_IR,8,3          ; @WIIPROTO_FLAGS_IR
	.comm	_WIIPROTO_FLAG_EXT_USED,4,2     ; @WIIPROTO_FLAG_EXT_USED
	.comm	_WIIPROTO_FLAG_MP_USED,4,2      ; @WIIPROTO_FLAG_MP_USED
	.comm	_WIIMOTE_DEV_BALANCE_BOARD,8,3  ; @WIIMOTE_DEV_BALANCE_BOARD
	.comm	_WIIPROTO_REQ_DRM_KEE,8,3       ; @WIIPROTO_REQ_DRM_KEE
	.comm	_WIIPROTO_REQ_DRM_K,8,3         ; @WIIPROTO_REQ_DRM_K
	.comm	_WIIPROTO_FLAG_IR_BASIC,8,3     ; @WIIPROTO_FLAG_IR_BASIC
	.comm	_WIIPROTO_FLAG_ACCEL,4,2        ; @WIIPROTO_FLAG_ACCEL
	.comm	_WIIPROTO_REQ_DRM_KAIE,8,3      ; @WIIPROTO_REQ_DRM_KAIE
	.comm	_WIIPROTO_REQ_DRM_KIE,8,3       ; @WIIPROTO_REQ_DRM_KIE
	.comm	_WIIPROTO_FLAG_IR_EXT,8,3       ; @WIIPROTO_FLAG_IR_EXT
	.comm	_WIIPROTO_REQ_DRM_KAI,8,3       ; @WIIPROTO_REQ_DRM_KAI
	.comm	_WIIPROTO_FLAG_IR_FULL,8,3      ; @WIIPROTO_FLAG_IR_FULL
	.comm	_WIIPROTO_REQ_DRM_SKAI1,8,3     ; @WIIPROTO_REQ_DRM_SKAI1
	.comm	_WIIPROTO_REQ_DRM_KAE,8,3       ; @WIIPROTO_REQ_DRM_KAE
	.comm	_WIIPROTO_REQ_DRM_KA,8,3        ; @WIIPROTO_REQ_DRM_KA
	.no_dead_strip	_select_drm
.subsections_via_symbols
