	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adm8211_write_bbp
_adm8211_write_bbp:                     ## @adm8211_write_bbp
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r14
	movq	_BBPCTL@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_ADM8211_CSR_READ
	movl	%eax, %ebx
	movq	_ADM8211_BBPCTL_WR@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movq	_ADM8211_BBPCTL_RD@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	orl	%eax, %ecx
	testl	%ebx, %ecx
	je	LBB0_1
## %bb.5:
	movl	$2, %edi
	callq	_msleep
	movl	(%r13), %edi
	callq	_ADM8211_CSR_READ
	movl	%eax, %ebx
	movl	(%r15), %eax
	movl	(%r12), %ecx
	orl	%eax, %ecx
	testl	%ebx, %ecx
	je	LBB0_1
## %bb.6:
	movl	$2, %edi
	callq	_msleep
	movl	(%r13), %edi
	callq	_ADM8211_CSR_READ
	movl	%eax, %ebx
	movl	(%r15), %eax
	movl	(%r12), %ecx
	orl	%eax, %ecx
	testl	%ebx, %ecx
	je	LBB0_1
## %bb.7:
	movl	$2, %edi
	callq	_msleep
	movl	(%r13), %edi
	callq	_ADM8211_CSR_READ
	movl	%eax, %ebx
	movl	(%r15), %eax
	movl	(%r12), %ecx
	orl	%eax, %ecx
	testl	%ebx, %ecx
	je	LBB0_1
## %bb.8:
	movl	$2, %edi
	callq	_msleep
	movl	(%r13), %edi
	callq	_ADM8211_CSR_READ
	movl	%eax, %ebx
	movl	(%r15), %eax
	movl	(%r12), %ecx
	orl	%eax, %ecx
	testl	%ebx, %ecx
	je	LBB0_1
## %bb.9:
	movl	$2, %edi
	callq	_msleep
	movl	(%r13), %edi
	callq	_ADM8211_CSR_READ
	movl	%eax, %ebx
	movl	(%r15), %eax
	movl	(%r12), %ecx
	orl	%eax, %ecx
	testl	%ebx, %ecx
	je	LBB0_1
## %bb.10:
	movl	$2, %edi
	callq	_msleep
	movl	(%r13), %edi
	callq	_ADM8211_CSR_READ
	movl	%eax, %ebx
	movl	(%r15), %eax
	movl	(%r12), %ecx
	orl	%eax, %ecx
	testl	%ebx, %ecx
	je	LBB0_1
## %bb.11:
	movl	$2, %edi
	callq	_msleep
	movl	(%r13), %edi
	callq	_ADM8211_CSR_READ
	movl	%eax, %ebx
	movl	(%r15), %eax
	movl	(%r12), %ecx
	orl	%eax, %ecx
	testl	%ebx, %ecx
	je	LBB0_1
## %bb.12:
	movl	$2, %edi
	callq	_msleep
	movl	(%r13), %edi
	callq	_ADM8211_CSR_READ
	movl	%eax, %ebx
	movl	(%r15), %eax
	movl	(%r12), %ecx
	orl	%eax, %ecx
	testl	%ebx, %ecx
	je	LBB0_1
## %bb.13:
	movl	$2, %edi
	callq	_msleep
	movl	(%r13), %edi
	callq	_ADM8211_CSR_READ
	movl	%eax, %ebx
	movl	(%r15), %eax
	movl	(%r12), %ecx
	orl	%eax, %ecx
	testl	%ebx, %ecx
	je	LBB0_1
## %bb.14:
	movl	$2, %edi
	callq	_msleep
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r8d
	jmp	LBB0_28
LBB0_1:
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	(%r14), %ecx
	cmpl	$128, %ecx
	je	LBB0_15
## %bb.2:
	cmpl	$130, %ecx
	je	LBB0_16
## %bb.3:
	cmpl	$129, %ecx
	jne	LBB0_17
## %bb.4:
	movq	_ADM8211_BBPCTL_MMISEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	jmp	LBB0_17
