	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __wpad_init_finished
___wpad_init_finished:                  ## @__wpad_init_finished
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ERR_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rdi, %rax
	jne	LBB0_5
## %bb.1:
	movq	___wpad_devs@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.2:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r12
	movq	___wpads_listen@GOTPCREL(%rip), %r13
	movq	___wpad_assign_slot@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movl	20(%rax), %esi
	movl	16(%rax), %edx
	movl	12(%rax), %ecx
	movl	8(%rax), %r8d
	movl	(%rax), %edi
	movl	4(%rax), %r9d
	movl	%edi, (%rsp)
	movq	%r12, %rdi
	callq	_BD_ADDR
	leaq	(,%rbx,4), %rdi
	addq	(%r13), %rdi
	movl	(%r14), %edx
	movq	%r12, %rsi
	callq	_wiiuse_register
	incq	%rbx
	cmpq	(%r15), %rbx
	jb	LBB0_3
## %bb.4:
	movq	_ERR_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_5:
	movq	_WPAD_STATE_ENABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	___wpads_inited@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_OK,8,3                     ## @ERR_OK
	.comm	___wpad_devs,16,3               ## @__wpad_devs
	.comm	___wpads_listen,8,3             ## @__wpads_listen
	.comm	___wpad_assign_slot,4,2         ## @__wpad_assign_slot
	.comm	_WPAD_STATE_ENABLED,4,2         ## @WPAD_STATE_ENABLED
	.comm	___wpads_inited,4,2             ## @__wpads_inited
	.no_dead_strip	___wpad_init_finished
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __wpad_init_finished
___wpad_init_finished:                  ; @__wpad_init_finished
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x8, x0
Lloh0:
	adrp	x19, _ERR_OK@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ERR_OK@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh2:
	adrp	x20, ___wpad_devs@GOTPAGE
Lloh3:
	ldr	x20, [x20, ___wpad_devs@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x0, x8
	ccmp	x9, #0, #4, eq
	b.eq	LBB0_4
; %bb.1:
	mov	x21, #0
	mov	x22, #0
Lloh4:
	adrp	x23, ___wpads_listen@GOTPAGE
Lloh5:
	ldr	x23, [x23, ___wpads_listen@GOTPAGEOFF]
Lloh6:
	adrp	x24, ___wpad_assign_slot@GOTPAGE
Lloh7:
	ldr	x24, [x24, ___wpad_assign_slot@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x22, lsl #3]
	ldp	w2, w1, [x8, #16]
	ldp	w4, w3, [x8, #8]
	ldp	w6, w5, [x8]
	add	x0, sp, #8
	bl	_BD_ADDR
	ldr	x8, [x23]
	add	x0, x8, x21
	ldr	w2, [x24]
	add	x1, sp, #8
	bl	_wiiuse_register
	add	x22, x22, #1
	ldr	x8, [x20]
	add	x21, x21, #4
	cmp	x22, x8
	b.lo	LBB0_2
; %bb.3:
	ldr	x0, [x19]
LBB0_4:
Lloh8:
	adrp	x8, _WPAD_STATE_ENABLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WPAD_STATE_ENABLED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, ___wpads_inited@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___wpads_inited@GOTPAGEOFF]
Lloh13:
	str	w8, [x9]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_OK,8,3                     ; @ERR_OK
	.comm	___wpad_devs,16,3               ; @__wpad_devs
	.comm	___wpads_listen,8,3             ; @__wpads_listen
	.comm	___wpad_assign_slot,4,2         ; @__wpad_assign_slot
	.comm	_WPAD_STATE_ENABLED,4,2         ; @WPAD_STATE_ENABLED
	.comm	___wpads_inited,4,2             ; @__wpads_inited
	.no_dead_strip	___wpad_init_finished
.subsections_via_symbols
