	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PicoSetInputDevice             ## -- Begin function PicoSetInputDevice
	.p2align	4, 0x90
_PicoSetInputDevice:                    ## @PicoSetInputDevice
	.cfi_startproc
## %bb.0:
	cmpl	$2, %edi
	ja	LBB0_7
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$128, %esi
	jne	LBB0_2
## %bb.3:
	movq	_read_pad_6btn@GOTPCREL(%rip), %rax
	cmpl	$129, %esi
	je	LBB0_5
	jmp	LBB0_6
LBB0_2:
	movq	_read_nothing@GOTPCREL(%rip), %rax
	cmpl	$129, %esi
	jne	LBB0_6
LBB0_5:
	movq	_read_pad_3btn@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
	movq	_port_readers@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%edi, %edx
	movq	%rax, (%rcx,%rdx,8)
	popq	%rbp
LBB0_7:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_read_pad_3btn,8,3              ## @read_pad_3btn
	.comm	_read_pad_6btn,8,3              ## @read_pad_6btn
	.comm	_read_nothing,8,3               ## @read_nothing
	.comm	_port_readers,8,3               ## @port_readers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PicoSetInputDevice             ; -- Begin function PicoSetInputDevice
	.p2align	2
_PicoSetInputDevice:                    ; @PicoSetInputDevice
	.cfi_startproc
; %bb.0:
	cmp	w0, #2
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _read_pad_3btn@GOTPAGE
Lloh1:
	ldr	x8, [x8, _read_pad_3btn@GOTPAGEOFF]
Lloh2:
	adrp	x9, _read_pad_6btn@GOTPAGE
Lloh3:
	ldr	x9, [x9, _read_pad_6btn@GOTPAGEOFF]
Lloh4:
	adrp	x10, _read_nothing@GOTPAGE
Lloh5:
	ldr	x10, [x10, _read_nothing@GOTPAGEOFF]
	cmp	w1, #128
	csel	x9, x9, x10, eq
	cmp	w1, #129
	csel	x8, x8, x9, eq
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _port_readers@GOTPAGE
Lloh7:
	ldr	x9, [x9, _port_readers@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	str	x8, [x9, w0, uxtw #3]
LBB0_2:
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_read_pad_3btn,8,3              ; @read_pad_3btn
	.comm	_read_pad_6btn,8,3              ; @read_pad_6btn
	.comm	_read_nothing,8,3               ; @read_nothing
	.comm	_port_readers,8,3               ; @port_readers
.subsections_via_symbols
