	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function libusb_hid_joypad_button
_libusb_hid_joypad_button:              ## @libusb_hid_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	leaq	-20(%rbp), %rdx
	callq	_libusb_hid_joypad_get_buttons
	movl	%r14d, %edi
	callq	_GET_HAT_DIR
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_4
## %bb.1:
	cmpl	$31, %r14d
	jg	LBB0_4
## %bb.2:
	movq	_MAX_USERS@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jbe	LBB0_4
## %bb.3:
	movl	-20(%rbp), %edi
	movl	%r14d, %esi
	callq	_BIT256_GET
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	setne	%al
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_USERS,4,2                  ## @MAX_USERS
	.no_dead_strip	_libusb_hid_joypad_button
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function libusb_hid_joypad_button
_libusb_hid_joypad_button:              ; @libusb_hid_joypad_button
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x1
	add	x2, sp, #12
	bl	_libusb_hid_joypad_get_buttons
	mov	x0, x19
	bl	_GET_HAT_DIR
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
	cmp	w19, #31
	b.gt	LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _MAX_USERS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_USERS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ls	LBB0_5
; %bb.4:
	ldr	w0, [sp, #12]
	mov	x1, x19
	bl	_BIT256_GET
	cmp	x0, #0
	cset	w0, ne
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_USERS,4,2                  ; @MAX_USERS
	.no_dead_strip	_libusb_hid_joypad_button
.subsections_via_symbols
