	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tpm_tis_send
_tpm_tis_send:                          ## @tpm_tis_send
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_request_locality
	testq	%rax, %rax
	js	LBB0_15
## %bb.1:
	movq	%rbx, %rdi
	callq	_tpm_tis_status
	movq	_TPM_STS_COMMAND_READY@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_tpm_tis_ready
	movl	(%r14), %esi
	movl	32(%rbx), %edx
	leaq	24(%rbx), %rcx
	movq	%rbx, %rdi
	callq	_wait_for_tpm_stat
	testq	%rax, %rax
	js	LBB0_22
LBB0_3:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	decq	%r15
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_16
## %bb.4:
	leaq	24(%rbx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %r12
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	_TPM_STS_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	28(%rbx), %edx
	movq	%rbx, %rdi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_wait_for_tpm_stat
	movq	%rbx, %rdi
	callq	_tpm_tis_status
	movq	_itpm@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_13
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	cmpq	-56(%rbp), %r15                 ## 8-byte Folded Reload
	jae	LBB0_17
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	%rbx, %rdi
	callq	_get_burstcount
	testl	%eax, %eax
	jle	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpq	-56(%rbp), %r15                 ## 8-byte Folded Reload
	jae	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %r13
	movl	(%r12,%r15,4), %r14d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r12
	movl	(%rax), %edi
	callq	_TPM_DATA_FIFO
	addq	%rax, %r12
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_iowrite8
	incq	%r15
	cmpl	$2, %ebx
	jb	LBB0_5
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	decl	%ebx
	cmpq	-56(%rbp), %r15                 ## 8-byte Folded Reload
	movq	%r13, %r12
	jb	LBB0_11
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_TPM_STS_DATA_EXPECT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
	jmp	LBB0_14
LBB0_15:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
                                        ## kill: def $r14d killed $r14d def $r14
	jmp	LBB0_24
LBB0_16:
	xorl	%r15d, %r15d
LBB0_17:
	movl	(%r12,%r15,4), %r14d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_TPM_DATA_FIFO
	addq	%rax, %r15
	movl	%r14d, %edi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_iowrite8
	movq	_TPM_STS_VALID@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	28(%rbx), %edx
	leaq	24(%rbx), %rcx
	movq	%rbx, %rdi
	callq	_wait_for_tpm_stat
	movq	%rbx, %rdi
	callq	_tpm_tis_status
	movq	_TPM_STS_DATA_EXPECT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_19
LBB0_14:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_19:
	movq	%r12, %r13
	movq	_TPM_STS_GO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_TPM_STS
	addq	%rax, %r12
	movl	%r14d, %edi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_iowrite8
	cmpq	$0, 8(%rbx)
	je	LBB0_21
## %bb.20:
	movl	24(%r13), %edi
	callq	_be32_to_cpu
	movq	_TPM_STS_DATA_AVAIL@GOTPCREL(%rip), %rcx
	movl	(%r15), %r14d
	orl	(%rcx), %r14d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_tpm_calc_ordinal_duration
	leaq	4(%rbx), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_wait_for_tpm_stat
	testq	%rax, %rax
	js	LBB0_22
LBB0_21:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_24
LBB0_22:
	movq	_ETIME@GOTPCREL(%rip), %rax
LBB0_23:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_tpm_tis_ready
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_release_locality
LBB0_24:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_TPM_STS_COMMAND_READY,4,2      ## @TPM_STS_COMMAND_READY
	.comm	_ETIME,4,2                      ## @ETIME
	.comm	_TPM_STS_VALID,4,2              ## @TPM_STS_VALID
	.comm	_itpm,4,2                       ## @itpm
	.comm	_TPM_STS_DATA_EXPECT,4,2        ## @TPM_STS_DATA_EXPECT
	.comm	_EIO,4,2                        ## @EIO
	.comm	_TPM_STS_GO,4,2                 ## @TPM_STS_GO
	.comm	_TPM_STS_DATA_AVAIL,4,2         ## @TPM_STS_DATA_AVAIL
	.no_dead_strip	_tpm_tis_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tpm_tis_send
_tpm_tis_send:                          ; @tpm_tis_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	mov	w1, #0
	bl	_request_locality
	tbnz	x0, #63, LBB0_15
; %bb.1:
	mov	x0, x19
	bl	_tpm_tis_status
Lloh0:
	adrp	x20, _TPM_STS_COMMAND_READY@GOTPAGE
Lloh1:
	ldr	x20, [x20, _TPM_STS_COMMAND_READY@GOTPAGEOFF]
	ldr	w8, [x20]
	tst	w8, w0
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_tpm_tis_ready
	ldr	w1, [x20]
	ldr	w2, [x19, #32]
	add	x3, x19, #24
	mov	x0, x19
	bl	_wait_for_tpm_stat
	tbnz	x0, #63, LBB0_19
LBB0_3:
Lloh2:
	adrp	x25, _TPM_STS_VALID@GOTPAGE
Lloh3:
	ldr	x25, [x25, _TPM_STS_VALID@GOTPAGEOFF]
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	mov	x28, #0
	subs	x27, x22, #1
	b.eq	LBB0_13
; %bb.4:
	add	x22, x19, #24
Lloh4:
	adrp	x20, _itpm@GOTPAGE
Lloh5:
	ldr	x20, [x20, _itpm@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x25]
	ldr	w2, [x19, #28]
	mov	x0, x19
	mov	x3, x22
	bl	_wait_for_tpm_stat
	mov	x0, x19
	bl	_tpm_tis_status
	ldr	w8, [x20]
	cbz	w8, LBB0_12
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	cmp	x28, x27
	b.hs	LBB0_13
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	mov	x0, x19
	bl	_get_burstcount
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	x28, x27
	b.hs	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x23, x0
LBB0_10:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w24, [x21, x28, lsl #2]
	ldr	x26, [x19, #16]
	ldr	w0, [x19]
	bl	_TPM_DATA_FIFO
	add	x1, x0, x26
	mov	x0, x24
	bl	_iowrite8
	add	x28, x28, #1
	cmp	w23, #2
	b.lo	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	sub	w23, w23, #1
	cmp	x28, x27
	b.lo	LBB0_10
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh6:
	adrp	x8, _TPM_STS_DATA_EXPECT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TPM_STS_DATA_EXPECT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_6
	b	LBB0_14
LBB0_13:
	ldr	w22, [x21, x28, lsl #2]
	ldr	x20, [x19, #16]
	ldr	w0, [x19]
	bl	_TPM_DATA_FIFO
	add	x1, x0, x20
	mov	x0, x22
	bl	_iowrite8
	ldr	w1, [x25]
	ldr	w2, [x19, #28]
	add	x3, x19, #24
	mov	x0, x19
	bl	_wait_for_tpm_stat
	mov	x0, x19
	bl	_tpm_tis_status
Lloh9:
	adrp	x8, _TPM_STS_DATA_EXPECT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TPM_STS_DATA_EXPECT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_16
LBB0_14:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_20
LBB0_15:
Lloh14:
	adrp	x8, _EBUSY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_21
LBB0_16:
Lloh17:
	adrp	x8, _TPM_STS_GO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TPM_STS_GO@GOTPAGEOFF]
Lloh19:
	ldr	w22, [x8]
	ldr	x20, [x19, #16]
	ldr	w0, [x19]
	bl	_TPM_STS
	add	x1, x0, x20
	mov	x0, x22
	bl	_iowrite8
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_18
; %bb.17:
	ldr	w0, [x21, #24]
	bl	_be32_to_cpu
	mov	x1, x0
Lloh20:
	adrp	x8, _TPM_STS_DATA_AVAIL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TPM_STS_DATA_AVAIL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x25]
	orr	w21, w9, w8
	mov	x0, x19
	bl	_tpm_calc_ordinal_duration
	mov	x2, x0
	add	x3, x19, #4
	mov	x0, x19
	mov	x1, x21
	bl	_wait_for_tpm_stat
	tbnz	x0, #63, LBB0_19
LBB0_18:
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_21
LBB0_19:
Lloh23:
	adrp	x8, _ETIME@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ETIME@GOTPAGEOFF]
LBB0_20:
	ldr	w8, [x8]
	neg	w20, w8
	mov	x0, x19
	bl	_tpm_tis_ready
	ldr	w1, [x19]
	mov	x0, x19
	mov	w2, #0
	bl	_release_locality
LBB0_21:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_TPM_STS_COMMAND_READY,4,2      ; @TPM_STS_COMMAND_READY
	.comm	_ETIME,4,2                      ; @ETIME
	.comm	_TPM_STS_VALID,4,2              ; @TPM_STS_VALID
	.comm	_itpm,4,2                       ; @itpm
	.comm	_TPM_STS_DATA_EXPECT,4,2        ; @TPM_STS_DATA_EXPECT
	.comm	_EIO,4,2                        ; @EIO
	.comm	_TPM_STS_GO,4,2                 ; @TPM_STS_GO
	.comm	_TPM_STS_DATA_AVAIL,4,2         ; @TPM_STS_DATA_AVAIL
	.no_dead_strip	_tpm_tis_send
.subsections_via_symbols
