	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm47xxsflash_poll
_bcm47xxsflash_poll:                    ## @bcm47xxsflash_poll
	.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), %r15
	movslq	(%r15), %rax
	movslq	%esi, %r14
	addq	%rax, %r14
	movq	_BCMA_CC_FLASHDATA@GOTPCREL(%rip), %r13
	movq	_SR_ST_WIP@GOTPCREL(%rip), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_OPCODE_AT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bcm47xxsflash_cmd
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movq	_SR_AT_READY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_8
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movl	$1, %edi
	callq	_udelay
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_time_after_eq
	testl	%eax, %eax
	jne	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_1
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$128, %eax
	jne	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_OPCODE_ST_RDSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bcm47xxsflash_cmd
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	*8(%rbx)
	testl	%eax, (%r12)
	jne	LBB0_2
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	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	_OPCODE_ST_RDSR,4,2             ## @OPCODE_ST_RDSR
	.comm	_BCMA_CC_FLASHDATA,4,2          ## @BCMA_CC_FLASHDATA
	.comm	_SR_ST_WIP,4,2                  ## @SR_ST_WIP
	.comm	_OPCODE_AT_STATUS,4,2           ## @OPCODE_AT_STATUS
	.comm	_SR_AT_READY,4,2                ## @SR_AT_READY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timeout waiting for flash to be ready!\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm47xxsflash_poll
_bcm47xxsflash_poll:                    ; @bcm47xxsflash_poll
	.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
Lloh0:
	adrp	x21, _jiffies@GOTPAGE
Lloh1:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	ldrsw	x8, [x21]
	add	x20, x8, w1, sxtw
Lloh2:
	adrp	x22, _OPCODE_AT_STATUS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _OPCODE_AT_STATUS@GOTPAGEOFF]
Lloh4:
	adrp	x23, _BCMA_CC_FLASHDATA@GOTPAGE
Lloh5:
	ldr	x23, [x23, _BCMA_CC_FLASHDATA@GOTPAGEOFF]
Lloh6:
	adrp	x24, _SR_AT_READY@GOTPAGE
Lloh7:
	ldr	x24, [x24, _SR_AT_READY@GOTPAGEOFF]
Lloh8:
	adrp	x25, _OPCODE_ST_RDSR@GOTPAGE
Lloh9:
	ldr	x25, [x25, _OPCODE_ST_RDSR@GOTPAGEOFF]
Lloh10:
	adrp	x26, _SR_ST_WIP@GOTPAGE
Lloh11:
	ldr	x26, [x26, _SR_ST_WIP@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	bl	_bcm47xxsflash_cmd
	ldr	x8, [x19, #8]
	ldr	w1, [x23]
	mov	x0, x19
	blr	x8
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_cpu_relax
	mov	w0, #1
	bl	_udelay
	ldr	w0, [x21]
	mov	x1, x20
	bl	_time_after_eq
	cbnz	w0, LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	cmp	w8, #129
	b.eq	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #128
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x25]
	mov	x0, x19
	bl	_bcm47xxsflash_cmd
	ldr	x8, [x19, #8]
	ldr	w1, [x23]
	mov	x0, x19
	blr	x8
	ldr	w8, [x26]
	tst	w8, w0
	b.ne	LBB0_2
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh14:
	adrp	x8, _EBUSY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_OPCODE_ST_RDSR,4,2             ; @OPCODE_ST_RDSR
	.comm	_BCMA_CC_FLASHDATA,4,2          ; @BCMA_CC_FLASHDATA
	.comm	_SR_ST_WIP,4,2                  ; @SR_ST_WIP
	.comm	_OPCODE_AT_STATUS,4,2           ; @OPCODE_AT_STATUS
	.comm	_SR_AT_READY,4,2                ; @SR_AT_READY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timeout waiting for flash to be ready!\n"

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