LBB0_15:
	movq	_ADM8211_BBPCTL_TXCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_ADM8211_BBPCTL_CCAP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	orl	$537133056, %ebx                ## imm = 0x20040000
	jmp	LBB0_17
LBB0_16:
	movq	_ADM8211_BBPCTL_TXCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_ADM8211_BBPCTL_CCAP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	orl	$538181632, %ebx                ## imm = 0x20140000
LBB0_17:
	movl	%r12d, %esi
	shll	$8, %esi
	movl	%edx, %r14d
	orl	%edx, %esi
	orl	%ebx, %esi
	orl	%eax, %esi
	movl	(%r13), %edi
	callq	_ADM8211_CSR_WRITE
	movl	(%r13), %edi
	callq	_ADM8211_CSR_READ
	xorl	%ebx, %ebx
	testl	%eax, (%r15)
	je	LBB0_29
## %bb.18:
	movl	$2, %edi
	callq	_msleep
	movl	(%r13), %edi
	callq	_ADM8211_CSR_READ
	testl	%eax, (%r15)
	je	LBB0_29
## %bb.19:
	movl	$2, %edi
	callq	_msleep
	movl	(%r13), %edi
	callq	_ADM8211_CSR_READ
	testl	%eax, (%r15)
	je	LBB0_29
## %bb.20:
	movl	$2, %edi
	callq	_msleep
	movl	(%r13), %edi
	callq	_ADM8211_CSR_READ
	testl	%eax, (%r15)
	je	LBB0_29
## %bb.21:
	movl	$2, %edi
	callq	_msleep
	movl	(%r13), %edi
	callq	_ADM8211_CSR_READ
	testl	%eax, (%r15)
	je	LBB0_29
## %bb.22:
	movl	$2, %edi
	callq	_msleep
	movl	(%r13), %edi
	callq	_ADM8211_CSR_READ
	testl	%eax, (%r15)
	je	LBB0_29
## %bb.23:
	movl	$2, %edi
	callq	_msleep
	movl	(%r13), %edi
	callq	_ADM8211_CSR_READ
	testl	%eax, (%r15)
	je	LBB0_29
## %bb.24:
	movl	$2, %edi
	callq	_msleep
	movl	(%r13), %edi
	callq	_ADM8211_CSR_READ
	testl	%eax, (%r15)
	je	LBB0_29
## %bb.25:
	movl	$2, %edi
	callq	_msleep
	movl	(%r13), %edi
	callq	_ADM8211_CSR_READ
	testl	%eax, (%r15)
	je	LBB0_29
## %bb.26:
	movl	$2, %edi
	callq	_msleep
	movl	(%r13), %edi
	callq	_ADM8211_CSR_READ
	testl	%eax, (%r15)
	je	LBB0_29
## %bb.27:
	movl	$2, %edi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_msleep
	movl	(%r13), %ebx
	movl	%ebx, %edi
	callq	_ADM8211_CSR_READ
	movl	(%r15), %esi
	notl	%esi
	andl	%eax, %esi
	movl	%ebx, %edi
	callq	_ADM8211_CSR_WRITE
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
LBB0_28:
	callq	_wiphy_debug
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_29:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BBPCTL,4,2                     ## @BBPCTL
	.comm	_ADM8211_BBPCTL_WR,4,2          ## @ADM8211_BBPCTL_WR
	.comm	_ADM8211_BBPCTL_RD,4,2          ## @ADM8211_BBPCTL_RD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adm8211_write_bbp(%d,%d) failed prewrite (reg=0x%08x)\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_ADM8211_BBPCTL_MMISEL,4,2      ## @ADM8211_BBPCTL_MMISEL
	.comm	_ADM8211_BBPCTL_TXCE,4,2        ## @ADM8211_BBPCTL_TXCE
	.comm	_ADM8211_BBPCTL_CCAP,4,2        ## @ADM8211_BBPCTL_CCAP
L_.str.1:                               ## @.str.1
	.asciz	"adm8211_write_bbp(%d,%d) failed postwrite (reg=0x%08x)\n"

	.no_dead_strip	_adm8211_write_bbp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adm8211_write_bbp
