	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_b_validate_chip_access
_brcms_b_validate_chip_access:          ## @brcms_b_validate_chip_access
	.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
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	16(%rdi), %rbx
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_objaddr@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_D11REGOFFS
	movq	_OBJADDR_SHM_SEL@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_bcma_write32
	movl	(%r13), %edi
	callq	_D11REGOFFS
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_bcma_read32
	movq	_objdata@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_D11REGOFFS
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_bcma_read32
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%r13), %edi
	callq	_D11REGOFFS
	movq	(%r15), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_bcma_write32
	movl	(%r13), %edi
	callq	_D11REGOFFS
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_bcma_read32
	movl	(%r14), %edi
	callq	_D11REGOFFS
	movl	$2857719210, %edx               ## imm = 0xAA5555AA
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_bcma_write32
	movl	(%r13), %edi
	callq	_D11REGOFFS
	movq	(%r15), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_bcma_write32
	movl	(%r13), %edi
	callq	_D11REGOFFS
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_bcma_read32
	movl	(%r14), %edi
	callq	_D11REGOFFS
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_bcma_read32
	movl	$2857719210, %ecx               ## imm = 0xAA5555AA
	cmpq	%rcx, %rax
	jne	LBB0_1
## %bb.3:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	(%r13), %edi
	callq	_D11REGOFFS
	movq	_OBJADDR_SHM_SEL@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_bcma_write32
	movl	(%r13), %edi
	callq	_D11REGOFFS
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_bcma_read32
	movq	_objdata@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_D11REGOFFS
	movl	$1437248085, %edx               ## imm = 0x55AAAA55
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_bcma_write32
	movl	(%r13), %edi
	callq	_D11REGOFFS
	movq	(%r12), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_bcma_write32
	movl	(%r13), %edi
	callq	_D11REGOFFS
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_bcma_read32
	movl	(%r15), %edi
	callq	_D11REGOFFS
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_bcma_read32
	cmpq	$1437248085, %rax               ## imm = 0x55AAAA55
	jne	LBB0_4
## %bb.5:
	movl	(%r13), %edi
	callq	_D11REGOFFS
	movq	(%r12), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_bcma_write32
	movl	(%r13), %edi
	callq	_D11REGOFFS
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_bcma_read32
	movq	_objdata@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_bcma_write32
	movq	_tsf_cfpstart@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_bcma_write32
	movq	_maccontrol@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_bcma_read32
	movq	_MCTL_IHR_EN@GOTPCREL(%rip), %rcx
	movq	_MCTL_WAKE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r8
	orq	(%rcx), %r8
	movl	$1, %ebx
	cmpq	%r8, %rax
	je	LBB0_8
## %bb.6:
	movq	_MCTL_GMODE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	orq	%r8, %r9
	cmpq	%r9, %rax
	je	LBB0_8
## %bb.7:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_wiphy_err
	jmp	LBB0_8
LBB0_1:
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_wiphy_err
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_objaddr,4,2                    ## @objaddr
	.comm	_OBJADDR_SHM_SEL,8,3            ## @OBJADDR_SHM_SEL
	.comm	_objdata,4,2                    ## @objdata
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wl%d: validate_chip_access: SHM = 0x%x, expected 0xaa5555aa\n"

L_.str.1:                               ## @.str.1
	.asciz	"wl%d: validate_chip_access: SHM = 0x%x, expected 0x55aaaa55\n"

	.comm	_tsf_cfpstart,4,2               ## @tsf_cfpstart
	.comm	_maccontrol,4,2                 ## @maccontrol
	.comm	_MCTL_IHR_EN,8,3                ## @MCTL_IHR_EN
	.comm	_MCTL_WAKE,8,3                  ## @MCTL_WAKE
	.comm	_MCTL_GMODE,8,3                 ## @MCTL_GMODE
