	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WPAD_ReadPending               ## -- Begin function WPAD_ReadPending
	.p2align	4, 0x90
_WPAD_ReadPending:                      ## @WPAD_ReadPending
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_WPAD_CHAN_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_WPAD_MAX_WIIMOTES@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rbx
	jge	LBB0_1
## %bb.2:
	xorl	%r14d, %r14d
	movq	_WPAD_ERR_NONE@GOTPCREL(%rip), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	%rax, %r14
	incq	%rbx
	cmpq	(%r15), %rbx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_pad_readpending_temp
	cmpq	(%r12), %rax
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	xorl	%r14d, %r14d
LBB0_6:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPAD_CHAN_0,8,3                ## @WPAD_CHAN_0
	.comm	_WPAD_MAX_WIIMOTES,8,3          ## @WPAD_MAX_WIIMOTES
	.comm	_WPAD_ERR_NONE,8,3              ## @WPAD_ERR_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WPAD_ReadPending               ; -- Begin function WPAD_ReadPending
	.p2align	2
_WPAD_ReadPending:                      ; @WPAD_ReadPending
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, _WPAD_CHAN_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WPAD_CHAN_0@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
Lloh3:
	adrp	x21, _WPAD_MAX_WIIMOTES@GOTPAGE
Lloh4:
	ldr	x21, [x21, _WPAD_MAX_WIIMOTES@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x19, x8
	b.ge	LBB0_3
; %bb.1:
	mov	x20, #0
Lloh5:
	adrp	x22, _WPAD_ERR_NONE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _WPAD_ERR_NONE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_pad_readpending_temp
	ldr	x8, [x22]
	cmp	x0, x8
	csel	x8, xzr, x0, lt
	add	x20, x8, x20
	add	x19, x19, #1
	ldr	x8, [x21]
	cmp	x19, x8
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	x20, #0
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_WPAD_CHAN_0,8,3                ; @WPAD_CHAN_0
	.comm	_WPAD_MAX_WIIMOTES,8,3          ; @WPAD_MAX_WIIMOTES
	.comm	_WPAD_ERR_NONE,8,3              ; @WPAD_ERR_NONE
.subsections_via_symbols