_adm8211_write_bbp:                     ; @adm8211_write_bbp
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x25, [x0, #8]
Lloh0:
	adrp	x23, _BBPCTL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BBPCTL@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_ADM8211_CSR_READ
Lloh2:
	adrp	x24, _ADM8211_BBPCTL_WR@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ADM8211_BBPCTL_WR@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh4:
	adrp	x26, _ADM8211_BBPCTL_RD@GOTPAGE
Lloh5:
	ldr	x26, [x26, _ADM8211_BBPCTL_RD@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w9, w9, w8
	tst	w9, w0
	b.eq	LBB0_11
; %bb.1:
	mov	w0, #2
	bl	_msleep
	ldr	w0, [x23]
	bl	_ADM8211_CSR_READ
	ldr	w8, [x24]
	ldr	w9, [x26]
	orr	w9, w9, w8
	tst	w9, w0
	b.eq	LBB0_11
; %bb.2:
	mov	w0, #2
	bl	_msleep
	ldr	w0, [x23]
	bl	_ADM8211_CSR_READ
	ldr	w8, [x24]
	ldr	w9, [x26]
	orr	w9, w9, w8
	tst	w9, w0
	b.eq	LBB0_11
; %bb.3:
	mov	w0, #2
	bl	_msleep
	ldr	w0, [x23]
	bl	_ADM8211_CSR_READ
	ldr	w8, [x24]
	ldr	w9, [x26]
	orr	w9, w9, w8
	tst	w9, w0
	b.eq	LBB0_11
; %bb.4:
	mov	w0, #2
	bl	_msleep
	ldr	w0, [x23]
	bl	_ADM8211_CSR_READ
	ldr	w8, [x24]
	ldr	w9, [x26]
	orr	w9, w9, w8
	tst	w9, w0
	b.eq	LBB0_11
; %bb.5:
	mov	w0, #2
	bl	_msleep
	ldr	w0, [x23]
	bl	_ADM8211_CSR_READ
	ldr	w8, [x24]
	ldr	w9, [x26]
	orr	w9, w9, w8
	tst	w9, w0
	b.eq	LBB0_11
; %bb.6:
	mov	w0, #2
	bl	_msleep
	ldr	w0, [x23]
	bl	_ADM8211_CSR_READ
	ldr	w8, [x24]
	ldr	w9, [x26]
	orr	w9, w9, w8
	tst	w9, w0
	b.eq	LBB0_11
; %bb.7:
	mov	w0, #2
	bl	_msleep
	ldr	w0, [x23]
	bl	_ADM8211_CSR_READ
	ldr	w8, [x24]
	ldr	w9, [x26]
	orr	w9, w9, w8
	tst	w9, w0
	b.eq	LBB0_11
; %bb.8:
	mov	w0, #2
	bl	_msleep
	ldr	w0, [x23]
	bl	_ADM8211_CSR_READ
	ldr	w8, [x24]
	ldr	w9, [x26]
	orr	w9, w9, w8
	tst	w9, w0
	b.eq	LBB0_11
; %bb.9:
	mov	w0, #2
	bl	_msleep
	ldr	w0, [x23]
	bl	_ADM8211_CSR_READ
	mov	x22, x0
	ldr	w8, [x24]
	ldr	w9, [x26]
	orr	w9, w9, w8
	tst	w9, w0
	b.eq	LBB0_12
; %bb.10:
	mov	w0, #2
	bl	_msleep
	ldr	w0, [x21]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_30
LBB0_11:
	mov	x22, x0
LBB0_12:
	ldr	w9, [x25]
	cmp	w9, #128
	b.eq	LBB0_16
; %bb.13:
	cmp	w9, #130
	b.eq	LBB0_17
; %bb.14:
	cmp	w9, #129
	b.ne	LBB0_19
; %bb.15:
Lloh8:
	adrp	x9, _ADM8211_BBPCTL_MMISEL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ADM8211_BBPCTL_MMISEL@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x9]
	b	LBB0_19
LBB0_16:
Lloh11:
	adrp	x9, _ADM8211_BBPCTL_TXCE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ADM8211_BBPCTL_TXCE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _ADM8211_BBPCTL_CCAP@GOTPAGE
Lloh15:
	ldr	x10, [x10, _ADM8211_BBPCTL_CCAP@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	orr	w9, w9, w10
	mov	w10, #537133056
	b	LBB0_18
LBB0_17:
Lloh17:
	adrp	x9, _ADM8211_BBPCTL_TXCE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ADM8211_BBPCTL_TXCE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _ADM8211_BBPCTL_CCAP@GOTPAGE
Lloh21:
	ldr	x10, [x10, _ADM8211_BBPCTL_CCAP@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	orr	w9, w9, w10
	mov	w10, #538181632
LBB0_18:
	orr	w22, w9, w10
LBB0_19:
	orr	w9, w19, w20, lsl #8
	orr	w9, w9, w22
	orr	w1, w9, w8
	ldr	w0, [x23]
	bl	_ADM8211_CSR_WRITE
	ldr	w0, [x23]
	bl	_ADM8211_CSR_READ
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_31
; %bb.20:
	mov	w0, #2
	bl	_msleep
	ldr	w0, [x23]
	bl	_ADM8211_CSR_READ
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_31
; %bb.21:
	mov	w0, #2
	bl	_msleep
	ldr	w0, [x23]
	bl	_ADM8211_CSR_READ
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_31
; %bb.22:
	mov	w0, #2
	bl	_msleep
	ldr	w0, [x23]
	bl	_ADM8211_CSR_READ
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_31
; %bb.23:
	mov	w0, #2
	bl	_msleep
	ldr	w0, [x23]
	bl	_ADM8211_CSR_READ
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_31
; %bb.24:
	mov	w0, #2
	bl	_msleep
	ldr	w0, [x23]
	bl	_ADM8211_CSR_READ
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_31
; %bb.25:
	mov	w0, #2
	bl	_msleep
	ldr	w0, [x23]
	bl	_ADM8211_CSR_READ
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_31
; %bb.26:
	mov	w0, #2
	bl	_msleep
	ldr	w0, [x23]
	bl	_ADM8211_CSR_READ
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_31
; %bb.27:
	mov	w0, #2
	bl	_msleep
	ldr	w0, [x23]
	bl	_ADM8211_CSR_READ
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_31
; %bb.28:
	mov	w0, #2
	bl	_msleep
	ldr	w0, [x23]
	bl	_ADM8211_CSR_READ
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_31
; %bb.29:
	mov	x22, x0
	mov	w0, #2
	bl	_msleep
	ldr	w23, [x23]
	mov	x0, x23
	bl	_ADM8211_CSR_READ
	ldr	w8, [x24]
	bic	w1, w0, w8
	mov	x0, x23
	bl	_ADM8211_CSR_WRITE
	ldr	w0, [x21]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_30:
	mov	x2, x20
	mov	x3, x19
	mov	x4, x22
	bl	_wiphy_debug
Lloh25:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_32
LBB0_31:
	mov	w0, #0
LBB0_32:
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_BBPCTL,4,2                     ; @BBPCTL
	.comm	_ADM8211_BBPCTL_WR,4,2          ; @ADM8211_BBPCTL_WR
	.comm	_ADM8211_BBPCTL_RD,4,2          ; @ADM8211_BBPCTL_RD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adm8211_write_bbp(%d,%d) failed prewrite (reg=0x%08x)\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_ADM8211_BBPCTL_MMISEL,4,2      ; @ADM8211_BBPCTL_MMISEL
	.comm	_ADM8211_BBPCTL_TXCE,4,2        ; @ADM8211_BBPCTL_TXCE
	.comm	_ADM8211_BBPCTL_CCAP,4,2        ; @ADM8211_BBPCTL_CCAP
l_.str.1:                               ; @.str.1
	.asciz	"adm8211_write_bbp(%d,%d) failed postwrite (reg=0x%08x)\n"

	.no_dead_strip	_adm8211_write_bbp
.subsections_via_symbols
