	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xenon360_input_poll
_xenon360_input_poll:                   ## @xenon360_input_poll
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_DEFAULT_MAX_PADS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	je	LBB0_27
## %bb.1:
	leaq	-136(%rbp), %r14
	movq	_state@GOTPCREL(%rip), %r12
	movq	_RETRO_DEVICE_ID_JOYPAD_R@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_2 Depth=1
	orl	%ecx, %edx
	movl	%edx, (%rax,%rbx,4)
	incq	%rbx
	movl	(%r15), %eax
	cmpq	%rax, %rbx
	jae	LBB0_27
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_usb_do_poll
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_get_controller_data
	cmpq	$0, -48(%rbp)
	movl	$0, %ecx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_RETRO_DEVICE_ID_JOYPAD_A@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	orl	(%rax,%rbx,4), %ecx
	movl	%ecx, (%rax,%rbx,4)
	cmpq	$0, -56(%rbp)
	movl	$0, %edx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_RETRO_DEVICE_ID_JOYPAD_B@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	orl	%ecx, %edx
	movl	%edx, (%rax,%rbx,4)
	cmpq	$0, -64(%rbp)
	movl	$0, %ecx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_RETRO_DEVICE_ID_JOYPAD_X@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	orl	%edx, %ecx
	movl	%ecx, (%rax,%rbx,4)
	cmpq	$0, -72(%rbp)
	movl	$0, %edx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_RETRO_DEVICE_ID_JOYPAD_Y@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	orl	%ecx, %edx
	movl	%edx, (%rax,%rbx,4)
	cmpq	$0, -80(%rbp)
	movl	$0, %ecx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_RETRO_DEVICE_ID_JOYPAD_LEFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	orl	%edx, %ecx
	movl	%ecx, (%rax,%rbx,4)
	cmpq	$0, -88(%rbp)
	movl	$0, %edx
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_RETRO_DEVICE_ID_JOYPAD_RIGHT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	orl	%ecx, %edx
	movl	%edx, (%rax,%rbx,4)
	cmpq	$0, -96(%rbp)
	movl	$0, %ecx
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_RETRO_DEVICE_ID_JOYPAD_UP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	orl	%edx, %ecx
	movl	%ecx, (%rax,%rbx,4)
	cmpq	$0, -104(%rbp)
	movl	$0, %edx
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_RETRO_DEVICE_ID_JOYPAD_DOWN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	orl	%ecx, %edx
	movl	%edx, (%rax,%rbx,4)
	cmpq	$0, -112(%rbp)
	movl	$0, %ecx
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_RETRO_DEVICE_ID_JOYPAD_START@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	orl	%edx, %ecx
	movl	%ecx, (%rax,%rbx,4)
	cmpq	$0, -120(%rbp)
	movl	$0, %edx
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_RETRO_DEVICE_ID_JOYPAD_SELECT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	orl	%ecx, %edx
	movl	%edx, (%rax,%rbx,4)
	cmpq	$0, -128(%rbp)
	movl	$0, %ecx
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_RETRO_DEVICE_ID_JOYPAD_L@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	orl	%edx, %ecx
	movl	%ecx, (%rax,%rbx,4)
	cmpq	$0, -136(%rbp)
	movl	$0, %edx
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edx
	jmp	LBB0_26
LBB0_27:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULT_MAX_PADS,4,2           ## @DEFAULT_MAX_PADS
	.comm	_state,8,3                      ## @state
	.comm	_RETRO_DEVICE_ID_JOYPAD_A,4,2   ## @RETRO_DEVICE_ID_JOYPAD_A
	.comm	_RETRO_DEVICE_ID_JOYPAD_B,4,2   ## @RETRO_DEVICE_ID_JOYPAD_B
	.comm	_RETRO_DEVICE_ID_JOYPAD_X,4,2   ## @RETRO_DEVICE_ID_JOYPAD_X
	.comm	_RETRO_DEVICE_ID_JOYPAD_Y,4,2   ## @RETRO_DEVICE_ID_JOYPAD_Y
	.comm	_RETRO_DEVICE_ID_JOYPAD_LEFT,4,2 ## @RETRO_DEVICE_ID_JOYPAD_LEFT
	.comm	_RETRO_DEVICE_ID_JOYPAD_RIGHT,4,2 ## @RETRO_DEVICE_ID_JOYPAD_RIGHT
	.comm	_RETRO_DEVICE_ID_JOYPAD_UP,4,2  ## @RETRO_DEVICE_ID_JOYPAD_UP
	.comm	_RETRO_DEVICE_ID_JOYPAD_DOWN,4,2 ## @RETRO_DEVICE_ID_JOYPAD_DOWN
	.comm	_RETRO_DEVICE_ID_JOYPAD_START,4,2 ## @RETRO_DEVICE_ID_JOYPAD_START
	.comm	_RETRO_DEVICE_ID_JOYPAD_SELECT,4,2 ## @RETRO_DEVICE_ID_JOYPAD_SELECT
	.comm	_RETRO_DEVICE_ID_JOYPAD_L,4,2   ## @RETRO_DEVICE_ID_JOYPAD_L
	.comm	_RETRO_DEVICE_ID_JOYPAD_R,4,2   ## @RETRO_DEVICE_ID_JOYPAD_R
	.no_dead_strip	_xenon360_input_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xenon360_input_poll
