	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function switchtec_ntb_init_mw
_switchtec_ntb_init_mw:                 ## @switchtec_ntb_init_mw
	.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	%rdi, %rbx
	movl	64(%rdi), %edi
	movq	56(%rbx), %rsi
	callq	_map_bars
	movq	%rax, 48(%rbx)
	movq	56(%rbx), %rdi
	callq	_ioread16
	movq	%rax, 40(%rbx)
	movq	%rax, %rdi
	callq	_rounddown_pow_of_two
	movq	%rax, 40(%rbx)
	movq	16(%rbx), %rdi
	movq	48(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rcx
	callq	_dev_dbg
	movl	32(%rbx), %edi
	movq	24(%rbx), %rsi
	callq	_map_bars
	movq	%rax, 8(%rbx)
	movq	24(%rbx), %rdi
	callq	_ioread16
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_rounddown_pow_of_two
	movq	%rax, (%rbx)
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MWs: %d direct, %d lut\n"

L_.str.1:                               ## @.str.1
	.asciz	"Peer MWs: %d direct, %d lut\n"

	.no_dead_strip	_switchtec_ntb_init_mw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function switchtec_ntb_init_mw
_switchtec_ntb_init_mw:                 ; @switchtec_ntb_init_mw
	.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
	ldr	w0, [x0, #64]
	ldr	x1, [x19, #56]
	bl	_map_bars
	str	x0, [x19, #48]
	ldr	x0, [x19, #56]
	bl	_ioread16
	str	x0, [x19, #40]
	bl	_rounddown_pow_of_two
	mov	x3, x0
	str	x0, [x19, #40]
	ldr	x0, [x19, #16]
	ldr	x2, [x19, #48]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	w0, [x19, #32]
	ldr	x1, [x19, #24]
	bl	_map_bars
	str	x0, [x19, #8]
	ldr	x0, [x19, #24]
	bl	_ioread16
	str	x0, [x19]
	bl	_rounddown_pow_of_two
	mov	x3, x0
	str	x0, [x19]
	ldp	x2, x0, [x19, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_dbg
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MWs: %d direct, %d lut\n"

l_.str.1:                               ; @.str.1
	.asciz	"Peer MWs: %d direct, %d lut\n"

	.no_dead_strip	_switchtec_ntb_init_mw
.subsections_via_symbols
