	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpad_init
_wpad_init:                             ## @wpad_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_hid_instance@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_pad_connection_find_vacant_pad
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	(%rbx), %rcx
	movl	%eax, %edx
	movl	$1, (%rcx,%rdx,4)
	movq	_wpad_driver@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	callq	_input_pad_connect
	xorl	%eax, %eax
	callq	_wpad_poll
	movq	_wpad_ready@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movl	$1, %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hid_instance,8,3               ## @hid_instance
	.comm	_wpad_driver,4,2                ## @wpad_driver
	.comm	_wpad_ready,4,2                 ## @wpad_ready
	.no_dead_strip	_wpad_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpad_init
_wpad_init:                             ; @wpad_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
Lloh0:
	adrp	x19, _hid_instance@GOTPAGE
Lloh1:
	ldr	x19, [x19, _hid_instance@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_pad_connection_find_vacant_pad
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	mov	w19, #1
	str	w19, [x8, w0, uxtw #2]
Lloh2:
	adrp	x1, _wpad_driver@GOTPAGE
Lloh3:
	ldr	x1, [x1, _wpad_driver@GOTPAGEOFF]
	bl	_input_pad_connect
	bl	_wpad_poll
Lloh4:
	adrp	x8, _wpad_ready@GOTPAGE
Lloh5:
	ldr	x8, [x8, _wpad_ready@GOTPAGEOFF]
Lloh6:
	str	w19, [x8]
	b	LBB0_3
LBB0_2:
	mov	w19, #0
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_hid_instance,8,3               ; @hid_instance
	.comm	_wpad_driver,4,2                ; @wpad_driver
	.comm	_wpad_ready,4,2                 ; @wpad_ready
	.no_dead_strip	_wpad_init
.subsections_via_symbols