_xenon360_input_poll:                   ; @xenon360_input_poll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x25, _DEFAULT_MAX_PADS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DEFAULT_MAX_PADS@GOTPAGEOFF]
	ldr	w8, [x25]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, #0
Lloh2:
	adrp	x26, _RETRO_DEVICE_ID_JOYPAD_LEFT@GOTPAGE
Lloh3:
	ldr	x26, [x26, _RETRO_DEVICE_ID_JOYPAD_LEFT@GOTPAGEOFF]
Lloh4:
	adrp	x27, _RETRO_DEVICE_ID_JOYPAD_RIGHT@GOTPAGE
Lloh5:
	ldr	x27, [x27, _RETRO_DEVICE_ID_JOYPAD_RIGHT@GOTPAGEOFF]
Lloh6:
	adrp	x28, _RETRO_DEVICE_ID_JOYPAD_UP@GOTPAGE
Lloh7:
	ldr	x28, [x28, _RETRO_DEVICE_ID_JOYPAD_UP@GOTPAGEOFF]
Lloh8:
	adrp	x21, _RETRO_DEVICE_ID_JOYPAD_DOWN@GOTPAGE
Lloh9:
	ldr	x21, [x21, _RETRO_DEVICE_ID_JOYPAD_DOWN@GOTPAGEOFF]
Lloh10:
	adrp	x20, _RETRO_DEVICE_ID_JOYPAD_START@GOTPAGE
Lloh11:
	ldr	x20, [x20, _RETRO_DEVICE_ID_JOYPAD_START@GOTPAGEOFF]
Lloh12:
	adrp	x22, _RETRO_DEVICE_ID_JOYPAD_SELECT@GOTPAGE
Lloh13:
	ldr	x22, [x22, _RETRO_DEVICE_ID_JOYPAD_SELECT@GOTPAGEOFF]
Lloh14:
	adrp	x23, _RETRO_DEVICE_ID_JOYPAD_L@GOTPAGE
Lloh15:
	ldr	x23, [x23, _RETRO_DEVICE_ID_JOYPAD_L@GOTPAGEOFF]
Lloh16:
	adrp	x24, _RETRO_DEVICE_ID_JOYPAD_R@GOTPAGE
