	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function recv_data
_recv_data:                             ## @recv_data
	.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	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.3:
	movq	%rdi, %r15
	leaq	16(%rdi), %r12
	xorl	%ebx, %ebx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	sarq	$32, %r14
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	cmpq	-48(%rbp), %r14                 ## 8-byte Folded Reload
	jae	LBB0_2
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	_TPM_STS_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TPM_STS_DATA_AVAIL@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	20(%r15), %edx
	movq	%r15, %rdi
	movq	%r12, %rcx
	callq	_wait_for_tpm_stat
	testq	%rax, %rax
	jne	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_get_burstcount
	movslq	%ebx, %r14
	testl	%eax, %eax
	jle	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	-48(%rbp), %r14                 ## 8-byte Folded Reload
	jae	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %r13d
	leaq	1(%r14), %r12
	shlq	$32, %r14
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	addq	%rax, %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r15
	movl	(%rax), %edi
	callq	_TPM_DATA_FIFO
	addq	%rax, %r15
	movq	%r15, %rdi
	callq	_ioread8
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, -4(%rcx,%r12,4)
	incl	%ebx
	cmpl	$2, %r13d
	jb	LBB0_4
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	decl	%r13d
	leaq	1(%r12), %rax
	cmpq	-48(%rbp), %r12                 ## 8-byte Folded Reload
	movq	%rax, %r12
	jb	LBB0_10
	jmp	LBB0_4
LBB0_1:
	xorl	%ebx, %ebx
LBB0_2:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TPM_STS_DATA_AVAIL,4,2         ## @TPM_STS_DATA_AVAIL
	.comm	_TPM_STS_VALID,4,2              ## @TPM_STS_VALID
	.no_dead_strip	_recv_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function recv_data
_recv_data:                             ; @recv_data
	.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
	cbz	x2, LBB0_10
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w23, #0
	add	x22, x0, #16
Lloh0:
	adrp	x25, _TPM_STS_DATA_AVAIL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _TPM_STS_DATA_AVAIL@GOTPAGEOFF]
Lloh2:
	adrp	x26, _TPM_STS_VALID@GOTPAGE
Lloh3:
	ldr	x26, [x26, _TPM_STS_VALID@GOTPAGEOFF]
	mov	x27, #4294967296
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	asr	x28, x25, #32
	mov	x25, x26
	mov	x26, x22
	ldr	x22, [sp, #8]                   ; 8-byte Folded Reload
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x28, x19
	b.hs	LBB0_11
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w1, w9, w8
	ldr	w2, [x21, #20]
	mov	x0, x21
	mov	x3, x22
	bl	_wait_for_tpm_stat
	cbnz	x0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_get_burstcount
	mov	x8, x23
	sxtw	x28, w8
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x28, x19
	b.hs	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	mov	x22, x26
	mov	x26, x25
	lsl	x25, x28, #32
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x23, [x21, #8]
	ldr	w0, [x21]
	bl	_TPM_DATA_FIFO
	add	x0, x0, x23
	bl	_ioread8
	add	x23, x28, #1
	str	w0, [x20, x28, lsl #2]
	add	x25, x25, x27
	cmp	w24, #2
	b.lo	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	sub	w24, w24, #1
	mov	x28, x23
	cmp	x23, x19
	b.lo	LBB0_8
	b	LBB0_2
LBB0_10:
	mov	w23, #0
LBB0_11:
	mov	x0, x23
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TPM_STS_DATA_AVAIL,4,2         ; @TPM_STS_DATA_AVAIL
	.comm	_TPM_STS_VALID,4,2              ; @TPM_STS_VALID
	.no_dead_strip	_recv_data
.subsections_via_symbols
