	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function xenon360_input_state
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_1:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
LCPI0_2:
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
LCPI0_3:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_xenon360_input_state:                  ## @xenon360_input_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_DEFAULT_MAX_PADS@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpl	%ecx, (%rsi)
	jle	LBB0_12
## %bb.1:
	cmpl	$128, %r8d
	jne	LBB0_11
## %bb.2:
	movl	16(%rbp), %eax
	movslq	%ecx, %rcx
	movq	(%rdx,%rcx,8), %rdx
	movq	_RETRO_DEVICE_ID_JOYPAD_MASK@GOTPCREL(%rip), %rsi
	cmpl	%eax, (%rsi)
	jne	LBB0_10
## %bb.3:
	movq	_RARCH_FIRST_CUSTOM_BIND@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$0, %eax
	testq	%r9, %r9
	je	LBB0_12
## %bb.4:
	movq	_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %r8d
	cmpl	$8, %r9d
	jae	LBB0_6
## %bb.5:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_10:
	movq	_state@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	(%rdx,%rax,4), %edx
	movl	$1, %eax
	testl	%edx, (%rsi,%rcx,4)
	je	LBB0_11
LBB0_12:
	popq	%rbp
	retq
LBB0_11:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_6:
	movl	%r9d, %ecx
	andl	$-8, %ecx
	movd	%r8d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	(,%r9,4), %rax
	andq	$-32, %rax
	movdqa	LCPI0_0(%rip), %xmm5            ## xmm5 = [0,1,2,3]
	pxor	%xmm10, %xmm10
	xorl	%edi, %edi
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = [4,4,4,4]
	movdqa	LCPI0_2(%rip), %xmm11           ## xmm11 = [1065353216,1065353216,1065353216,1065353216]
	movdqa	LCPI0_3(%rip), %xmm9            ## xmm9 = [8,8,8,8]
	pxor	%xmm6, %xmm6
	pxor	%xmm3, %xmm3
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm5, %xmm1
	paddd	%xmm8, %xmm1
	movdqu	(%rdx,%rdi), %xmm7
	movdqu	16(%rdx,%rdi), %xmm2
	pand	%xmm0, %xmm7
	pand	%xmm0, %xmm2
	movdqa	%xmm5, %xmm4
	pslld	$23, %xmm4
	paddd	%xmm11, %xmm4
	cvttps2dq	%xmm4, %xmm4
	pslld	$23, %xmm1
	paddd	%xmm11, %xmm1
	cvttps2dq	%xmm1, %xmm1
	pcmpeqd	%xmm10, %xmm7
	pandn	%xmm4, %xmm7
	por	%xmm7, %xmm6
	pcmpeqd	%xmm10, %xmm2
	pandn	%xmm1, %xmm2
	por	%xmm2, %xmm3
	paddd	%xmm9, %xmm5
	addq	$32, %rdi
	cmpq	%rdi, %rax
	jne	LBB0_7
## %bb.8:
	por	%xmm6, %xmm3
	pshufd	$238, %xmm3, %xmm0              ## xmm0 = xmm3[2,3,2,3]
	por	%xmm3, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	por	%xmm0, %xmm1
	movd	%xmm1, %eax
	cmpq	%r9, %rcx
	je	LBB0_12
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rcx,4), %edi
	movl	$1, %esi
	shll	%cl, %esi
	andl	%r8d, %edi
	testl	%edi, %edi
	cmovel	%edi, %esi
	orl	%esi, %eax
	incq	%rcx
	cmpq	%rcx, %r9
	jne	LBB0_9
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULT_MAX_PADS,4,2           ## @DEFAULT_MAX_PADS
	.comm	_RETRO_DEVICE_ID_JOYPAD_MASK,4,2 ## @RETRO_DEVICE_ID_JOYPAD_MASK
	.comm	_RARCH_FIRST_CUSTOM_BIND,4,2    ## @RARCH_FIRST_CUSTOM_BIND
	.comm	_state,8,3                      ## @state
	.no_dead_strip	_xenon360_input_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function xenon360_input_state
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_xenon360_input_state:                  ; @xenon360_input_state
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w3 killed $w3 def $x3
Lloh0:
	adrp	x8, _DEFAULT_MAX_PADS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULT_MAX_PADS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w3
	b.le	LBB0_8