Lloh17:
	ldr	x24, [x24, _RETRO_DEVICE_ID_JOYPAD_R@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_usb_do_poll
	mov	x0, sp
	mov	x1, x19
	bl	_get_controller_data
Lloh18:
	adrp	x8, _state@GOTPAGE
Lloh19:
	ldr	x8, [x8, _state@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	lsl	x9, x19, #2
	ldr	x10, [sp, #88]
Lloh21:
	adrp	x11, _RETRO_DEVICE_ID_JOYPAD_A@GOTPAGE
Lloh22:
	ldr	x11, [x11, _RETRO_DEVICE_ID_JOYPAD_A@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
	cmp	x10, #0
	csel	w10, wzr, w11, eq
	ldr	w11, [x8, x9]
	orr	w10, w11, w10
	str	w10, [x8, x9]
	ldr	x11, [sp, #80]
Lloh24:
	adrp	x12, _RETRO_DEVICE_ID_JOYPAD_B@GOTPAGE
Lloh25:
	ldr	x12, [x12, _RETRO_DEVICE_ID_JOYPAD_B@GOTPAGEOFF]
Lloh26:
	ldr	w12, [x12]
	cmp	x11, #0
	csel	w11, wzr, w12, eq
	orr	w10, w11, w10
	str	w10, [x8, x9]
	ldr	x11, [sp, #72]
Lloh27:
	adrp	x12, _RETRO_DEVICE_ID_JOYPAD_X@GOTPAGE
Lloh28:
	ldr	x12, [x12, _RETRO_DEVICE_ID_JOYPAD_X@GOTPAGEOFF]
Lloh29:
	ldr	w12, [x12]
	cmp	x11, #0
	csel	w11, wzr, w12, eq
	orr	w10, w11, w10
	str	w10, [x8, x9]
	ldr	x11, [sp, #64]
Lloh30:
	adrp	x12, _RETRO_DEVICE_ID_JOYPAD_Y@GOTPAGE
Lloh31:
	ldr	x12, [x12, _RETRO_DEVICE_ID_JOYPAD_Y@GOTPAGEOFF]
Lloh32:
	ldr	w12, [x12]
	cmp	x11, #0
	csel	w11, wzr, w12, eq
	orr	w10, w11, w10
	str	w10, [x8, x9]
	ldr	x11, [sp, #56]
	ldr	w12, [x26]
	cmp	x11, #0
	csel	w11, wzr, w12, eq
	orr	w10, w11, w10
	str	w10, [x8, x9]
	ldr	x11, [sp, #48]
	ldr	w12, [x27]
	cmp	x11, #0
	csel	w11, wzr, w12, eq
	orr	w10, w11, w10
	str	w10, [x8, x9]
	ldr	x11, [sp, #40]
	ldr	w12, [x28]
	cmp	x11, #0
	csel	w11, wzr, w12, eq
	orr	w10, w11, w10
	str	w10, [x8, x9]
	ldr	x11, [sp, #32]
	ldr	w12, [x21]
	cmp	x11, #0
	csel	w11, wzr, w12, eq
	orr	w10, w11, w10
	str	w10, [x8, x9]
	ldr	x11, [sp, #24]
	ldr	w12, [x20]
	cmp	x11, #0
	csel	w11, wzr, w12, eq
	orr	w10, w11, w10
	str	w10, [x8, x9]
	ldr	x11, [sp, #16]
	ldr	w12, [x22]
	cmp	x11, #0
	csel	w11, wzr, w12, eq
	orr	w10, w11, w10
	str	w10, [x8, x9]
	ldr	x11, [sp, #8]
	ldr	w12, [x23]
	cmp	x11, #0
	csel	w11, wzr, w12, eq
	orr	w10, w11, w10
	str	w10, [x8, x9]
	ldr	x11, [sp]
	ldr	w12, [x24]
	cmp	x11, #0
	csel	w11, wzr, w12, eq
	orr	w10, w11, w10
	str	w10, [x8, x9]
	add	x19, x19, #1
	ldr	w8, [x25]
	cmp	x19, x8
	b.lo	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULT_MAX_PADS,4,2           ; @DEFAULT_MAX_PADS
	.comm	_state,8,3                      ; @state
	.comm	_RETRO_DEVICE_ID_JOYPAD_A,4,2   ; @RETRO_DEVICE_ID_JOYPAD_A
	.comm	_RETRO_DEVICE_ID_JOYPAD_B,4,2   ; @RETRO_DEVICE_ID_JOYPAD_B
	.comm	_RETRO_DEVICE_ID_JOYPAD_X,4,2   ; @RETRO_DEVICE_ID_JOYPAD_X
	.comm	_RETRO_DEVICE_ID_JOYPAD_Y,4,2   ; @RETRO_DEVICE_ID_JOYPAD_Y
	.comm	_RETRO_DEVICE_ID_JOYPAD_LEFT,4,2 ; @RETRO_DEVICE_ID_JOYPAD_LEFT
	.comm	_RETRO_DEVICE_ID_JOYPAD_RIGHT,4,2 ; @RETRO_DEVICE_ID_JOYPAD_RIGHT
	.comm	_RETRO_DEVICE_ID_JOYPAD_UP,4,2  ; @RETRO_DEVICE_ID_JOYPAD_UP
	.comm	_RETRO_DEVICE_ID_JOYPAD_DOWN,4,2 ; @RETRO_DEVICE_ID_JOYPAD_DOWN
	.comm	_RETRO_DEVICE_ID_JOYPAD_START,4,2 ; @RETRO_DEVICE_ID_JOYPAD_START
	.comm	_RETRO_DEVICE_ID_JOYPAD_SELECT,4,2 ; @RETRO_DEVICE_ID_JOYPAD_SELECT
	.comm	_RETRO_DEVICE_ID_JOYPAD_L,4,2   ; @RETRO_DEVICE_ID_JOYPAD_L
	.comm	_RETRO_DEVICE_ID_JOYPAD_R,4,2   ; @RETRO_DEVICE_ID_JOYPAD_R
	.no_dead_strip	_xenon360_input_poll
.subsections_via_symbols
