	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_pad_6btn
_read_pad_6btn:                         ## @read_pad_6btn
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_PicoPadInt@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	movl	(%rax,%rcx,4), %eax
	notl	%eax
	movq	_Pico@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%rcx,4), %ecx
	andl	$64, %esi
	jne	LBB0_3
## %bb.1:
	cmpl	$2, %ecx
	jne	LBB0_3
## %bb.2:
	shrl	$2, %eax
	andl	$48, %eax
	jmp	LBB0_10
LBB0_3:
	cmpl	$3, %ecx
	jne	LBB0_7
## %bb.4:
	testl	%esi, %esi
	jne	LBB0_5
## %bb.6:
	shrl	$2, %eax
	andl	$48, %eax
	orl	$15, %eax
	popq	%rbp
	retq
LBB0_7:
	testl	%esi, %esi
	jne	LBB0_8
## %bb.9:
	movl	%eax, %ecx
	shrl	$2, %ecx
	andl	$48, %ecx
	andl	$3, %eax
	orl	%ecx, %eax
	jmp	LBB0_10
LBB0_5:
	movl	%eax, %ecx
	andl	$48, %ecx
	shrl	$8, %eax
	andl	$15, %eax
	orl	%ecx, %eax
	popq	%rbp
	retq
LBB0_8:
	andl	$63, %eax
LBB0_10:
	orl	%esi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PicoPadInt,8,3                 ## @PicoPadInt
	.comm	_Pico,8,3                       ## @Pico
	.no_dead_strip	_read_pad_6btn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_pad_6btn
_read_pad_6btn:                         ; @read_pad_6btn
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _PicoPadInt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PicoPadInt@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sbfiz	x10, x0, #2, #32
	ldr	w8, [x8, x10]
	mvn	w9, w8
Lloh3:
	adrp	x8, _Pico@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Pico@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w10, [x8, x10]
	and	w8, w1, #0x40
	tbnz	w1, #6, LBB0_3
; %bb.1:
	cmp	w10, #2
	b.ne	LBB0_3
; %bb.2:
	lsr	w9, w9, #2
	and	w9, w9, #0x30
	orr	w0, w9, w8
	ret
LBB0_3:
	cmp	w10, #3
	b.ne	LBB0_5
; %bb.4:
	lsr	w10, w9, #2
	and	w10, w10, #0x30
	orr	w10, w10, #0xf
	and	w11, w9, #0x30
	bfxil	w11, w9, #8, #4
	cmp	w8, #0
	csel	w0, w10, w11, eq
	ret
LBB0_5:
	lsr	w10, w9, #2
	and	w10, w10, #0x30
	bfxil	w10, w9, #0, #2
	and	w9, w9, #0x3f
	cmp	w8, #0
	csel	w9, w10, w9, eq
	orr	w0, w9, w8
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PicoPadInt,8,3                 ; @PicoPadInt
	.comm	_Pico,8,3                       ; @Pico
	.no_dead_strip	_read_pad_6btn
.subsections_via_symbols
