	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00queue_update_beacon      ## -- Begin function rt2x00queue_update_beacon
	.p2align	4, 0x90
_rt2x00queue_update_beacon:             ## @rt2x00queue_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
	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	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_vif_to_intf
	movq	%rax, %r15
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	movq	(%r15), %rdi
	callq	_rt2x00queue_free_skb
	movl	8(%r14), %edi
	movq	%rbx, %rsi
	callq	_ieee80211_beacon_get
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	xorl	%ebx, %ebx
	leaq	-40(%rbp), %r12
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_rt2x00queue_create_tx_descriptor
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_get_skb_frame_desc
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	(%r15), %rdi
	movq	%r12, %rsi
	callq	*(%rax)
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00queue_update_beacon      ; -- Begin function rt2x00queue_update_beacon
	.p2align	2
_rt2x00queue_update_beacon:             ; @rt2x00queue_update_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	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_vif_to_intf
	mov	x20, x0
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_3:
	ldr	x0, [x20]
	bl	_rt2x00queue_free_skb
	ldr	w0, [x19, #8]
	mov	x1, x21
	bl	_ieee80211_beacon_get
	ldr	x8, [x20]
	str	w0, [x8]
	cbz	w0, LBB0_6
; %bb.4:
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x19
	mov	x3, #0
	bl	_rt2x00queue_create_tx_descriptor
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_get_skb_frame_desc
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x0, [x20]
	add	x1, sp, #8
	blr	x8
	mov	w0, #0
LBB0_5:
	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
LBB0_6:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
