	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il3945_hw_get_beacon_cmd       ## -- Begin function il3945_hw_get_beacon_cmd
	.p2align	4, 0x90
_il3945_hw_get_beacon_cmd:              ## @il3945_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movl	(%r14), %eax
	movl	%eax, 28(%rbx)
	movq	_TX_CMD_LIFE_TIME_INFINITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	32(%rbx), %esi
	movq	%r14, %rdi
	movl	$-36, %edx
	callq	_il3945_fill_beacon_frame
	movl	%eax, %r14d
	movq	_MAX_MPDU_SIZE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %r14d
	seta	%dil
	callq	_BUG_ON
	movl	%r14d, %edi
	callq	_cpu_to_le16
	movl	%eax, 20(%rbx)
	movl	%r15d, 16(%rbx)
	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
	movl	%ecx, (%rbx)
	movq	_IL_OFDM_BASIC_RATES_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_IL_FIRST_OFDM_RATE@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movzbl	%al, %eax
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	_IL_CCK_BASIC_RATES_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	$15, %eax
	movl	%eax, 4(%rcx)
	addl	$40, %r14d
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_CMD_LIFE_TIME_INFINITE,4,2  ## @TX_CMD_LIFE_TIME_INFINITE
	.comm	_MAX_MPDU_SIZE,4,2              ## @MAX_MPDU_SIZE
	.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	_IL_OFDM_BASIC_RATES_MASK,4,2   ## @IL_OFDM_BASIC_RATES_MASK
	.comm	_IL_FIRST_OFDM_RATE,4,2         ## @IL_FIRST_OFDM_RATE
	.comm	_IL_CCK_BASIC_RATES_MASK,4,2    ## @IL_CCK_BASIC_RATES_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il3945_hw_get_beacon_cmd       ; -- Begin function il3945_hw_get_beacon_cmd
	.p2align	2
_il3945_hw_get_beacon_cmd:              ; @il3945_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, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _TX_CMD_LIFE_TIME_INFINITE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TX_CMD_LIFE_TIME_INFINITE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
	ldr	w1, [x20, #32]
	mov	x0, x21
	mov	w2, #-36
	bl	_il3945_fill_beacon_frame
	mov	x21, x0
Lloh3:
	adrp	x8, _MAX_MPDU_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_MPDU_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, hi
	bl	_BUG_ON
	mov	x0, x21
	bl	_cpu_to_le16
Lloh6:
	adrp	x8, _TX_CMD_FLG_SEQ_CTL_MSK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TX_CMD_FLG_SEQ_CTL_MSK@GOTPAGEOFF]
	stp	w19, w0, [x20, #16]
Lloh8:
	ldr	w8, [x8]
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
	str	w8, [x20]
Lloh12:
	adrp	x8, _IL_OFDM_BASIC_RATES_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IL_OFDM_BASIC_RATES_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _IL_FIRST_OFDM_RATE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IL_FIRST_OFDM_RATE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	asr	w8, w8, w9
	and	w8, w8, #0xff
	ldr	x9, [x20, #8]
Lloh18:
	adrp	x10, _IL_CCK_BASIC_RATES_MASK@GOTPAGE
Lloh19:
	ldr	x10, [x10, _IL_CCK_BASIC_RATES_MASK@GOTPAGEOFF]
	str	w8, [x9]
Lloh20:
	ldr	w8, [x10]
	and	w8, w8, #0xf
	str	w8, [x9, #4]
	add	w0, w21, #40
	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	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_CMD_LIFE_TIME_INFINITE,4,2  ; @TX_CMD_LIFE_TIME_INFINITE
	.comm	_MAX_MPDU_SIZE,4,2              ; @MAX_MPDU_SIZE
	.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	_IL_OFDM_BASIC_RATES_MASK,4,2   ; @IL_OFDM_BASIC_RATES_MASK
	.comm	_IL_FIRST_OFDM_RATE,4,2         ; @IL_FIRST_OFDM_RATE
	.comm	_IL_CCK_BASIC_RATES_MASK,4,2    ; @IL_CCK_BASIC_RATES_MASK
.subsections_via_symbols
