	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_update_beacon          ## -- Begin function brcms_c_update_beacon
	.p2align	4, 0x90
_brcms_c_update_beacon:                 ## @brcms_c_update_beacon
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	16(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.1:
	movq	24(%rdi), %rax
	movq	(%rax), %rax
	movq	_BRCMS_TYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_BRCMS_TYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_3:
	movq	_MI_BCNTPL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 12(%rdi)
	movl	8(%rdi), %esi
	testl	%esi, %esi
	je	LBB0_4
## %bb.5:
	movl	(%rdi), %ecx
	movl	4(%rdi), %edx
	popq	%rbp
	jmp	_brcms_c_update_beacon_hw       ## TAILCALL
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMS_TYPE_AP,8,3              ## @BRCMS_TYPE_AP
	.comm	_BRCMS_TYPE_ADHOC,8,3           ## @BRCMS_TYPE_ADHOC
	.comm	_MI_BCNTPL,4,2                  ## @MI_BCNTPL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_update_beacon          ; -- Begin function brcms_c_update_beacon
	.p2align	2
_brcms_c_update_beacon:                 ; @brcms_c_update_beacon
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _BRCMS_TYPE_AP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BRCMS_TYPE_AP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _BRCMS_TYPE_ADHOC@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BRCMS_TYPE_ADHOC@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _MI_BCNTPL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MI_BCNTPL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldp	w1, w9, [x0, #8]
	bic	w8, w9, w8
	str	w8, [x0, #12]
	cbz	w1, LBB0_4
; %bb.3:
	ldp	w3, w2, [x0]
	b	_brcms_c_update_beacon_hw
LBB0_4:
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMS_TYPE_AP,8,3              ; @BRCMS_TYPE_AP
	.comm	_BRCMS_TYPE_ADHOC,8,3           ; @BRCMS_TYPE_ADHOC
	.comm	_MI_BCNTPL,4,2                  ; @MI_BCNTPL
.subsections_via_symbols
