	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbtf_beacon_set                ## -- Begin function lbtf_beacon_set
	.p2align	4, 0x90
_lbtf_beacon_set:                       ## @lbtf_beacon_set
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_LBTF_DEB_CMD@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_lbtf_deb_enter
	movl	(%r15), %ebx
	movq	_MRVL_MAX_BCN_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jle	LBB0_2
## %bb.1:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	$-1, %ebx
	movl	$-1, %edx
	jmp	LBB0_3
LBB0_2:
	addl	$20, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movq	%rax, -56(%rbp)
	movl	(%r15), %edi
	callq	_cpu_to_le16
	movq	%rax, -40(%rbp)
	movq	8(%r15), %rsi
	movl	(%r15), %edx
	callq	_memcpy
	movq	_CMD_802_11_BEACON_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_lbtf_cmd_async
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
LBB0_3:
	callq	_lbtf_deb_leave_args
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LBTF_DEB_CMD,4,2               ## @LBTF_DEB_CMD
	.comm	_MRVL_MAX_BCN_SIZE,4,2          ## @MRVL_MAX_BCN_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ret %d"

	.comm	_CMD_802_11_BEACON_SET,4,2      ## @CMD_802_11_BEACON_SET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lbtf_beacon_set                ; -- Begin function lbtf_beacon_set
	.p2align	2
_lbtf_beacon_set:                       ; @lbtf_beacon_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _LBTF_DEB_CMD@GOTPAGE
Lloh1:
	ldr	x22, [x22, _LBTF_DEB_CMD@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_lbtf_deb_enter
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _MRVL_MAX_BCN_SIZE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MRVL_MAX_BCN_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_2
; %bb.1:
	ldr	w0, [x22]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w19, #-1
	mov	w2, #-1
	bl	_lbtf_deb_leave_args
	b	LBB0_3
LBB0_2:
	add	w21, w8, #20
	mov	x0, x21
	bl	_cpu_to_le16
	str	x0, [sp, #8]
	ldr	w0, [x20]
	bl	_cpu_to_le16
	str	x0, [sp, #24]
	ldr	x1, [x20, #8]
	ldr	w2, [x20]
	bl	_memcpy
Lloh7:
	adrp	x8, _CMD_802_11_BEACON_SET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CMD_802_11_BEACON_SET@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	x3, x21
	bl	_lbtf_cmd_async
	ldr	w0, [x22]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	bl	_lbtf_deb_leave_args
	mov	w19, #0
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_LBTF_DEB_CMD,4,2               ; @LBTF_DEB_CMD
	.comm	_MRVL_MAX_BCN_SIZE,4,2          ; @MRVL_MAX_BCN_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ret %d"

	.comm	_CMD_802_11_BEACON_SET,4,2      ; @CMD_802_11_BEACON_SET
.subsections_via_symbols
