	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function multiport_init
_multiport_init:                        ## @multiport_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %edi
	leaq	-28(%rbp), %rsi
	callq	_dig_mode_start
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	leaq	-28(%rbp), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_dig_mode_start
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%rbx), %ecx
	cmpl	$3, %ebx
	movl	%ecx, %ebx
	jb	LBB0_2
LBB0_4:
	testl	%eax, %eax
	je	LBB0_8
LBB0_5:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_dbg
	movl	$4096, %ebx                     ## imm = 0x1000
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_slots_valid
	testq	%rax, %rax
	jne	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	decl	%ebx
	jne	LBB0_6
## %bb.10:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_7:
	movl	$1, %ebx
LBB0_11:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_dbg
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dbg
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"multiport_init(): digital mode activated.\n"

L_.str.1:                               ## @.str.1
	.asciz	"multiport_init(): unable to activate digital mode.\n"

L_.str.2:                               ## @.str.2
	.asciz	"multiport_init(): initialized == %d\n"

	.no_dead_strip	_multiport_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function multiport_init
_multiport_init:                        ; @multiport_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w0, [x0]
	add	x1, sp, #12
	bl	_dig_mode_start
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	w0, [x19]
	add	x1, sp, #12
	bl	_dig_mode_start
	cmp	w0, #0
	cset	w8, eq
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	w0, [x19]
	add	x1, sp, #12
	bl	_dig_mode_start
	cmp	w0, #0
	cset	w8, eq
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	w0, [x19]
	add	x1, sp, #12
	bl	_dig_mode_start
	cmp	w0, #0
	cset	w8, eq
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w0, [x19]
	add	x1, sp, #12
	bl	_dig_mode_start
	cmp	w0, #0
	cset	w8, eq
LBB0_5:
	tbz	w8, #0, LBB0_7
; %bb.6:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dbg
	mov	w19, #0
	b	LBB0_13
LBB0_7:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg
	mov	w20, #4096
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_slots_valid
	cbnz	x0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	subs	w20, w20, #1
	b.ne	LBB0_8
; %bb.10:
	mov	w19, #0
	b	LBB0_12
LBB0_11:
	mov	w19, #1
LBB0_12:
	str	x19, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dbg
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"multiport_init(): digital mode activated.\n"

l_.str.1:                               ; @.str.1
	.asciz	"multiport_init(): unable to activate digital mode.\n"

l_.str.2:                               ; @.str.2
	.asciz	"multiport_init(): initialized == %d\n"

	.no_dead_strip	_multiport_init
.subsections_via_symbols
