	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_put_tid                   ## -- Begin function hfi1_put_tid
	.p2align	4, 0x90
_hfi1_put_tid:                          ## @hfi1_put_tid
	.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	_HFI1_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_8
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_PT_INVALID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r13d, %r13d
	movq	_PT_INVALID_FLUSH@GOTPCREL(%rip), %rdx
	cmpq	%r14, %rax
	je	LBB0_2
## %bb.3:
	movl	$0, %ebx
	cmpq	%r14, (%rdx)
	je	LBB0_5
## %bb.4:
	movq	%r8, %r13
	movq	%rcx, %rbx
	cmpq	%r14, %rax
	jge	LBB0_5
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	movq	%r15, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dd_dev_err                     ## TAILCALL
LBB0_2:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	movq	%r13, %r8
	callq	_trace_hfi1_put_tid
	movq	_RCV_ARRAY_RT_BUF_SIZE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %r13
	movq	_RCV_ARRAY_RT_WRITE_ENABLE_SMASK@GOTPCREL(%rip), %rax
	orq	(%rax), %r13
	shrq	$12, %rbx
	movq	_RCV_ARRAY_RT_ADDR_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %rbx
	movq	_RCV_ARRAY_RT_ADDR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %rbx
	orq	%r13, %rbx
	leaq	(,%r15,8), %r13
	movq	8(%r12), %rdi
	addq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_trace_hfi1_write_rcvarray
	addq	8(%r12), %r13
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_writeq
	notl	%r15d
	testb	$3, %r15b
	je	LBB0_10
## %bb.6:
	movq	_PT_EAGER@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	je	LBB0_10
## %bb.7:
	movq	_PT_INVALID_FLUSH@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	je	LBB0_10
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_flush_wc                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HFI1_PRESENT,4,2               ## @HFI1_PRESENT
	.comm	_PT_INVALID,8,3                 ## @PT_INVALID
	.comm	_PT_INVALID_FLUSH,8,3           ## @PT_INVALID_FLUSH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected receive array type %u for index %u, not handled\n"

	.comm	_RCV_ARRAY_RT_WRITE_ENABLE_SMASK,8,3 ## @RCV_ARRAY_RT_WRITE_ENABLE_SMASK
	.comm	_RCV_ARRAY_RT_BUF_SIZE_SHIFT,8,3 ## @RCV_ARRAY_RT_BUF_SIZE_SHIFT
	.comm	_RCV_ARRAY_RT_ADDR_MASK,8,3     ## @RCV_ARRAY_RT_ADDR_MASK
	.comm	_RCV_ARRAY_RT_ADDR_SHIFT,8,3    ## @RCV_ARRAY_RT_ADDR_SHIFT
	.comm	_PT_EAGER,8,3                   ## @PT_EAGER
	.comm	_RT_ADDR_SHIFT,8,3              ## @RT_ADDR_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_put_tid                   ; -- Begin function hfi1_put_tid
	.p2align	2
_hfi1_put_tid:                          ; @hfi1_put_tid
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _HFI1_PRESENT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HFI1_PRESENT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh3:
	adrp	x8, _PT_INVALID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PT_INVALID@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x24, _PT_INVALID_FLUSH@GOTPAGE
Lloh7:
	ldr	x24, [x24, _PT_INVALID_FLUSH@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x2
	ccmp	x9, x2, #4, ne
	b.ne	LBB0_3
; %bb.2:
	mov	x23, #0
	mov	x22, #0
	b	LBB0_5
LBB0_3:
	mov	x23, x4
	mov	x22, x3
	cmp	x8, x19
	b.ge	LBB0_5
; %bb.4:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x3, x21
	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
	b	_dd_dev_err
LBB0_5:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, x22
	mov	x4, x23
	bl	_trace_hfi1_put_tid
	mvn	w25, w21
Lloh10:
	adrp	x8, _RCV_ARRAY_RT_WRITE_ENABLE_SMASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RCV_ARRAY_RT_WRITE_ENABLE_SMASK@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _RCV_ARRAY_RT_BUF_SIZE_SHIFT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _RCV_ARRAY_RT_BUF_SIZE_SHIFT@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	lsl	x9, x23, x9
	orr	x8, x9, x8
Lloh16:
	adrp	x9, _RCV_ARRAY_RT_ADDR_MASK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _RCV_ARRAY_RT_ADDR_MASK@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	and	x9, x9, x22, lsr #12
Lloh19:
	adrp	x10, _RCV_ARRAY_RT_ADDR_SHIFT@GOTPAGE
Lloh20:
	ldr	x10, [x10, _RCV_ARRAY_RT_ADDR_SHIFT@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	lsl	x9, x9, x10
	orr	x22, x8, x9
	ldr	x8, [x20, #8]
	lsl	x21, x21, #3
	add	x0, x8, x21
	mov	x1, x22
	bl	_trace_hfi1_write_rcvarray
	ldr	x8, [x20, #8]
	add	x1, x8, x21
	mov	x0, x22
	bl	_writeq
	tst	x25, #0x3
	b.eq	LBB0_9
; %bb.6:
Lloh22:
	adrp	x8, _PT_EAGER@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PT_EAGER@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cmp	x8, x19
	b.eq	LBB0_9
; %bb.7:
	ldr	x8, [x24]
	cmp	x8, x19
	b.eq	LBB0_9
LBB0_8:
	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_9:
	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
	b	_flush_wc
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_HFI1_PRESENT,4,2               ; @HFI1_PRESENT
	.comm	_PT_INVALID,8,3                 ; @PT_INVALID
	.comm	_PT_INVALID_FLUSH,8,3           ; @PT_INVALID_FLUSH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected receive array type %u for index %u, not handled\n"

	.comm	_RCV_ARRAY_RT_WRITE_ENABLE_SMASK,8,3 ; @RCV_ARRAY_RT_WRITE_ENABLE_SMASK
	.comm	_RCV_ARRAY_RT_BUF_SIZE_SHIFT,8,3 ; @RCV_ARRAY_RT_BUF_SIZE_SHIFT
	.comm	_RCV_ARRAY_RT_ADDR_MASK,8,3     ; @RCV_ARRAY_RT_ADDR_MASK
	.comm	_RCV_ARRAY_RT_ADDR_SHIFT,8,3    ; @RCV_ARRAY_RT_ADDR_SHIFT
	.comm	_PT_EAGER,8,3                   ; @PT_EAGER
	.comm	_RT_ADDR_SHIFT,8,3              ; @RT_ADDR_SHIFT
.subsections_via_symbols
