	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt73usb_clear_beacon
_rt73usb_clear_beacon:                  ## @rt73usb_clear_beacon
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	movq	_TXRX_CSR9@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_rt2x00usb_register_read
	movl	%eax, %r14d
	movl	%eax, -36(%rbp)
	movq	_TXRX_CSR9_BEACON_GEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field32
	movl	(%r12), %esi
	movl	-36(%rbp), %edx
	movq	%rbx, %rdi
	callq	_rt2x00usb_register_write
	movl	(%r15), %edi
	callq	_HW_BEACON_OFFSET
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_rt2x00usb_register_write
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_rt2x00usb_register_write
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TXRX_CSR9,4,2                  ## @TXRX_CSR9
	.comm	_TXRX_CSR9_BEACON_GEN,4,2       ## @TXRX_CSR9_BEACON_GEN
	.no_dead_strip	_rt73usb_clear_beacon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt73usb_clear_beacon
_rt73usb_clear_beacon:                  ; @rt73usb_clear_beacon
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
Lloh0:
	adrp	x22, _TXRX_CSR9@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TXRX_CSR9@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_rt2x00usb_register_read
	mov	x21, x0
	str	w0, [sp, #12]
Lloh2:
	adrp	x8, _TXRX_CSR9_BEACON_GEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TXRX_CSR9_BEACON_GEN@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field32
	ldr	w1, [x22]
	ldr	w2, [sp, #12]
	mov	x0, x20
	bl	_rt2x00usb_register_write
	ldr	w0, [x19]
	bl	_HW_BEACON_OFFSET
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_rt2x00usb_register_write
	ldr	w1, [x22]
	mov	x0, x20
	mov	x2, x21
	bl	_rt2x00usb_register_write
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TXRX_CSR9,4,2                  ; @TXRX_CSR9
	.comm	_TXRX_CSR9_BEACON_GEN,4,2       ; @TXRX_CSR9_BEACON_GEN
	.no_dead_strip	_rt73usb_clear_beacon
.subsections_via_symbols
