	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function empty_fifo
_empty_fifo:                            ## @empty_fifo
	.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
	testl	%esi, %esi
	je	LBB0_6
## %bb.1:
	xorl	%r14d, %r14d
	movl	$4096, %ebx                     ## imm = 0x1000
	movq	_WRFIFO@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	decl	%ebx
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_tpm_data_in
	cmpl	$255, %eax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$5, %r14d
	jne	LBB0_4
LBB0_6:
	xorl	%ebx, %ebx
	movq	_RDFIFO@GOTPCREL(%rip), %r14
	movq	_STAT@GOTPCREL(%rip), %r15
	movq	_TPM_MAX_TRIES@GOTPCREL(%rip), %r12
	movq	_STAT_RDA@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_tpm_data_in
	movl	(%r15), %edi
	callq	_tpm_data_in
	incl	%ebx
	cmpl	(%r12), %ebx
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r13), %ecx
	btl	%ecx, %eax
	jb	LBB0_7
## %bb.10:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_8:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WRFIFO,4,2                     ## @WRFIFO
	.comm	_RDFIFO,4,2                     ## @RDFIFO
	.comm	_STAT,4,2                       ## @STAT
	.comm	_TPM_MAX_TRIES,4,2              ## @TPM_MAX_TRIES
	.comm	_EIO,4,2                        ## @EIO
	.comm	_STAT_RDA,4,2                   ## @STAT_RDA
	.no_dead_strip	_empty_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function empty_fifo
_empty_fifo:                            ; @empty_fifo
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	w1, LBB0_6
; %bb.1:
	mov	w19, #0
	mov	w20, #4096
Lloh0:
	adrp	x21, _WRFIFO@GOTPAGE
Lloh1:
	ldr	x21, [x21, _WRFIFO@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w19, w19, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	subs	w20, w20, #1
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_tpm_data_in
	cmp	w0, #255
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w19, #5
	b.ne	LBB0_2
LBB0_6:
	mov	w19, #0
Lloh2:
	adrp	x20, _RDFIFO@GOTPAGE
Lloh3:
	ldr	x20, [x20, _RDFIFO@GOTPAGEOFF]
Lloh4:
	adrp	x21, _STAT@GOTPAGE
Lloh5:
	ldr	x21, [x21, _STAT@GOTPAGEOFF]
Lloh6:
	adrp	x22, _TPM_MAX_TRIES@GOTPAGE
Lloh7:
	ldr	x22, [x22, _TPM_MAX_TRIES@GOTPAGEOFF]
Lloh8:
	adrp	x23, _STAT_RDA@GOTPAGE
Lloh9:
	ldr	x23, [x23, _STAT_RDA@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_tpm_data_in
	ldr	w0, [x21]
	bl	_tpm_data_in
	add	w19, w19, #1
	ldr	w8, [x22]
	cmp	w19, w8
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x23]
	lsr	w8, w0, w8
	tbnz	w8, #0, LBB0_7
; %bb.9:
	mov	w0, #0
	b	LBB0_11
LBB0_10:
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_WRFIFO,4,2                     ; @WRFIFO
	.comm	_RDFIFO,4,2                     ; @RDFIFO
	.comm	_STAT,4,2                       ; @STAT
	.comm	_TPM_MAX_TRIES,4,2              ; @TPM_MAX_TRIES
	.comm	_EIO,4,2                        ; @EIO
	.comm	_STAT_RDA,4,2                   ; @STAT_RDA
	.no_dead_strip	_empty_fifo
.subsections_via_symbols
