	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7601u_wait_bbp_ready         ## -- Begin function mt7601u_wait_bbp_ready
	.p2align	4, 0x90
_mt7601u_wait_bbp_ready:                ## @mt7601u_wait_bbp_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_MT_BBP_REG_VERSION@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_mt7601u_bbp_rr
	xorl	%r14d, %r14d
	incl	%eax
	cmpl	$1, %eax
	ja	LBB0_21
## %bb.1:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_mt7601u_bbp_rr
	incl	%eax
	cmpl	$1, %eax
	ja	LBB0_21
## %bb.2:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_mt7601u_bbp_rr
	incl	%eax
	cmpl	$1, %eax
	ja	LBB0_21
## %bb.3:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_mt7601u_bbp_rr
	incl	%eax
	cmpl	$1, %eax
	ja	LBB0_21
## %bb.4:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_mt7601u_bbp_rr
	incl	%eax
	cmpl	$1, %eax
	ja	LBB0_21
## %bb.5:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_mt7601u_bbp_rr
	incl	%eax
	cmpl	$1, %eax
	ja	LBB0_21
## %bb.6:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_mt7601u_bbp_rr
	incl	%eax
	cmpl	$1, %eax
	ja	LBB0_21
## %bb.7:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_mt7601u_bbp_rr
	incl	%eax
	cmpl	$1, %eax
	ja	LBB0_21
## %bb.8:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_mt7601u_bbp_rr
	incl	%eax
	cmpl	$1, %eax
	ja	LBB0_21
## %bb.9:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_mt7601u_bbp_rr
	incl	%eax
	cmpl	$1, %eax
	ja	LBB0_21
## %bb.10:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_mt7601u_bbp_rr
	incl	%eax
	cmpl	$1, %eax
	ja	LBB0_21
## %bb.11:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_mt7601u_bbp_rr
	incl	%eax
	cmpl	$1, %eax
	ja	LBB0_21
## %bb.12:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_mt7601u_bbp_rr
	incl	%eax
	cmpl	$1, %eax
	ja	LBB0_21
## %bb.13:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_mt7601u_bbp_rr
	incl	%eax
	cmpl	$1, %eax
	ja	LBB0_21
## %bb.14:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_mt7601u_bbp_rr
	incl	%eax
	cmpl	$1, %eax
	ja	LBB0_21
## %bb.15:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_mt7601u_bbp_rr
	incl	%eax
	cmpl	$1, %eax
	ja	LBB0_21
## %bb.16:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_mt7601u_bbp_rr
	incl	%eax
	cmpl	$1, %eax
	ja	LBB0_21
## %bb.17:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_mt7601u_bbp_rr
	incl	%eax
	cmpl	$1, %eax
	ja	LBB0_21
## %bb.18:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_mt7601u_bbp_rr
	incl	%eax
	cmpl	$1, %eax
	ja	LBB0_21
## %bb.19:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_mt7601u_bbp_rr
	incl	%eax
	cmpl	$1, %eax
	ja	LBB0_21
## %bb.20:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_21:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_BBP_REG_VERSION,4,2         ## @MT_BBP_REG_VERSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error: BBP is not ready\n"

	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7601u_wait_bbp_ready         ; -- Begin function mt7601u_wait_bbp_ready
	.p2align	2
_mt7601u_wait_bbp_ready:                ; @mt7601u_wait_bbp_ready
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _MT_BBP_REG_VERSION@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MT_BBP_REG_VERSION@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_mt7601u_bbp_rr
	add	w8, w0, #1
	cmp	w8, #1
	b.hi	LBB0_21
; %bb.1:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mt7601u_bbp_rr
	add	w8, w0, #1
	cmp	w8, #1
	b.hi	LBB0_21
; %bb.2:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mt7601u_bbp_rr
	add	w8, w0, #1
	cmp	w8, #1
	b.hi	LBB0_21
; %bb.3:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mt7601u_bbp_rr
	add	w8, w0, #1
	cmp	w8, #1
	b.hi	LBB0_21
; %bb.4:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mt7601u_bbp_rr
	add	w8, w0, #1
	cmp	w8, #1
	b.hi	LBB0_21
; %bb.5:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mt7601u_bbp_rr
	add	w8, w0, #1
	cmp	w8, #1
	b.hi	LBB0_21
; %bb.6:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mt7601u_bbp_rr
	add	w8, w0, #1
	cmp	w8, #1
	b.hi	LBB0_21
; %bb.7:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mt7601u_bbp_rr
	add	w8, w0, #1
	cmp	w8, #1
	b.hi	LBB0_21
; %bb.8:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mt7601u_bbp_rr
	add	w8, w0, #1
	cmp	w8, #1
	b.hi	LBB0_21
; %bb.9:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mt7601u_bbp_rr
	add	w8, w0, #1
	cmp	w8, #1
	b.hi	LBB0_21
; %bb.10:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mt7601u_bbp_rr
	add	w8, w0, #1
	cmp	w8, #1
	b.hi	LBB0_21
; %bb.11:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mt7601u_bbp_rr
	add	w8, w0, #1
	cmp	w8, #1
	b.hi	LBB0_21
; %bb.12:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mt7601u_bbp_rr
	add	w8, w0, #1
	cmp	w8, #1
	b.hi	LBB0_21
; %bb.13:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mt7601u_bbp_rr
	add	w8, w0, #1
	cmp	w8, #1
	b.hi	LBB0_21
; %bb.14:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mt7601u_bbp_rr
	add	w8, w0, #1
	cmp	w8, #1
	b.hi	LBB0_21
; %bb.15:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mt7601u_bbp_rr
	add	w8, w0, #1
	cmp	w8, #1
	b.hi	LBB0_21
; %bb.16:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mt7601u_bbp_rr
	add	w8, w0, #1
	cmp	w8, #1
	b.hi	LBB0_21
; %bb.17:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mt7601u_bbp_rr
	add	w8, w0, #1
	cmp	w8, #1
	b.hi	LBB0_21
; %bb.18:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mt7601u_bbp_rr
	add	w8, w0, #1
	cmp	w8, #1
	b.hi	LBB0_21
; %bb.19:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mt7601u_bbp_rr
	add	w8, w0, #1
	cmp	w8, #1
	b.hi	LBB0_21
; %bb.20:
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh4:
	adrp	x8, _EIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_22
LBB0_21:
	mov	w0, #0
LBB0_22:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_BBP_REG_VERSION,4,2         ; @MT_BBP_REG_VERSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error: BBP is not ready\n"

	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
