	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function switchtec_ntb_lut_get_addr
_switchtec_ntb_lut_get_addr:            ## @switchtec_ntb_lut_get_addr
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_LUT_SIZE@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %r13
	callq	_lut_index
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	movq	%r15, %rbx
	movslq	%eax, %r15
	imulq	%r13, %r15
	movl	8(%r14), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_pci_resource_start
	addq	%r15, %rax
	movq	%rbx, %r15
	movq	_LUT_SIZE@GOTPCREL(%rip), %rbx
	movq	%rax, (%r12)
LBB0_2:
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %eax
	movl	%eax, (%r15)
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LUT_SIZE,4,2                   ## @LUT_SIZE
	.no_dead_strip	_switchtec_ntb_lut_get_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function switchtec_ntb_lut_get_addr
_switchtec_ntb_lut_get_addr:            ; @switchtec_ntb_lut_get_addr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x22, x0
	ldr	x8, [x0]
	ldr	w21, [x8]
Lloh0:
	adrp	x23, _LUT_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _LUT_SIZE@GOTPAGEOFF]
	ldrsw	x24, [x23]
	bl	_lut_index
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	x20, LBB0_2
; %bb.1:
	sxtw	x25, w0
	ldr	w0, [x22, #8]
	mov	x1, x21
	bl	_pci_resource_start
	madd	x8, x25, x24, x0
	str	x8, [x20]
LBB0_2:
	cbz	x19, LBB0_4
; %bb.3:
	ldr	w8, [x23]
	str	w8, [x19]
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LUT_SIZE,4,2                   ; @LUT_SIZE
	.no_dead_strip	_switchtec_ntb_lut_get_addr
.subsections_via_symbols
