	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxgb4_read_tpte                ## -- Begin function cxgb4_read_tpte
	.p2align	4, 0x90
_cxgb4_read_tpte:                       ## @cxgb4_read_tpte
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	callq	_netdev2adap
	movq	%rax, %r15
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	sarl	$3, %r13d
	andl	$-32, %r13d
	addl	12(%rax), %r13d
	movq	_MA_EDRAM0_BAR_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_t4_read_reg
	movl	%eax, %edi
	callq	_EDRAM0_SIZE_G
	movl	%eax, %ebx
	movl	%eax, %r12d
	shll	$20, %r12d
	movq	_MA_EDRAM1_BAR_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_t4_read_reg
	movl	%eax, %edi
	callq	_EDRAM1_SIZE_G
	movl	%eax, %r14d
	movq	_MA_EXT_MEMORY0_BAR_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_t4_read_reg
	movl	%eax, %edi
	callq	_EXT_MEM0_SIZE_G
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_MA_TARGET_MEM_ENABLE_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_t4_read_reg
	movq	_HMA_MUX_F@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	_MA_EXT_MEMORY1_BAR_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_t4_read_reg
	movl	%eax, %edi
	callq	_EXT_MEM1_SIZE_G
	shll	$20, %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movl	%r13d, %edx
	subl	%r12d, %edx
	jge	LBB0_5
## %bb.4:
	movq	_MEM_EDC0@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_5:
	addl	%ebx, %r14d
	movl	%r14d, %esi
	shll	$20, %esi
	movl	%r13d, %ecx
	subl	%esi, %ecx
	jge	LBB0_7
## %bb.6:
	movq	_MEM_EDC1@GOTPCREL(%rip), %rax
	movl	%edx, %r13d
	jmp	LBB0_15
LBB0_7:
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	addl	%esi, %eax
	cmpl	%eax, %r13d
	jge	LBB0_10
## %bb.9:
	movq	_MEM_HMA@GOTPCREL(%rip), %rax
	movl	%ecx, %r13d
	jmp	LBB0_15
LBB0_10:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addl	%r14d, %eax
	movl	%eax, %r14d
	shll	$20, %eax
	movl	%r13d, %ebx
	subl	%eax, %ebx
	jge	LBB0_12
## %bb.11:
	movq	_MEM_MC0@GOTPCREL(%rip), %rax
	movl	%ecx, %r13d
	jmp	LBB0_15
LBB0_12:
	movl	8(%r15), %edi
	callq	_is_t5
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	movq	_MA_EXT_MEMORY1_BAR_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_t4_read_reg
	movl	%eax, %edi
	callq	_EXT_MEM1_SIZE_G
	addl	%r14d, %eax
	shll	$20, %eax
	cmpl	%eax, %r13d
	jge	LBB0_16
## %bb.14:
	movq	_MEM_MC1@GOTPCREL(%rip), %rax
	movl	%ebx, %r13d
LBB0_15:
	movl	(%rax), %r14d
	movq	%r15, %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	_T4_MEMORY_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	movl	$32, %r8d
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	callq	_t4_memory_rw
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_spin_unlock
	movl	%r14d, %eax
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_MA_EDRAM0_BAR_A,4,2            ## @MA_EDRAM0_BAR_A
	.comm	_MA_EDRAM1_BAR_A,4,2            ## @MA_EDRAM1_BAR_A
	.comm	_MA_EXT_MEMORY0_BAR_A,4,2       ## @MA_EXT_MEMORY0_BAR_A
	.comm	_MA_TARGET_MEM_ENABLE_A,4,2     ## @MA_TARGET_MEM_ENABLE_A
	.comm	_HMA_MUX_F,4,2                  ## @HMA_MUX_F
	.comm	_MA_EXT_MEMORY1_BAR_A,4,2       ## @MA_EXT_MEMORY1_BAR_A
	.comm	_MEM_EDC0,4,2                   ## @MEM_EDC0
	.comm	_MEM_EDC1,4,2                   ## @MEM_EDC1
	.comm	_MEM_HMA,4,2                    ## @MEM_HMA
	.comm	_MEM_MC0,4,2                    ## @MEM_MC0
	.comm	_MEM_MC1,4,2                    ## @MEM_MC1
	.comm	_T4_MEMORY_READ,4,2             ## @T4_MEMORY_READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stag %#x, offset %#x out of range\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxgb4_read_tpte                ; -- Begin function cxgb4_read_tpte
	.p2align	2
