	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qnx_joypad_button
_qnx_joypad_button:                     ## @qnx_joypad_button
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %ebx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_input_driver_get_data
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_DEFAULT_MAX_PADS@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jbe	LBB0_5
## %bb.2:
	cmpl	$19, %r14d
	jg	LBB0_5
## %bb.3:
	movq	_MAX_USERS@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jbe	LBB0_5
## %bb.4:
	movq	(%rax), %rax
	movl	%ebx, %ecx
	movl	(%rax,%rcx,4), %eax
	xorl	%r15d, %r15d
	btl	%r14d, %eax
	setb	%r15b
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULT_MAX_PADS,4,2           ## @DEFAULT_MAX_PADS
	.comm	_MAX_USERS,4,2                  ## @MAX_USERS
	.no_dead_strip	_qnx_joypad_button
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qnx_joypad_button
_qnx_joypad_button:                     ; @qnx_joypad_button
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_input_driver_get_data
	mov	x8, x0
	mov	w0, #0
	cbz	x8, LBB0_5
; %bb.1:
Lloh0:
	adrp	x9, _DEFAULT_MAX_PADS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DEFAULT_MAX_PADS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w20
	b.ls	LBB0_5
; %bb.2:
	mov	w0, #0
	cmp	w19, #19
	b.gt	LBB0_5
; %bb.3:
Lloh3:
	adrp	x9, _MAX_USERS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_USERS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w20
	b.ls	LBB0_5
; %bb.4:
	ldr	x8, [x8]
	ldr	w8, [x8, w20, uxtw #2]
	lsr	w8, w8, w19
	and	w0, w8, #0x1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULT_MAX_PADS,4,2           ; @DEFAULT_MAX_PADS
	.comm	_MAX_USERS,4,2                  ; @MAX_USERS
	.no_dead_strip	_qnx_joypad_button
.subsections_via_symbols