L_.str.2:                               ## @.str.2
	.asciz	"wl%d: validate_chip_access: maccontrol = 0x%x, expected 0x%x or 0x%x\n"

	.no_dead_strip	_brcms_b_validate_chip_access
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_b_validate_chip_access
_brcms_b_validate_chip_access:          ; @brcms_b_validate_chip_access
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x0
	ldp	x8, x21, [x0, #8]
	ldr	x19, [x8]
Lloh0:
	adrp	x23, _objaddr@GOTPAGE
Lloh1:
	ldr	x23, [x23, _objaddr@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_D11REGOFFS
	mov	x1, x0
Lloh2:
	adrp	x24, _OBJADDR_SHM_SEL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _OBJADDR_SHM_SEL@GOTPAGEOFF]
	ldr	x2, [x24]
	mov	x0, x21
	bl	_bcma_write32
	ldr	w0, [x23]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x21
	bl	_bcma_read32
Lloh4:
	adrp	x25, _objdata@GOTPAGE
Lloh5:
	ldr	x25, [x25, _objdata@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x21
	bl	_bcma_read32
	mov	x22, x0
	ldr	w0, [x23]
	bl	_D11REGOFFS
	mov	x1, x0
	ldr	x2, [x24]
	mov	x0, x21
	bl	_bcma_write32
	ldr	w0, [x23]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x21
	bl	_bcma_read32
	ldr	w0, [x25]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	w26, #21930
	movk	w26, #43605, lsl #16
	mov	x0, x21
	mov	w2, #21930
	movk	w2, #43605, lsl #16
	bl	_bcma_write32
	ldr	w0, [x23]
	bl	_D11REGOFFS
	mov	x1, x0
	ldr	x2, [x24]
	mov	x0, x21
	bl	_bcma_write32
	ldr	w0, [x23]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x21
	bl	_bcma_read32
	ldr	w0, [x25]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x21
	bl	_bcma_read32
	cmp	x0, x26
	b.ne	LBB0_5
; %bb.1:
	ldr	w0, [x23]
	bl	_D11REGOFFS
	mov	x1, x0
	ldr	x2, [x24]
	mov	x0, x21
	bl	_bcma_write32
	ldr	w0, [x23]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x21
	bl	_bcma_read32
	ldr	w0, [x25]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	w26, #43605
	movk	w26, #21930, lsl #16
	mov	x0, x21
	mov	w2, #43605
	movk	w2, #21930, lsl #16
	bl	_bcma_write32
	ldr	w0, [x23]
	bl	_D11REGOFFS
	mov	x1, x0
	ldr	x2, [x24]
	mov	x0, x21
	bl	_bcma_write32
	ldr	w0, [x23]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x21
	bl	_bcma_read32
	ldr	w0, [x25]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x21
	bl	_bcma_read32
	cmp	x0, x26
	b.ne	LBB0_6
; %bb.2:
	ldr	w0, [x23]
	bl	_D11REGOFFS
	mov	x1, x0
	ldr	x2, [x24]
	mov	x0, x21
	bl	_bcma_write32
	ldr	w0, [x23]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x21
	bl	_bcma_read32
	ldr	w0, [x25]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x21
	mov	x2, x22
	bl	_bcma_write32
Lloh6:
	adrp	x8, _tsf_cfpstart@GOTPAGE
Lloh7:
	ldr	x8, [x8, _tsf_cfpstart@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x21
	mov	x2, #0
	bl	_bcma_write32
Lloh9:
	adrp	x8, _maccontrol@GOTPAGE
Lloh10:
	ldr	x8, [x8, _maccontrol@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x21
	bl	_bcma_read32
Lloh12:
	adrp	x8, _MCTL_IHR_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MCTL_IHR_EN@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _MCTL_WAKE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MCTL_WAKE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	orr	x8, x9, x8
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:
	mov	x3, x0
Lloh18:
	adrp	x9, _MCTL_GMODE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MCTL_GMODE@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	orr	x9, x8, x9
	cmp	x0, x9
	b.ne	LBB0_7
LBB0_4:
	mov	w0, #1
	b	LBB0_9
LBB0_5:
	mov	x3, x0
	ldr	w2, [x20]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_6:
	mov	x3, x0
	ldr	w2, [x20]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
	ldr	w2, [x20]
	stp	x8, x9, [sp]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_wiphy_err
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_objaddr,4,2                    ; @objaddr
	.comm	_OBJADDR_SHM_SEL,8,3            ; @OBJADDR_SHM_SEL
	.comm	_objdata,4,2                    ; @objdata
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wl%d: validate_chip_access: SHM = 0x%x, expected 0xaa5555aa\n"

l_.str.1:                               ; @.str.1
	.asciz	"wl%d: validate_chip_access: SHM = 0x%x, expected 0x55aaaa55\n"

	.comm	_tsf_cfpstart,4,2               ; @tsf_cfpstart
	.comm	_maccontrol,4,2                 ; @maccontrol
	.comm	_MCTL_IHR_EN,8,3                ; @MCTL_IHR_EN
	.comm	_MCTL_WAKE,8,3                  ; @MCTL_WAKE
	.comm	_MCTL_GMODE,8,3                 ; @MCTL_GMODE
l_.str.2:                               ; @.str.2
	.asciz	"wl%d: validate_chip_access: maccontrol = 0x%x, expected 0x%x or 0x%x\n"

	.no_dead_strip	_brcms_b_validate_chip_access
.subsections_via_symbols
