	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function diva_ask_for_xdi_sdram_bar
_diva_ask_for_xdi_sdram_bar:            ## @diva_ask_for_xdi_sdram_bar
	.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
	movq	$0, (%rdi)
	movq	_diva_xdi_extended_features@GOTPCREL(%rip), %rax
	movq	_DIVA_CAPI_XDI_PROVIDES_SDRAM_BAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	decq	%rax
	movq	(%rsi), %rcx
	movq	%rax, (%rcx)
	movq	$0, (%rsi)
	movq	$0, 16(%rsi)
	movq	_IDI_SYNC_REQ_XDI_GET_ADAPTER_SDRAM_BAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rsi)
	movq	%rsi, %rdi
	callq	*16(%r14)
	movq	(%rbx), %rdx
	movq	%rdx, (%r14)
	movq	8(%r14), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_dprintf
	movl	$3, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dbug                           ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_diva_xdi_extended_features,4,2 ## @diva_xdi_extended_features
	.comm	_DIVA_CAPI_XDI_PROVIDES_SDRAM_BAR,4,2 ## @DIVA_CAPI_XDI_PROVIDES_SDRAM_BAR
	.comm	_IDI_SYNC_REQ_XDI_GET_ADAPTER_SDRAM_BAR,4,2 ## @IDI_SYNC_REQ_XDI_GET_ADAPTER_SDRAM_BAR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"A(%d) SDRAM BAR = %08x"

	.no_dead_strip	_diva_ask_for_xdi_sdram_bar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function diva_ask_for_xdi_sdram_bar
_diva_ask_for_xdi_sdram_bar:            ; @diva_ask_for_xdi_sdram_bar
	.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	x8, _diva_xdi_extended_features@GOTPAGE
Lloh1:
	ldr	x8, [x8, _diva_xdi_extended_features@GOTPAGEOFF]
	str	xzr, [x0]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DIVA_CAPI_XDI_PROVIDES_SDRAM_BAR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DIVA_CAPI_XDI_PROVIDES_SDRAM_BAR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldp	x8, x9, [x0, #8]
	sub	x8, x8, #1
	ldr	x10, [x1]
	str	x8, [x10]
	str	xzr, [x1]
	str	xzr, [x1, #16]
Lloh6:
	adrp	x8, _IDI_SYNC_REQ_XDI_GET_ADAPTER_SDRAM_BAR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IDI_SYNC_REQ_XDI_GET_ADAPTER_SDRAM_BAR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x1, #8]
	mov	x0, x1
	blr	x9
	ldr	x2, [x20]
	str	x2, [x19]
	ldr	x1, [x19, #8]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintf
	mov	x1, x0
	mov	w0, #3
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dbug
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_diva_xdi_extended_features,4,2 ; @diva_xdi_extended_features
	.comm	_DIVA_CAPI_XDI_PROVIDES_SDRAM_BAR,4,2 ; @DIVA_CAPI_XDI_PROVIDES_SDRAM_BAR
	.comm	_IDI_SYNC_REQ_XDI_GET_ADAPTER_SDRAM_BAR,4,2 ; @IDI_SYNC_REQ_XDI_GET_ADAPTER_SDRAM_BAR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"A(%d) SDRAM BAR = %08x"

	.no_dead_strip	_diva_ask_for_xdi_sdram_bar
.subsections_via_symbols
