	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___t1_tpi_write                 ## -- Begin function __t1_tpi_write
	.p2align	4, 0x90
___t1_tpi_write:                        ## @__t1_tpi_write
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_A_TPI_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rdi), %rsi
	movl	%r14d, %edi
	callq	_writel
	movq	_A_TPI_WR_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	_F_TPIWR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_A_TPI_CSR@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	8(%r15), %rsi
	callq	_writel
	movq	(%rbx), %rsi
	movq	_F_TPIRDY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_TPI_ATTEMPTS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movl	$1, %ecx
	movl	$3, %r9d
	callq	_t1_wait_op_done
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %edx
	callq	_pr_alert
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_A_TPI_ADDR,8,3                 ## @A_TPI_ADDR
	.comm	_A_TPI_WR_DATA,8,3              ## @A_TPI_WR_DATA
	.comm	_F_TPIWR,4,2                    ## @F_TPIWR
	.comm	_A_TPI_CSR,8,3                  ## @A_TPI_CSR
	.comm	_F_TPIRDY,4,2                   ## @F_TPIRDY
	.comm	_TPI_ATTEMPTS,4,2               ## @TPI_ATTEMPTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: TPI write to 0x%x failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___t1_tpi_write                 ; -- Begin function __t1_tpi_write
	.p2align	2
___t1_tpi_write:                        ; @__t1_tpi_write
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _A_TPI_ADDR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _A_TPI_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x19
	bl	_writel
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _A_TPI_WR_DATA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _A_TPI_WR_DATA@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_writel
Lloh6:
	adrp	x8, _F_TPIWR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _F_TPIWR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x8, [x20, #8]
Lloh9:
	adrp	x21, _A_TPI_CSR@GOTPAGE
Lloh10:
	ldr	x21, [x21, _A_TPI_CSR@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	ldr	x1, [x21]
Lloh11:
	adrp	x8, _F_TPIRDY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _F_TPIRDY@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _TPI_ATTEMPTS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TPI_ATTEMPTS@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
	mov	x0, x20
	mov	w3, #1
	mov	w5, #3
	bl	_t1_wait_op_done
	mov	x21, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w1, [x20]
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_pr_alert
LBB0_2:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_A_TPI_ADDR,8,3                 ; @A_TPI_ADDR
	.comm	_A_TPI_WR_DATA,8,3              ; @A_TPI_WR_DATA
	.comm	_F_TPIWR,4,2                    ; @F_TPIWR
	.comm	_A_TPI_CSR,8,3                  ; @A_TPI_CSR
	.comm	_F_TPIRDY,4,2                   ; @F_TPIRDY
	.comm	_TPI_ATTEMPTS,4,2               ; @TPI_ATTEMPTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: TPI write to 0x%x failed\n"

.subsections_via_symbols
