	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wiiu_joypad_init
_wiiu_joypad_init:                      ## @wiiu_joypad_init
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_wiiu_pad_connection_listener@GOTPCREL(%rip), %rdi
	callq	_set_connection_listener
	movq	_MAX_USERS@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_pad_connection_init
	movq	_hid_instance@GOTPCREL(%rip), %rcx
	movl	%eax, 4(%rcx)
	movl	(%r14), %eax
	movl	%eax, (%rcx)
	movq	_wpad_driver@GOTPCREL(%rip), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	_kpad_driver@GOTPCREL(%rip), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	_ready@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movl	$1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wiiu_pad_connection_listener,4,2 ## @wiiu_pad_connection_listener
	.comm	_MAX_USERS,4,2                  ## @MAX_USERS
	.comm	_hid_instance,8,2               ## @hid_instance
	.comm	_wpad_driver,8,3                ## @wpad_driver
	.comm	_kpad_driver,8,3                ## @kpad_driver
	.comm	_ready,4,2                      ## @ready
	.comm	_hidpad_driver,8,3              ## @hidpad_driver
	.no_dead_strip	_wiiu_joypad_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wiiu_joypad_init
_wiiu_joypad_init:                      ; @wiiu_joypad_init
	.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, x0
Lloh0:
	adrp	x0, _wiiu_pad_connection_listener@GOTPAGE
Lloh1:
	ldr	x0, [x0, _wiiu_pad_connection_listener@GOTPAGEOFF]
	bl	_set_connection_listener
Lloh2:
	adrp	x20, _MAX_USERS@GOTPAGE
Lloh3:
	ldr	x20, [x20, _MAX_USERS@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_pad_connection_init
Lloh4:
	adrp	x8, _hid_instance@GOTPAGE
Lloh5:
	ldr	x8, [x8, _hid_instance@GOTPAGEOFF]
	ldr	w9, [x20]
	stp	w9, w0, [x8]
Lloh6:
	adrp	x8, _wpad_driver@GOTPAGE
Lloh7:
	ldr	x8, [x8, _wpad_driver@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
Lloh9:
	adrp	x8, _kpad_driver@GOTPAGE
Lloh10:
	ldr	x8, [x8, _kpad_driver@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
Lloh12:
	adrp	x8, _ready@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ready@GOTPAGEOFF]
	mov	w9, #1
Lloh14:
	str	w9, [x8]
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_wiiu_pad_connection_listener,4,2 ; @wiiu_pad_connection_listener
	.comm	_MAX_USERS,4,2                  ; @MAX_USERS
	.comm	_hid_instance,8,2               ; @hid_instance
	.comm	_wpad_driver,8,3                ; @wpad_driver
	.comm	_kpad_driver,8,3                ; @kpad_driver
	.comm	_ready,4,2                      ; @ready
	.comm	_hidpad_driver,8,3              ; @hidpad_driver
	.no_dead_strip	_wiiu_joypad_init
.subsections_via_symbols