_cxgb4_read_tpte:                       ; @cxgb4_read_tpte
	.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, x2
	mov	x22, x1
	bl	_netdev2adap
	mov	x20, x0
	asr	w8, w22, #3
	and	w8, w8, #0xffffffe0
	ldr	w9, [x0, #12]
	add	w21, w9, w8
Lloh0:
	adrp	x8, _MA_EDRAM0_BAR_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MA_EDRAM0_BAR_A@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_t4_read_reg
	bl	_EDRAM0_SIZE_G
	mov	x23, x0
	lsl	w26, w0, #20
Lloh3:
	adrp	x8, _MA_EDRAM1_BAR_A@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MA_EDRAM1_BAR_A@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_t4_read_reg
	bl	_EDRAM1_SIZE_G
	mov	x25, x0
Lloh6:
	adrp	x8, _MA_EXT_MEMORY0_BAR_A@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MA_EXT_MEMORY0_BAR_A@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_t4_read_reg
	bl	_EXT_MEM0_SIZE_G
	mov	x24, x0
Lloh9:
	adrp	x8, _MA_TARGET_MEM_ENABLE_A@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MA_TARGET_MEM_ENABLE_A@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_t4_read_reg
Lloh12:
	adrp	x8, _HMA_MUX_F@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HMA_MUX_F@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
Lloh15:
	adrp	x8, _MA_EXT_MEMORY1_BAR_A@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MA_EXT_MEMORY1_BAR_A@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_t4_read_reg
	bl	_EXT_MEM1_SIZE_G
	lsl	w8, w0, #20
	subs	w11, w21, w26
	b.ge	LBB0_4
LBB0_2:
Lloh18:
	adrp	x8, _MEM_EDC0@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MEM_EDC0@GOTPAGEOFF]
	b	LBB0_14
LBB0_3:
	mov	w8, #0
	subs	w11, w21, w26
	b.lt	LBB0_2
LBB0_4:
	add	w10, w25, w23
	lsl	w12, w10, #20
	subs	w9, w21, w12
	b.ge	LBB0_6
; %bb.5:
Lloh20:
	adrp	x8, _MEM_EDC1@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MEM_EDC1@GOTPAGEOFF]
	mov	x21, x11
	b	LBB0_14
LBB0_6:
	cbz	w8, LBB0_9
; %bb.7:
	add	w8, w8, w12
	cmp	w21, w8
	b.ge	LBB0_9
; %bb.8:
Lloh22:
	adrp	x8, _MEM_HMA@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MEM_HMA@GOTPAGEOFF]
	mov	x21, x9
	b	LBB0_14
LBB0_9:
	add	w24, w24, w10
	lsl	w8, w24, #20
	subs	w23, w21, w8
	b.ge	LBB0_11
; %bb.10:
Lloh24:
	adrp	x8, _MEM_MC0@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MEM_MC0@GOTPAGEOFF]
	mov	x21, x9
	b	LBB0_14
LBB0_11:
	ldr	w0, [x20, #8]
	bl	_is_t5
	cbz	x0, LBB0_16
; %bb.12:
Lloh26:
	adrp	x8, _MA_EXT_MEMORY1_BAR_A@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MA_EXT_MEMORY1_BAR_A@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_t4_read_reg
	bl	_EXT_MEM1_SIZE_G
	add	w8, w0, w24
	cmp	w21, w8, lsl #20
	b.ge	LBB0_16
; %bb.13:
Lloh29:
	adrp	x8, _MEM_MC1@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MEM_MC1@GOTPAGEOFF]
	mov	x21, x23
LBB0_14:
	ldr	w22, [x8]
	add	x23, x20, #4
	mov	x0, x23
	bl	_spin_lock
Lloh31:
	adrp	x8, _T4_MEMORY_READ@GOTPAGE
Lloh32:
	ldr	x8, [x8, _T4_MEMORY_READ@GOTPAGEOFF]
Lloh33:
	ldr	w6, [x8]
	mov	x0, x20
	mov	w1, #0
	mov	x2, x22
	mov	x3, x21
	mov	w4, #32
	mov	x5, x19
	bl	_t4_memory_rw
	mov	x19, x0
	mov	x0, x23
	bl	_spin_unlock
	mov	x0, x19
LBB0_15:
	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
LBB0_16:
	ldr	w0, [x20]
Lloh34:
	adrp	x1, l_.str@PAGE
Lloh35:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	mov	x3, x21
	bl	_dev_err
Lloh36:
	adrp	x8, _EINVAL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_MA_EDRAM0_BAR_A,4,2            ; @MA_EDRAM0_BAR_A
	.comm	_MA_EDRAM1_BAR_A,4,2            ; @MA_EDRAM1_BAR_A
	.comm	_MA_EXT_MEMORY0_BAR_A,4,2       ; @MA_EXT_MEMORY0_BAR_A
	.comm	_MA_TARGET_MEM_ENABLE_A,4,2     ; @MA_TARGET_MEM_ENABLE_A
	.comm	_HMA_MUX_F,4,2                  ; @HMA_MUX_F
	.comm	_MA_EXT_MEMORY1_BAR_A,4,2       ; @MA_EXT_MEMORY1_BAR_A
	.comm	_MEM_EDC0,4,2                   ; @MEM_EDC0
	.comm	_MEM_EDC1,4,2                   ; @MEM_EDC1
	.comm	_MEM_HMA,4,2                    ; @MEM_HMA
	.comm	_MEM_MC0,4,2                    ; @MEM_MC0
	.comm	_MEM_MC1,4,2                    ; @MEM_MC1
	.comm	_T4_MEMORY_READ,4,2             ; @T4_MEMORY_READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stag %#x, offset %#x out of range\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
