	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il4965_hw_get_beacon_cmd
_il4965_hw_get_beacon_cmd:              ## @il4965_hw_get_beacon_cmd
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	addq	$16, %rdi
	callq	_lockdep_assert_held
	cmpl	$0, 12(%rbx)
	je	LBB0_1
## %bb.2:
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	24(%r15), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_il4965_fill_beacon_frame
	movq	%rax, %r14
	movq	_MAX_MPDU_SIZE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %r14
	setg	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	testq	%r14, %r14
	je	LBB0_7
## %bb.4:
	movl	%r14d, %edi
	callq	_cpu_to_le16
	movl	%eax, 16(%r15)
	movl	8(%rbx), %eax
	movl	%eax, 12(%r15)
	movq	_TX_CMD_LIFE_TIME_INFINITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_TX_CMD_FLG_SEQ_CTL_MSK@GOTPCREL(%rip), %rax
	movq	_TX_CMD_FLG_TSF_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_TX_CMD_FLG_STA_RATE_MSK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r15)
	movq	24(%r15), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rcx
	callq	_il4965_set_beacon_tim
	movq	%rbx, %rdi
	callq	_il_get_lowest_plcp
	movq	%rax, %r12
	movl	4(%rbx), %edx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_il4965_toggle_tx_ant
	movl	(%rbx), %edi
	callq	_BIT
	movq	_RATE_MCS_ANT_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rax
	movq	_IL_FIRST_CCK_RATE@GOTPCREL(%rip), %rcx
	movq	_IL_LAST_CCK_RATE@GOTPCREL(%rip), %rdi
	xorl	%edx, %edx
	movl	$0, %esi
	cmpq	(%rdi), %r12
	jg	LBB0_6
## %bb.5:
	movq	_RATE_MCS_CCK_MSK@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
LBB0_6:
	cmpq	(%rcx), %r12
	cmovlq	%rdx, %rsi
	orq	%r12, %rax
	orq	%rsi, %rax
	movq	%rax, %rdi
	callq	_cpu_to_le32
	movl	%eax, 4(%r15)
	leal	32(%r14), %r12d
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_IL_ERR
	xorl	%r12d, %r12d
LBB0_7:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Trying to build beacon without beaconing enabled\n"

	.comm	_MAX_MPDU_SIZE,8,3              ## @MAX_MPDU_SIZE
	.comm	_TX_CMD_LIFE_TIME_INFINITE,4,2  ## @TX_CMD_LIFE_TIME_INFINITE
	.comm	_TX_CMD_FLG_SEQ_CTL_MSK,4,2     ## @TX_CMD_FLG_SEQ_CTL_MSK
	.comm	_TX_CMD_FLG_TSF_MSK,4,2         ## @TX_CMD_FLG_TSF_MSK
	.comm	_TX_CMD_FLG_STA_RATE_MSK,4,2    ## @TX_CMD_FLG_STA_RATE_MSK
	.comm	_RATE_MCS_ANT_POS,8,3           ## @RATE_MCS_ANT_POS
	.comm	_IL_FIRST_CCK_RATE,8,3          ## @IL_FIRST_CCK_RATE
	.comm	_IL_LAST_CCK_RATE,8,3           ## @IL_LAST_CCK_RATE
	.comm	_RATE_MCS_CCK_MSK,8,3           ## @RATE_MCS_CCK_MSK
	.no_dead_strip	_il4965_hw_get_beacon_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il4965_hw_get_beacon_cmd
_il4965_hw_get_beacon_cmd:              ; @il4965_hw_get_beacon_cmd
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x21, x0
	add	x0, x0, #16
	bl	_lockdep_assert_held
	ldr	w8, [x21, #12]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	x1, [x19, #24]
	mov	x0, x21
	mov	w2, #0
	bl	_il4965_fill_beacon_frame
	mov	x20, x0
Lloh0:
	adrp	x8, _MAX_MPDU_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_MPDU_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, gt
	bl	_WARN_ON_ONCE
	mov	x8, x0
	mov	w0, #0
	cmp	x8, #0
	ccmp	x20, #0, #4, eq
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_cpu_to_le16
	str	w0, [x19, #16]
	ldr	w8, [x21, #8]
Lloh3:
	adrp	x9, _TX_CMD_LIFE_TIME_INFINITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TX_CMD_LIFE_TIME_INFINITE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _TX_CMD_FLG_SEQ_CTL_MSK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TX_CMD_FLG_SEQ_CTL_MSK@GOTPAGEOFF]
	stp	w9, w8, [x19, #8]
Lloh8:
	ldr	w8, [x10]
Lloh9:
	adrp	x9, _TX_CMD_FLG_TSF_MSK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TX_CMD_FLG_TSF_MSK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _TX_CMD_FLG_STA_RATE_MSK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TX_CMD_FLG_STA_RATE_MSK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
	ldr	x2, [x19, #24]
	mov	x0, x21
	mov	x1, x19
	mov	x3, x20
	bl	_il4965_set_beacon_tim
	mov	x0, x21
	bl	_il_get_lowest_plcp
	mov	x22, x0
	ldr	w2, [x21, #4]
	mov	x0, x21
	mov	x1, x21
	bl	_il4965_toggle_tx_ant
	ldr	w0, [x21]
	bl	_BIT
Lloh15:
	adrp	x8, _RATE_MCS_ANT_POS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RATE_MCS_ANT_POS@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	lsl	x8, x0, x8
Lloh18:
	adrp	x9, _IL_FIRST_CCK_RATE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IL_FIRST_CCK_RATE@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
Lloh21:
	adrp	x10, _IL_LAST_CCK_RATE@GOTPAGE
Lloh22:
	ldr	x10, [x10, _IL_LAST_CCK_RATE@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	cmp	x22, x10
	ccmp	x22, x9, #8, le
Lloh24:
	adrp	x9, _RATE_MCS_CCK_MSK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _RATE_MCS_CCK_MSK@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	csel	x9, xzr, x9, lt
	orr	x8, x8, x22
	orr	x0, x8, x9
	bl	_cpu_to_le32
	str	w0, [x19, #4]
	add	w0, w20, #32
	b	LBB0_4
LBB0_3:
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IL_ERR
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Trying to build beacon without beaconing enabled\n"

	.comm	_MAX_MPDU_SIZE,8,3              ; @MAX_MPDU_SIZE
	.comm	_TX_CMD_LIFE_TIME_INFINITE,4,2  ; @TX_CMD_LIFE_TIME_INFINITE
	.comm	_TX_CMD_FLG_SEQ_CTL_MSK,4,2     ; @TX_CMD_FLG_SEQ_CTL_MSK
	.comm	_TX_CMD_FLG_TSF_MSK,4,2         ; @TX_CMD_FLG_TSF_MSK
	.comm	_TX_CMD_FLG_STA_RATE_MSK,4,2    ; @TX_CMD_FLG_STA_RATE_MSK
	.comm	_RATE_MCS_ANT_POS,8,3           ; @RATE_MCS_ANT_POS
	.comm	_IL_FIRST_CCK_RATE,8,3          ; @IL_FIRST_CCK_RATE
	.comm	_IL_LAST_CCK_RATE,8,3           ; @IL_LAST_CCK_RATE
	.comm	_RATE_MCS_CCK_MSK,8,3           ; @RATE_MCS_CCK_MSK
	.no_dead_strip	_il4965_hw_get_beacon_cmd
.subsections_via_symbols
