	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2500usb_write_beacon
_rt2500usb_write_beacon:                ## @rt2500usb_write_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	%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	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	8(%rax), %r15
	movl	8(%r15), %edi
	callq	_to_usb_device_intf
	movq	%rax, %rdi
	movq	8(%rbx), %rax
	movq	16(%rbx), %r14
	movl	(%rax), %esi
	movq	%rdi, %r12
	callq	_usb_sndbulkpipe
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_TXRX_CSR19@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_rt2500usb_register_read
	movl	%eax, -44(%rbp)
	movq	_TXRX_CSR19_BEACON_GEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field16
	movl	(%r13), %esi
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	callq	_rt2500usb_register_write
	movq	(%rbx), %rdi
	movq	_TXD_DESC_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_skb_push
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movl	(%r13), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_rt2500usb_write_tx_desc
	movq	_DUMP_FRAME_BEACON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_rt2x00debug_dump_frame
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	16(%r14), %edi
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	_rt2500usb_beacondone@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	%rbx, (%rsp)
	movq	%r12, %r13
	movq	%r12, %rsi
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	movl	%eax, %r8d
	callq	_usb_fill_bulk_urb
	leaq	8(%r14), %rcx
	movq	$0, 8(%r14)
	movl	(%r14), %edi
	movq	_rt2500usb_beacondone@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%rbx, (%rsp)
	movq	%r13, %rsi
	movl	%r12d, %edx
	movl	$1, %r8d
	callq	_usb_fill_bulk_urb
	movl	(%r14), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	movq	_TXRX_CSR19_TSF_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field16
	movq	_TXRX_CSR19_TBCN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field16
	movl	-44(%rbp), %r14d
	movq	_TXRX_CSR19_BEACON_GEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field16
	movq	_TXRX_CSR19@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	callq	_rt2500usb_register_write
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_rt2500usb_register_write
	movl	(%rbx), %esi
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	callq	_rt2500usb_register_write
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_rt2500usb_register_write
	movl	(%rbx), %esi
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	callq	_rt2500usb_register_write
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TXRX_CSR19,4,2                 ## @TXRX_CSR19
	.comm	_TXRX_CSR19_BEACON_GEN,4,2      ## @TXRX_CSR19_BEACON_GEN
	.comm	_TXD_DESC_SIZE,4,2              ## @TXD_DESC_SIZE
	.comm	_DUMP_FRAME_BEACON,4,2          ## @DUMP_FRAME_BEACON
	.comm	_rt2500usb_beacondone,4,2       ## @rt2500usb_beacondone
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_TXRX_CSR19_TSF_COUNT,4,2       ## @TXRX_CSR19_TSF_COUNT
	.comm	_TXRX_CSR19_TBCN,4,2            ## @TXRX_CSR19_TBCN
	.no_dead_strip	_rt2500usb_write_beacon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2500usb_write_beacon
_rt2500usb_write_beacon:                ; @rt2500usb_write_beacon
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x19, [x8, #8]
	ldr	w0, [x19, #8]
	bl	_to_usb_device_intf
	mov	x21, x0
	ldp	x8, x26, [x20, #8]
	ldr	w1, [x8]
	bl	_usb_sndbulkpipe
	mov	x22, x0
Lloh0:
	adrp	x24, _TXRX_CSR19@GOTPAGE
Lloh1:
	ldr	x24, [x24, _TXRX_CSR19@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_rt2500usb_register_read
	str	w0, [sp, #12]
Lloh2:
	adrp	x25, _TXRX_CSR19_BEACON_GEN@GOTPAGE
Lloh3:
	ldr	x25, [x25, _TXRX_CSR19_BEACON_GEN@GOTPAGEOFF]
	ldr	w1, [x25]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field16
	ldr	w1, [x24]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2500usb_register_write
	ldr	x0, [x20]
Lloh4:
	adrp	x27, _TXD_DESC_SIZE@GOTPAGE
Lloh5:
	ldr	x27, [x27, _TXD_DESC_SIZE@GOTPAGEOFF]
	ldr	w1, [x27]
	bl	_skb_push
	ldr	x8, [x20]
	ldr	x0, [x8]
	ldr	w2, [x27]
	mov	w1, #0
	bl	_memset
	mov	x0, x20
	mov	x1, x23
	bl	_rt2500usb_write_tx_desc
Lloh6:
	adrp	x8, _DUMP_FRAME_BEACON@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DUMP_FRAME_BEACON@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_rt2x00debug_dump_frame
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	mov	x4, x0
	ldr	w0, [x26, #16]
	ldr	x8, [x20]
	ldr	x3, [x8]
Lloh9:
	adrp	x23, _rt2500usb_beacondone@GOTPAGE
Lloh10:
	ldr	x23, [x23, _rt2500usb_beacondone@GOTPAGEOFF]
	ldr	w5, [x23]
	mov	x1, x21
	mov	x2, x22
	mov	x6, x20
	bl	_usb_fill_bulk_urb
	mov	x3, x26
	str	xzr, [x3, #8]!
	ldr	w0, [x26]
	ldr	w5, [x23]
	mov	x1, x21
	mov	x2, x22
	mov	w4, #1
	mov	x6, x20
	bl	_usb_fill_bulk_urb
	ldr	w0, [x26]
Lloh11:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_usb_submit_urb
Lloh14:
	adrp	x8, _TXRX_CSR19_TSF_COUNT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TXRX_CSR19_TSF_COUNT@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field16
Lloh17:
	adrp	x8, _TXRX_CSR19_TBCN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TXRX_CSR19_TBCN@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field16
	ldr	w20, [sp, #12]
	ldr	w1, [x25]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field16
	ldr	w1, [x24]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2500usb_register_write
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x20
	bl	_rt2500usb_register_write
	ldr	w1, [x24]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2500usb_register_write
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x20
	bl	_rt2500usb_register_write
	ldr	w1, [x24]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2500usb_register_write
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TXRX_CSR19,4,2                 ; @TXRX_CSR19
	.comm	_TXRX_CSR19_BEACON_GEN,4,2      ; @TXRX_CSR19_BEACON_GEN
	.comm	_TXD_DESC_SIZE,4,2              ; @TXD_DESC_SIZE
	.comm	_DUMP_FRAME_BEACON,4,2          ; @DUMP_FRAME_BEACON
	.comm	_rt2500usb_beacondone,4,2       ; @rt2500usb_beacondone
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_TXRX_CSR19_TSF_COUNT,4,2       ; @TXRX_CSR19_TSF_COUNT
	.comm	_TXRX_CSR19_TBCN,4,2            ; @TXRX_CSR19_TBCN
	.no_dead_strip	_rt2500usb_write_beacon
.subsections_via_symbols
