	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_pad
_get_pad:                               ## @get_pad
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	callq	_wiiu_hid_joypad_query
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movl	%ebx, %edi
	callq	_HID_PAD_CONNECTION_PTR
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	cmpl	$0, 8(%rax)
	je	LBB0_8
## %bb.3:
	cmpl	$0, 4(%rax)
	je	LBB0_8
## %bb.4:
	xorl	%ecx, %ecx
	cmpl	$0, (%rax)
	cmoveq	%rcx, %rax
	jmp	LBB0_9
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_get_pad
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_pad
_get_pad:                               ; @get_pad
	.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
	bl	_wiiu_hid_joypad_query
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_HID_PAD_CONNECTION_PTR
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_5
; %bb.3:
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_5
; %bb.4:
	ldr	w8, [x0]
	cmp	w8, #0
	csel	x0, xzr, x0, eq
	b	LBB0_6
LBB0_5:
	mov	x0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_get_pad
.subsections_via_symbols
