	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function falcon_spi_wait
_falcon_spi_wait:                       ## @falcon_spi_wait
	.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	_jiffies@GOTPCREL(%rip), %r12
	movslq	(%r12), %r13
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$10, %esi
	callq	_DIV_ROUND_UP
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_falcon_spi_poll
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_15
## %bb.1:
	movl	$10, %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_falcon_spi_poll
	testl	%eax, %eax
	je	LBB0_15
## %bb.2:
	movl	$10, %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_falcon_spi_poll
	testl	%eax, %eax
	je	LBB0_15
## %bb.3:
	movl	$10, %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_falcon_spi_poll
	testl	%eax, %eax
	je	LBB0_15
## %bb.4:
	movl	$10, %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_falcon_spi_poll
	testl	%eax, %eax
	je	LBB0_15
## %bb.5:
	movl	$10, %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_falcon_spi_poll
	testl	%eax, %eax
	je	LBB0_15
## %bb.6:
	movl	$10, %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_falcon_spi_poll
	testl	%eax, %eax
	je	LBB0_15
## %bb.7:
	movl	$10, %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_falcon_spi_poll
	testl	%eax, %eax
	je	LBB0_15
## %bb.8:
	movl	$10, %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_falcon_spi_poll
	testl	%eax, %eax
	je	LBB0_15
## %bb.9:
	movl	$10, %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_falcon_spi_poll
	testl	%eax, %eax
	je	LBB0_15
## %bb.10:
	movl	$10, %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_falcon_spi_poll
	testl	%eax, %eax
	je	LBB0_15
## %bb.11:
	movslq	%r15d, %rax
	leaq	(%rax,%r13), %r15
	incq	%r15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_time_after_eq
	testq	%rax, %rax
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	$1, %edi
	callq	_schedule_timeout_uninterruptible
	movq	%rbx, %rdi
	callq	_falcon_spi_poll
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_15
LBB0_13:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	callq	_netif_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_15:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_hw,4,2                         ## @hw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timed out waiting for SPI\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_falcon_spi_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function falcon_spi_wait
_falcon_spi_wait:                       ; @falcon_spi_wait
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _jiffies@GOTPAGE
Lloh1:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	ldrsw	x22, [x21]
Lloh2:
	adrp	x8, _HZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	w1, #10
	bl	_DIV_ROUND_UP
	mov	x20, x0
	mov	x0, x19
	bl	_falcon_spi_poll
	cbz	w0, LBB0_15
; %bb.1:
	mov	w0, #10
	bl	_udelay
	mov	x0, x19
	bl	_falcon_spi_poll
	cbz	w0, LBB0_15
; %bb.2:
	mov	w0, #10
	bl	_udelay
	mov	x0, x19
	bl	_falcon_spi_poll
	cbz	w0, LBB0_15
; %bb.3:
	mov	w0, #10
	bl	_udelay
	mov	x0, x19
	bl	_falcon_spi_poll
	cbz	w0, LBB0_15
; %bb.4:
	mov	w0, #10
	bl	_udelay
	mov	x0, x19
	bl	_falcon_spi_poll
	cbz	w0, LBB0_15
; %bb.5:
	mov	w0, #10
	bl	_udelay
	mov	x0, x19
	bl	_falcon_spi_poll
	cbz	w0, LBB0_15
; %bb.6:
	mov	w0, #10
	bl	_udelay
	mov	x0, x19
	bl	_falcon_spi_poll
	cbz	w0, LBB0_15
; %bb.7:
	mov	w0, #10
	bl	_udelay
	mov	x0, x19
	bl	_falcon_spi_poll
	cbz	w0, LBB0_15
; %bb.8:
	mov	w0, #10
	bl	_udelay
	mov	x0, x19
	bl	_falcon_spi_poll
	cbz	w0, LBB0_15
; %bb.9:
	mov	w0, #10
	bl	_udelay
	mov	x0, x19
	bl	_falcon_spi_poll
	cbz	w0, LBB0_15
; %bb.10:
	mov	w0, #10
	bl	_udelay
	mov	x0, x19
	bl	_falcon_spi_poll
	cbz	w0, LBB0_15
; %bb.11:
	add	x8, x22, w20, sxtw
	add	x20, x8, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	mov	x1, x20
	bl	_time_after_eq
	cbnz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w0, #1
	bl	_schedule_timeout_uninterruptible
	mov	x0, x19
	bl	_falcon_spi_poll
	mov	x8, x0
	mov	w0, #0
	cbnz	w8, LBB0_12
	b	LBB0_15
LBB0_14:
Lloh5:
	adrp	x8, _hw@GOTPAGE
Lloh6:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh8:
	adrp	x3, l_.str@PAGE
Lloh9:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_err
Lloh10:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_hw,4,2                         ; @hw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timed out waiting for SPI\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_falcon_spi_wait
.subsections_via_symbols
