	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2800_write_beacon            ## -- Begin function rt2800_write_beacon
	.p2align	4, 0x90
_rt2800_write_beacon:                   ## @rt2800_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, %r12
	movq	(%rdi), %rdi
	movq	16(%r12), %rax
	movq	8(%rax), %r14
	callq	_get_skb_frame_desc
	movq	%rax, %r13
	movq	16(%r12), %rax
	movl	(%rax), %r15d
	movq	_BCN_TIME_CFG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_rt2800_register_read
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, -48(%rbp)
	movq	_BCN_TIME_CFG_BEACON_GEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field32
	movl	(%rbx), %esi
	movl	-48(%rbp), %edx
	movq	%r14, %rdi
	callq	_rt2800_register_write
	movq	(%r12), %rdi
	movl	%r15d, %esi
	callq	_skb_push
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_memset
	movq	_SKBDESC_DESC_IN_SKB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r13)
	movq	(%r12), %rax
	movl	4(%rax), %eax
	movl	%eax, 4(%r13)
	movl	%r15d, (%r13)
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_rt2800_write_tx_data
	movq	_DUMP_FRAME_BEACON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_rt2x00debug_dump_frame
	movq	(%r12), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	callq	_roundup
	movl	%eax, %ebx
	movq	(%r12), %rdi
	subl	(%rdi), %ebx
	je	LBB0_3
## %bb.1:
	movl	%ebx, %esi
	callq	_skb_pad
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_rt2x00_err
	movq	$0, (%r12)
	movq	_BCN_TIME_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_rt2800_register_write
	jmp	LBB0_4
LBB0_3:
	movl	12(%r12), %esi
	movq	%r14, %rdi
	callq	_rt2800_hw_beacon_base
	movq	(%r12), %rcx
	movl	4(%rcx), %edx
	addl	(%rcx), %ebx
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %ecx
	callq	_rt2800_register_multiwrite
	movq	_ENTRY_BCN_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r12), %rsi
	callq	___set_bit
	movq	%r14, %rdi
	callq	_rt2800_update_beacons_setup
	movq	_BCN_TIME_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_rt2800_register_write
	movq	(%r12), %rdi
	callq	_dev_kfree_skb_any
	movq	$0, (%r12)
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCN_TIME_CFG,4,2               ## @BCN_TIME_CFG
	.comm	_BCN_TIME_CFG_BEACON_GEN,4,2    ## @BCN_TIME_CFG_BEACON_GEN
	.comm	_SKBDESC_DESC_IN_SKB,4,2        ## @SKBDESC_DESC_IN_SKB
	.comm	_DUMP_FRAME_BEACON,4,2          ## @DUMP_FRAME_BEACON
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failure padding beacon, aborting\n"

	.comm	_ENTRY_BCN_ENABLED,4,2          ## @ENTRY_BCN_ENABLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2800_write_beacon            ; -- Begin function rt2800_write_beacon
	.p2align	2
_rt2800_write_beacon:                   ; @rt2800_write_beacon
	.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	x22, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x20, [x8, #8]
	ldr	x0, [x0]
	bl	_get_skb_frame_desc
	mov	x23, x0
	ldr	x8, [x19, #16]
	ldr	w24, [x8]
Lloh0:
	adrp	x25, _BCN_TIME_CFG@GOTPAGE
Lloh1:
	ldr	x25, [x25, _BCN_TIME_CFG@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x20
	bl	_rt2800_register_read
	mov	x21, x0
	str	w0, [sp, #12]
Lloh2:
	adrp	x8, _BCN_TIME_CFG_BEACON_GEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BCN_TIME_CFG_BEACON_GEN@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field32
	ldr	w1, [x25]
	ldr	w2, [sp, #12]
	mov	x0, x20
	bl	_rt2800_register_write
	ldr	x0, [x19]
	mov	x1, x24
	bl	_skb_push
	mov	w1, #0
	mov	x2, x24
	bl	_memset
Lloh5:
	adrp	x8, _SKBDESC_DESC_IN_SKB@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SKBDESC_DESC_IN_SKB@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x23, #8]
	orr	w8, w9, w8
	str	w8, [x23, #8]
	ldr	x8, [x19]
	ldr	w8, [x8, #4]
	stp	w24, w8, [x23]
	mov	x0, x19
	mov	x1, x22
	bl	_rt2800_write_tx_data
Lloh8:
	adrp	x8, _DUMP_FRAME_BEACON@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DUMP_FRAME_BEACON@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_rt2x00debug_dump_frame
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	w1, #4
	bl	_roundup
	mov	x8, x0
	ldr	x0, [x19]
	ldr	w9, [x0]
	subs	w22, w8, w9
	b.eq	LBB0_3
; %bb.1:
	mov	x1, x22
	bl	_skb_pad
	cbz	x0, LBB0_3
; %bb.2:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_rt2x00_err
	str	xzr, [x19]
	ldr	w1, [x25]
	mov	x0, x20
	mov	x2, x21
	bl	_rt2800_register_write
	b	LBB0_4
LBB0_3:
	ldr	w1, [x19, #12]
	mov	x0, x20
	bl	_rt2800_hw_beacon_base
	mov	x1, x0
	ldr	x8, [x19]
	ldp	w8, w2, [x8]
	add	w3, w8, w22
	mov	x0, x20
	bl	_rt2800_register_multiwrite
Lloh13:
	adrp	x8, _ENTRY_BCN_ENABLED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENTRY_BCN_ENABLED@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	___set_bit
	mov	x0, x20
	bl	_rt2800_update_beacons_setup
	ldr	w1, [x25]
	mov	x0, x20
	mov	x2, x21
	bl	_rt2800_register_write
	ldr	x0, [x19]
	bl	_dev_kfree_skb_any
	str	xzr, [x19]
LBB0_4:
	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 AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_BCN_TIME_CFG,4,2               ; @BCN_TIME_CFG
	.comm	_BCN_TIME_CFG_BEACON_GEN,4,2    ; @BCN_TIME_CFG_BEACON_GEN
	.comm	_SKBDESC_DESC_IN_SKB,4,2        ; @SKBDESC_DESC_IN_SKB
	.comm	_DUMP_FRAME_BEACON,4,2          ; @DUMP_FRAME_BEACON
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failure padding beacon, aborting\n"

	.comm	_ENTRY_BCN_ENABLED,4,2          ; @ENTRY_BCN_ENABLED
.subsections_via_symbols