; %bb.1:
	cmp	w4, #128
	b.ne	LBB0_8
; %bb.2:
	sxtw	x10, w3
	ldr	x8, [x2, w3, sxtw #3]
Lloh3:
	adrp	x9, _RETRO_DEVICE_ID_JOYPAD_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RETRO_DEVICE_ID_JOYPAD_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w6
	b.ne	LBB0_6
; %bb.3:
Lloh6:
	adrp	x9, _RARCH_FIRST_CUSTOM_BIND@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RARCH_FIRST_CUSTOM_BIND@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cbz	w9, LBB0_8
; %bb.4:
Lloh9:
	adrp	x11, _state@GOTPAGE
Lloh10:
	ldr	x11, [x11, _state@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	ldr	w10, [x11, x10, lsl #2]
	cmp	w9, #16
	b.hs	LBB0_10
; %bb.5:
	mov	x11, #0
	mov	w0, #0
	b	LBB0_13
LBB0_6:
	mov	w9, w6
Lloh12:
	adrp	x11, _state@GOTPAGE
Lloh13:
	ldr	x11, [x11, _state@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
	ldr	w10, [x11, x10, lsl #2]
	ldr	w8, [x8, x9, lsl #2]
	tst	w8, w10
	b.eq	LBB0_8
; %bb.7:
	mov	w0, #1
	ret
LBB0_8:
	mov	w0, #0
LBB0_9:
	ret
LBB0_10:
	and	x11, x9, #0xfffffff0
	dup.4s	v0, w10
	movi.2d	v1, #0000000000000000
	movi.4s	v2, #4
	movi.4s	v3, #8
Lloh15:
	adrp	x12, lCPI0_0@PAGE
Lloh16:
	ldr	q4, [x12, lCPI0_0@PAGEOFF]
	add	x12, x8, #32
	movi.4s	v5, #12
	movi.4s	v6, #1
	movi.4s	v7, #16
	mov	x13, x11
	movi.2d	v16, #0000000000000000
	movi.2d	v17, #0000000000000000
	movi.2d	v18, #0000000000000000
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add.4s	v19, v4, v2
	add.4s	v20, v4, v3
	add.4s	v21, v4, v5
	ldp	q22, q23, [x12, #-32]
	ldp	q24, q25, [x12], #64
	and.16b	v22, v22, v0
	and.16b	v23, v23, v0
	and.16b	v24, v24, v0
	and.16b	v25, v25, v0
	cmeq.4s	v22, v22, #0
	cmeq.4s	v23, v23, #0
	cmeq.4s	v24, v24, #0
	cmeq.4s	v25, v25, #0
	ushl.4s	v26, v6, v4
	ushl.4s	v19, v6, v19
	ushl.4s	v20, v6, v20
	ushl.4s	v21, v6, v21
	bic.16b	v22, v26, v22
	bic.16b	v19, v19, v23
	bic.16b	v20, v20, v24
	bic.16b	v21, v21, v25
	orr.16b	v1, v22, v1
	orr.16b	v16, v19, v16
	orr.16b	v17, v20, v17
	orr.16b	v18, v21, v18
	add.4s	v4, v4, v7
	subs	x13, x13, #16
	b.ne	LBB0_11
; %bb.12:
	orr.16b	v0, v16, v1
	orr.16b	v0, v17, v0
	orr.16b	v0, v18, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	w12, s0
	mov.s	w13, v0[1]
	orr	w0, w12, w13
	cmp	x11, x9
	b.eq	LBB0_9
LBB0_13:
	mov	w12, #1
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x8, x11, lsl #2]
	lsl	w14, w12, w11
	tst	w13, w10
	csel	w13, wzr, w14, eq
	orr	w0, w13, w0
	add	x11, x11, #1
	cmp	x9, x11
	b.ne	LBB0_14
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdr	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULT_MAX_PADS,4,2           ; @DEFAULT_MAX_PADS
	.comm	_RETRO_DEVICE_ID_JOYPAD_MASK,4,2 ; @RETRO_DEVICE_ID_JOYPAD_MASK
	.comm	_RARCH_FIRST_CUSTOM_BIND,4,2    ; @RARCH_FIRST_CUSTOM_BIND
	.comm	_state,8,3                      ; @state
	.no_dead_strip	_xenon360_input_state
.subsections_via_symbols
