	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __wpad_setfmt
___wpad_setfmt:                         ## @__wpad_setfmt
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___wpdcb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rdi,4), %eax
	cmpl	$128, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_8
## %bb.3:
	movq	___wpads@GOTPCREL(%rip), %rcx
	leaq	(,%rbx,4), %rax
	addq	(%rcx), %rax
	movq	_WIIUSE_CONTINUOUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%esi, %esi
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_4:
	movq	___wpads@GOTPCREL(%rip), %rcx
	leaq	(,%rbx,4), %rax
	addq	(%rcx), %rax
	movq	_WIIUSE_CONTINUOUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	$1, %r14d
	xorl	%edx, %edx
	movl	$1, %r15d
	jmp	LBB0_7
LBB0_5:
	movq	___wpads@GOTPCREL(%rip), %rcx
	leaq	(,%rbx,4), %rax
	addq	(%rcx), %rax
	movq	_WIIUSE_CONTINUOUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	$1, %r14d
	xorl	%edx, %edx
LBB0_6:
	xorl	%r15d, %r15d
LBB0_7:
	movl	(%rax), %edi
	callq	_wiiuse_set_flags
	movq	___wpads@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	movl	%r14d, %esi
	callq	_wiiuse_motion_sensing
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	movl	%r15d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wiiuse_set_ir                  ## TAILCALL
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___wpdcb,8,3                    ## @__wpdcb
	.comm	___wpads,8,3                    ## @__wpads
	.comm	_WIIUSE_CONTINUOUS,4,2          ## @WIIUSE_CONTINUOUS
	.no_dead_strip	___wpad_setfmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __wpad_setfmt
___wpad_setfmt:                         ; @__wpad_setfmt
	.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	x8, ___wpdcb@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___wpdcb@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8, x0, lsl #2]
Lloh3:
	adrp	x22, ___wpads@GOTPAGE
Lloh4:
	ldr	x22, [x22, ___wpads@GOTPAGEOFF]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_7
; %bb.3:
	mov	w1, #0
	mov	w21, #0
	mov	w20, #0
	ldr	x8, [x22]
	add	x8, x8, x19, lsl #2
Lloh5:
	adrp	x9, _WIIUSE_CONTINUOUS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WIIUSE_CONTINUOUS@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x9]
	b	LBB0_6
LBB0_4:
	mov	w2, #0
	ldr	x8, [x22]
	add	x8, x8, x19, lsl #2
Lloh8:
	adrp	x9, _WIIUSE_CONTINUOUS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WIIUSE_CONTINUOUS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	mov	w21, #1
	mov	w20, #1
	b	LBB0_6
LBB0_5:
	mov	w2, #0
	mov	w20, #0
	ldr	x8, [x22]
	add	x8, x8, x19, lsl #2
Lloh11:
	adrp	x9, _WIIUSE_CONTINUOUS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _WIIUSE_CONTINUOUS@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x9]
	mov	w21, #1
LBB0_6:
	ldr	w0, [x8]
	bl	_wiiuse_set_flags
	ldr	x8, [x22]
	lsl	x19, x19, #2
	ldr	w0, [x8, x19]
	mov	x1, x21
	bl	_wiiuse_motion_sensing
	ldr	x8, [x22]
	ldr	w0, [x8, x19]
	mov	x1, x20
	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
	b	_wiiuse_set_ir
LBB0_7:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	___wpdcb,8,3                    ; @__wpdcb
	.comm	___wpads,8,3                    ; @__wpads
	.comm	_WIIUSE_CONTINUOUS,4,2          ; @WIIUSE_CONTINUOUS
	.no_dead_strip	___wpad_setfmt
.subsections_via_symbols
