	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tpm_inf_send
_tpm_inf_send:                          ## @tpm_inf_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, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_RESET_LP_IRQC_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tpm_data_out
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_empty_fifo
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_3
LBB0_2:
	movq	_STAT_XFE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wait
	testl	%eax, %eax
	je	LBB0_4
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	subl	(%rcx), %r13d
LBB0_7:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%ebx, %eax
	shrl	$24, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %eax
	shrl	$16, %eax
	movzbl	%al, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movzbl	%bh, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movzbl	%bl, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	6(%rbx), %r12
	movzbl	%r12b, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
                                        ## kill: def $r12d killed $r12d killed $r12 def $r12
	shrl	$8, %r12d
	movq	%rbx, %r13
	movq	_TPM_VL_VER@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_wait_and_send
	movq	_TPM_CTRL_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_wait_and_send
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_wait_and_send
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_wait_and_send
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_wait_and_send
	movq	_TPM_VL_CHANNEL_TPM@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_wait_and_send
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_wait_and_send
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_wait_and_send
	movq	%r14, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_wait_and_send
	movq	%r14, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_wait_and_send
	testq	%r13, %r13
	je	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rbx,8), %rsi
	movq	%r14, %rdi
	callq	_wait_and_send
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_6
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_RESET_LP_IRQC_DISABLE,4,2      ## @RESET_LP_IRQC_DISABLE
	.comm	_CMD,4,2                        ## @CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timeout while clearing FIFO\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_STAT_XFE,4,2                   ## @STAT_XFE
	.comm	_TPM_VL_VER,8,3                 ## @TPM_VL_VER
	.comm	_TPM_CTRL_DATA,8,3              ## @TPM_CTRL_DATA
	.comm	_TPM_VL_CHANNEL_TPM,8,3         ## @TPM_VL_CHANNEL_TPM
	.no_dead_strip	_tpm_inf_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tpm_inf_send
_tpm_inf_send:                          ; @tpm_inf_send
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _RESET_LP_IRQC_DISABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RESET_LP_IRQC_DISABLE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _CMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_tpm_data_out
	mov	x0, x20
	mov	w1, #1
	bl	_empty_fifo
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x20]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x8, _STAT_XFE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STAT_XFE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_wait
	cbz	w0, LBB0_5
LBB0_3:
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
	ubfx	x22, x19, #24, #8
	ubfx	x23, x19, #16, #8
	ubfx	x24, x19, #8, #8
	and	x25, x19, #0xff
	add	x8, x19, #6
	ubfx	x26, x8, #8, #24
	and	x27, x8, #0xff
Lloh14:
	adrp	x28, _TPM_VL_VER@GOTPAGE
Lloh15:
	ldr	x28, [x28, _TPM_VL_VER@GOTPAGEOFF]
	ldr	x1, [x28]
	mov	x0, x20
	bl	_wait_and_send
Lloh16:
	adrp	x8, _TPM_CTRL_DATA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TPM_CTRL_DATA@GOTPAGEOFF]
Lloh18:
	ldr	x1, [x8]
	mov	x0, x20
	bl	_wait_and_send
	mov	x0, x20
	mov	x1, x26
	bl	_wait_and_send
	mov	x0, x20
	mov	x1, x27
	bl	_wait_and_send
	ldr	x1, [x28]
	mov	x0, x20
	bl	_wait_and_send
Lloh19:
	adrp	x8, _TPM_VL_CHANNEL_TPM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TPM_VL_CHANNEL_TPM@GOTPAGEOFF]
Lloh21:
	ldr	x1, [x8]
	mov	x0, x20
	bl	_wait_and_send
	mov	x0, x20
	mov	x1, x22
	bl	_wait_and_send
	mov	x0, x20
	mov	x1, x23
	bl	_wait_and_send
	mov	x0, x20
	mov	x1, x24
	bl	_wait_and_send
	mov	x0, x20
	mov	x1, x25
	bl	_wait_and_send
	cbz	x19, LBB0_4
; %bb.6:
	mov	x22, x19
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x21], #8
	mov	x0, x20
	bl	_wait_and_send
	subs	x22, x22, #1
	b.ne	LBB0_7
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_RESET_LP_IRQC_DISABLE,4,2      ; @RESET_LP_IRQC_DISABLE
	.comm	_CMD,4,2                        ; @CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timeout while clearing FIFO\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_STAT_XFE,4,2                   ; @STAT_XFE
	.comm	_TPM_VL_VER,8,3                 ; @TPM_VL_VER
	.comm	_TPM_CTRL_DATA,8,3              ; @TPM_CTRL_DATA
	.comm	_TPM_VL_CHANNEL_TPM,8,3         ; @TPM_VL_CHANNEL_TPM
	.no_dead_strip	_tpm_inf_send
.subsections_via_symbols
