	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nsc_wait_for_ready
_nsc_wait_for_ready:                    ## @nsc_wait_for_ready
	.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
	movq	%rdi, %rbx
	movq	_NSC_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_inb
	movq	_NSC_STATUS_OBF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_NSC_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_inb
LBB0_2:
	movq	_NSC_STATUS_RDY@GOTPCREL(%rip), %r14
	xorl	%ecx, %ecx
	testl	%eax, (%r14)
	jne	LBB0_10
## %bb.3:
	movq	_jiffies@GOTPCREL(%rip), %r12
	movslq	(%r12), %r15
	addq	$100, %r15
	movq	_TPM_TIMEOUT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	callq	_msleep
	movq	_NSC_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_inb
	movq	_NSC_STATUS_OBF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_NSC_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_inb
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	testl	%eax, (%r14)
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_time_before
	testq	%rax, %rax
	jne	LBB0_4
## %bb.9:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	jmp	LBB0_10
LBB0_7:
	xorl	%ecx, %ecx
LBB0_10:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NSC_STATUS,8,3                 ## @NSC_STATUS
	.comm	_NSC_STATUS_OBF,4,2             ## @NSC_STATUS_OBF
	.comm	_NSC_DATA,8,3                   ## @NSC_DATA
	.comm	_NSC_STATUS_RDY,4,2             ## @NSC_STATUS_RDY
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_TPM_TIMEOUT,4,2                ## @TPM_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wait for ready failed\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_nsc_wait_for_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nsc_wait_for_ready
_nsc_wait_for_ready:                    ; @nsc_wait_for_ready
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x21, _NSC_STATUS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NSC_STATUS@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_inb
Lloh2:
	adrp	x22, _NSC_STATUS_OBF@GOTPAGE
Lloh3:
	ldr	x22, [x22, _NSC_STATUS_OBF@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh4:
	adrp	x23, _NSC_DATA@GOTPAGE
Lloh5:
	ldr	x23, [x23, _NSC_DATA@GOTPAGEOFF]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_inb
LBB0_2:
Lloh6:
	adrp	x24, _NSC_STATUS_RDY@GOTPAGE
Lloh7:
	ldr	x24, [x24, _NSC_STATUS_RDY@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_5
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh8:
	adrp	x25, _jiffies@GOTPAGE
Lloh9:
	ldr	x25, [x25, _jiffies@GOTPAGEOFF]
	ldrsw	x8, [x25]
	add	x20, x8, #100
Lloh10:
	adrp	x26, _TPM_TIMEOUT@GOTPAGE
Lloh11:
	ldr	x26, [x26, _TPM_TIMEOUT@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26]
	bl	_msleep
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_inb
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_inb
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x25]
	mov	x1, x20
	bl	_time_before
	cbnz	x0, LBB0_6
; %bb.10:
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
Lloh14:
	adrp	x8, _EBUSY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NSC_STATUS,8,3                 ; @NSC_STATUS
	.comm	_NSC_STATUS_OBF,4,2             ; @NSC_STATUS_OBF
	.comm	_NSC_DATA,8,3                   ; @NSC_DATA
	.comm	_NSC_STATUS_RDY,4,2             ; @NSC_STATUS_RDY
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_TPM_TIMEOUT,4,2                ; @TPM_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wait for ready failed\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_nsc_wait_for_ready
.subsections_via_symbols
