	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_wmi_data_hdr_add        ## -- Begin function ath6kl_wmi_data_hdr_add
	.p2align	4, 0x90
_ath6kl_wmi_data_hdr_add:               ## @ath6kl_wmi_data_hdr_add
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movl	24(%rbp), %r15d
	movl	%r9d, -44(%rbp)
	testq	%rsi, %rsi
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	je	LBB0_1
## %bb.2:
	movq	(%r13), %rax
	xorl	%edi, %edi
	cmpl	%r15d, (%rax)
	setle	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_5:
	movq	16(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ath6kl_wmi_meta_add
	testl	%eax, %eax
	jne	LBB0_12
LBB0_7:
	movq	%rbx, %rdi
	movl	$12, %esi
	callq	_skb_push
	movq	(%rbx), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_WMI_DATA_HDR_MSG_TYPE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r12d
	movl	%r12d, (%r13)
	movq	_WMI_DATA_HDR_DATA_TYPE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r14d
	orl	%r12d, %r14d
	movl	%r14d, (%r13)
	movq	_WMI_DATA_HDR_FLAGS_MORE@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_9
## %bb.8:
	movq	_WMI_DATA_HDR_MORE@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	%r14d, (%r13)
LBB0_9:
	movq	_WMI_DATA_HDR_FLAGS_EOSP@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_11
## %bb.10:
	movq	_WMI_DATA_HDR_EOSP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	orl	%eax, 4(%r13)
LBB0_11:
	movl	-44(%rbp), %edi
	movq	_WMI_DATA_HDR_META_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	callq	_cpu_to_le16
	orl	%eax, 8(%r13)
	movq	_WMI_DATA_HDR_IF_IDX_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_cpu_to_le16
	orl	%eax, 4(%r13)
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WMI_DATA_HDR_MSG_TYPE_SHIFT,4,2 ## @WMI_DATA_HDR_MSG_TYPE_SHIFT
	.comm	_WMI_DATA_HDR_DATA_TYPE_SHIFT,4,2 ## @WMI_DATA_HDR_DATA_TYPE_SHIFT
	.comm	_WMI_DATA_HDR_FLAGS_MORE,4,2    ## @WMI_DATA_HDR_FLAGS_MORE
	.comm	_WMI_DATA_HDR_MORE,4,2          ## @WMI_DATA_HDR_MORE
	.comm	_WMI_DATA_HDR_FLAGS_EOSP,4,2    ## @WMI_DATA_HDR_FLAGS_EOSP
	.comm	_WMI_DATA_HDR_EOSP,4,2          ## @WMI_DATA_HDR_EOSP
	.comm	_WMI_DATA_HDR_META_SHIFT,4,2    ## @WMI_DATA_HDR_META_SHIFT
	.comm	_WMI_DATA_HDR_IF_IDX_MASK,4,2   ## @WMI_DATA_HDR_IF_IDX_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_wmi_data_hdr_add        ; -- Begin function ath6kl_wmi_data_hdr_add
	.p2align	2
_ath6kl_wmi_data_hdr_add:               ; @ath6kl_wmi_data_hdr_add
	.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	x19, x7
	mov	x24, x6
	mov	x22, x4
	mov	x20, x3
	mov	x23, x2
	mov	x21, x1
	mov	x25, x0
	str	w5, [sp, #12]
	cbz	x1, LBB0_3
; %bb.1:
	ldr	x8, [x25]
	ldr	w8, [x8]
	cmp	w8, w19
	cset	w0, le
	bl	_WARN_ON
	cbz	x0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_3:
	mov	w0, #1
	bl	_WARN_ON
	cbnz	x0, LBB0_2
LBB0_4:
	cbz	x24, LBB0_6
; %bb.5:
	add	x2, sp, #12
	mov	x0, x25
	mov	x1, x21
	mov	x3, x24
	bl	_ath6kl_wmi_meta_add
	cbnz	w0, LBB0_11
LBB0_6:
	mov	x0, x21
	mov	w1, #12
	bl	_skb_push
	ldr	x21, [x21]
	mov	x0, x21
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh3:
	adrp	x8, _WMI_DATA_HDR_MSG_TYPE_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WMI_DATA_HDR_MSG_TYPE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w8, w23, w8
	str	w8, [x21]
Lloh6:
	adrp	x9, _WMI_DATA_HDR_DATA_TYPE_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WMI_DATA_HDR_DATA_TYPE_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w9, w22, w9
	orr	w8, w9, w8
	str	w8, [x21]
Lloh9:
	adrp	x9, _WMI_DATA_HDR_FLAGS_MORE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WMI_DATA_HDR_FLAGS_MORE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w20
	b.eq	LBB0_8
; %bb.7:
Lloh12:
	adrp	x9, _WMI_DATA_HDR_MORE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _WMI_DATA_HDR_MORE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_8:
Lloh15:
	adrp	x8, _WMI_DATA_HDR_FLAGS_EOSP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WMI_DATA_HDR_FLAGS_EOSP@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.9:
Lloh18:
	adrp	x8, _WMI_DATA_HDR_EOSP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WMI_DATA_HDR_EOSP@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	ldr	w8, [x21, #4]
	orr	w8, w8, w0
	str	w8, [x21, #4]
LBB0_10:
	ldr	w8, [sp, #12]
Lloh21:
	adrp	x9, _WMI_DATA_HDR_META_SHIFT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _WMI_DATA_HDR_META_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	lsl	w0, w8, w9
	bl	_cpu_to_le16
	ldr	w8, [x21, #8]
	orr	w8, w8, w0
	str	w8, [x21, #8]
Lloh24:
	adrp	x8, _WMI_DATA_HDR_IF_IDX_MASK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _WMI_DATA_HDR_IF_IDX_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	and	w0, w8, w19
	bl	_cpu_to_le16
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x21, #4]
	orr	w8, w9, w8
	str	w8, [x21, #4]
LBB0_11:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WMI_DATA_HDR_MSG_TYPE_SHIFT,4,2 ; @WMI_DATA_HDR_MSG_TYPE_SHIFT
	.comm	_WMI_DATA_HDR_DATA_TYPE_SHIFT,4,2 ; @WMI_DATA_HDR_DATA_TYPE_SHIFT
	.comm	_WMI_DATA_HDR_FLAGS_MORE,4,2    ; @WMI_DATA_HDR_FLAGS_MORE
	.comm	_WMI_DATA_HDR_MORE,4,2          ; @WMI_DATA_HDR_MORE
	.comm	_WMI_DATA_HDR_FLAGS_EOSP,4,2    ; @WMI_DATA_HDR_FLAGS_EOSP
	.comm	_WMI_DATA_HDR_EOSP,4,2          ; @WMI_DATA_HDR_EOSP
	.comm	_WMI_DATA_HDR_META_SHIFT,4,2    ; @WMI_DATA_HDR_META_SHIFT
	.comm	_WMI_DATA_HDR_IF_IDX_MASK,4,2   ; @WMI_DATA_HDR_IF_IDX_MASK
.subsections_via_symbols
