	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function switchtec_ntb_init_db
_switchtec_ntb_init_db:                 ## @switchtec_ntb_init_db
	.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	$-1, (%rdi)
	movq	48(%rdi), %rsi
	cmpq	%rsi, 40(%rdi)
	je	LBB0_2
## %bb.1:
	movl	$0, 4(%rbx)
	movl	$-1, %eax
	jmp	LBB0_5
LBB0_2:
	movq	16(%rbx), %rax
	cmpq	24(%rbx), %rax
	jge	LBB0_4
## %bb.3:
	movl	$0, 4(%rbx)
	movl	$268435455, %eax                ## imm = 0xFFFFFFF
	movl	$32, %ecx
	jmp	LBB0_6
LBB0_4:
	movl	$32, 4(%rbx)
	movl	$268435455, %eax                ## imm = 0xFFFFFFF
LBB0_5:
	xorl	%ecx, %ecx
LBB0_6:
	movl	%ecx, 8(%rbx)
	movl	%eax, 12(%rbx)
	addq	$4, %rsi
	xorl	%edi, %edi
	callq	_iowrite64
	movl	12(%rbx), %edi
	movb	8(%rbx), %cl
	shll	%cl, %edi
	movq	40(%rbx), %rsi
	callq	_iowrite64
	movq	32(%rbx), %rdi
	movl	4(%rbx), %edx
	movl	8(%rbx), %ecx
	movl	12(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dbs: shift %d/%d, mask %016llx\n"

	.no_dead_strip	_switchtec_ntb_init_db
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function switchtec_ntb_init_db
lCPI0_0:
	.long	0                               ; 0x0
	.long	268435455                       ; 0xfffffff
lCPI0_1:
	.long	32                              ; 0x20
	.long	268435455                       ; 0xfffffff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_switchtec_ntb_init_db:                 ; @switchtec_ntb_init_db
	.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
	mov	w8, #-1
	str	w8, [x0]
	ldp	x9, x8, [x0, #40]
	cmp	x9, x8
	b.eq	LBB0_2
; %bb.1:
	str	wzr, [x19, #4]
	movi	d0, #0xffffffff00000000
	b	LBB0_5
LBB0_2:
	ldp	x9, x10, [x19, #16]
	cmp	x9, x10
	b.ge	LBB0_4
; %bb.3:
	str	wzr, [x19, #4]
Lloh0:
	adrp	x9, lCPI0_1@PAGE
Lloh1:
	ldr	d0, [x9, lCPI0_1@PAGEOFF]
	b	LBB0_5
LBB0_4:
	mov	w9, #32
	str	w9, [x19, #4]
Lloh2:
	adrp	x9, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
LBB0_5:
	str	d0, [x19, #8]
	add	x1, x8, #4
	mov	w0, #0
	bl	_iowrite64
	ldp	w9, w8, [x19, #8]
	lsl	w0, w8, w9
	ldr	x1, [x19, #40]
	bl	_iowrite64
	ldr	x0, [x19, #32]
	ldp	w2, w3, [x19, #4]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	ldr	w4, [x19, #12]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_dbg
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dbs: shift %d/%d, mask %016llx\n"

	.no_dead_strip	_switchtec_ntb_init_db
.subsections_via_symbols
