	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wiiu_joypad_query_pad
_wiiu_joypad_query_pad:                 ## @wiiu_joypad_query_pad
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ready@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	$0, (%rcx)
	je	LBB0_4
## %bb.1:
	movq	_MAX_USERS@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	jbe	LBB0_4
## %bb.2:
	movq	_pad_drivers@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%edi, %edx
	movq	(%rcx,%rdx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	callq	*(%rcx)
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	setne	%al
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ready,8,3                      ## @ready
	.comm	_MAX_USERS,4,2                  ## @MAX_USERS
	.comm	_pad_drivers,8,3                ## @pad_drivers
	.no_dead_strip	_wiiu_joypad_query_pad
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wiiu_joypad_query_pad
_wiiu_joypad_query_pad:                 ; @wiiu_joypad_query_pad
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _ready@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ready@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _MAX_USERS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_USERS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x8, #0
	ccmp	w9, w0, #0, ne
	b.ls	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _pad_drivers@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pad_drivers@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x8, [x8, w0, uxtw #3]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x8]
	blr	x8
	cmp	x0, #0
	cset	w0, ne
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ready,8,3                      ; @ready
	.comm	_MAX_USERS,4,2                  ; @MAX_USERS
	.comm	_pad_drivers,8,3                ; @pad_drivers
	.no_dead_strip	_wiiu_joypad_query_pad
.subsections_via_symbols
