	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function maceps2_probe
_maceps2_probe:                         ## @maceps2_probe
	.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
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_maceps2_allocate_port
	movq	_maceps2_port@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	movl	$1, %edi
	callq	_maceps2_allocate_port
	movq	(%r14), %rcx
	movl	%eax, 4(%rcx)
	movl	(%rcx), %edi
	testl	%edi, %edi
	je	LBB0_2
## %bb.1:
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	callq	_serio_register_port
	movq	(%r14), %rax
	movl	4(%rax), %edi
	callq	_serio_register_port
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_2:
	callq	_kfree
	movq	(%r14), %rax
	movl	4(%rax), %edi
	callq	_kfree
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_maceps2_port,8,3               ## @maceps2_port
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_maceps2_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function maceps2_probe
_maceps2_probe:                         ; @maceps2_probe
	.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	w0, #0
	bl	_maceps2_allocate_port
Lloh0:
	adrp	x19, _maceps2_port@GOTPAGE
Lloh1:
	ldr	x19, [x19, _maceps2_port@GOTPAGEOFF]
	ldr	x8, [x19]
	str	w0, [x8]
	mov	w0, #1
	bl	_maceps2_allocate_port
	mov	x8, x0
	ldr	x9, [x19]
	str	w0, [x9, #4]
	ldr	w0, [x9]
	cmp	w0, #0
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	bl	_kfree
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	bl	_kfree
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	bl	_serio_register_port
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	bl	_serio_register_port
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_maceps2_port,8,3               ; @maceps2_port
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_maceps2_probe
.subsections_via_symbols
