	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_wmi_tlv_op_gen_wow_add_pattern
_ath10k_wmi_tlv_op_gen_wow_add_pattern: ## @ath10k_wmi_tlv_op_gen_wow_add_pattern
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	16(%rbp), %r13d
	movl	$260, %esi                      ## imm = 0x104
	callq	_ath10k_wmi_alloc_skb
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r13
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_WMI_TLV_TAG_STRUCT_WOW_ADD_PATTERN_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le16
	movq	%rax, 8(%r13)
	movl	$24, %edi
	callq	___cpu_to_le16
	movq	%rax, (%r13)
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movq	16(%r13), %rbx
	movl	%r12d, %edi
	callq	___cpu_to_le32
	movq	%rax, 16(%rbx)
	movl	%r15d, %edi
	callq	___cpu_to_le32
	movq	%rax, 8(%rbx)
	movq	_WOW_BITMAP_PATTERN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le32
	movq	%rax, (%rbx)
	movq	_WMI_TLV_TAG_ARRAY_STRUCT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le16
	movq	%rax, 56(%r13)
	movl	$64, %edi
	callq	___cpu_to_le16
	movq	%rax, 48(%r13)
	movq	_WMI_TLV_TAG_STRUCT_WOW_BITMAP_PATTERN_T@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le16
	movq	%rax, 80(%r13)
	movl	$40, %edi
	callq	___cpu_to_le16
	movq	%rax, 72(%r13)
	movl	%r15d, %ebx
	movq	88(%r13), %r15
	movl	36(%r15), %edi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_memcpy
	movl	32(%r15), %edi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_memcpy
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	callq	___cpu_to_le32
	movq	%rax, 24(%r15)
	movl	%r14d, %edi
	callq	___cpu_to_le32
	movq	%rax, 16(%r15)
	movl	%r14d, %edi
	callq	___cpu_to_le32
	movq	%rax, 8(%r15)
	movl	%ebx, %edi
	movl	%ebx, %r14d
	callq	___cpu_to_le32
	movq	%rax, (%r15)
	movq	_WMI_TLV_TAG_ARRAY_STRUCT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	___cpu_to_le16
	movq	%rax, 144(%r13)
	xorl	%edi, %edi
	callq	___cpu_to_le16
	movq	%rax, 136(%r13)
	movl	(%rbx), %edi
	callq	___cpu_to_le16
	movq	%rax, 168(%r13)
	xorl	%edi, %edi
	callq	___cpu_to_le16
	movq	%rax, 160(%r13)
	movl	(%rbx), %edi
	callq	___cpu_to_le16
	movq	%rax, 192(%r13)
	xorl	%edi, %edi
	callq	___cpu_to_le16
	movq	%rax, 184(%r13)
	movq	_WMI_TLV_TAG_ARRAY_UINT32@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	___cpu_to_le16
	movq	%rax, 216(%r13)
	xorl	%edi, %edi
	callq	___cpu_to_le16
	movq	%rax, 208(%r13)
	movl	(%rbx), %edi
	callq	___cpu_to_le16
	movq	%rax, 240(%r13)
	movl	$4, %edi
	callq	___cpu_to_le16
	movq	%rax, 232(%r13)
	movq	_ATH10K_DBG_WMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%r14d, %r8d
	movl	%r12d, %r9d
	callq	_ath10k_dbg
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WMI_TLV_TAG_STRUCT_WOW_ADD_PATTERN_CMD,4,2 ## @WMI_TLV_TAG_STRUCT_WOW_ADD_PATTERN_CMD
	.comm	_WOW_BITMAP_PATTERN,4,2         ## @WOW_BITMAP_PATTERN
	.comm	_WMI_TLV_TAG_ARRAY_STRUCT,4,2   ## @WMI_TLV_TAG_ARRAY_STRUCT
	.comm	_WMI_TLV_TAG_STRUCT_WOW_BITMAP_PATTERN_T,4,2 ## @WMI_TLV_TAG_STRUCT_WOW_BITMAP_PATTERN_T
	.comm	_WMI_TLV_TAG_ARRAY_UINT32,4,2   ## @WMI_TLV_TAG_ARRAY_UINT32
	.comm	_ATH10K_DBG_WMI,4,2             ## @ATH10K_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wmi tlv wow add pattern vdev_id %d pattern_id %d, pattern_offset %d\n"

	.no_dead_strip	_ath10k_wmi_tlv_op_gen_wow_add_pattern
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_wmi_tlv_op_gen_wow_add_pattern
_ath10k_wmi_tlv_op_gen_wow_add_pattern: ; @ath10k_wmi_tlv_op_gen_wow_add_pattern
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x6
	mov	x24, x5
	mov	x25, x4
	mov	x26, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	mov	w1, #260
	bl	_ath10k_wmi_alloc_skb
	cbz	x0, LBB0_2
; %bb.1:
	mov	x23, x0
	ldr	x27, [x0]
Lloh0:
	adrp	x8, _WMI_TLV_TAG_STRUCT_WOW_ADD_PATTERN_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMI_TLV_TAG_STRUCT_WOW_ADD_PATTERN_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	___cpu_to_le16
	str	x0, [x27, #8]
	mov	w0, #24
	bl	___cpu_to_le16
	str	x0, [x27]
	ldr	x28, [x27, #16]
	mov	x0, x19
	bl	___cpu_to_le32
	str	x0, [x28, #16]
	mov	x0, x20
	bl	___cpu_to_le32
	str	x0, [x28, #8]
Lloh3:
	adrp	x8, _WOW_BITMAP_PATTERN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WOW_BITMAP_PATTERN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	___cpu_to_le32
	str	x0, [x28]
Lloh6:
	adrp	x28, _WMI_TLV_TAG_ARRAY_STRUCT@GOTPAGE
Lloh7:
	ldr	x28, [x28, _WMI_TLV_TAG_ARRAY_STRUCT@GOTPAGEOFF]
	ldr	w0, [x28]
	bl	___cpu_to_le16
	str	x0, [x27, #56]
	mov	w0, #64
	bl	___cpu_to_le16
	str	x0, [x27, #48]
Lloh8:
	adrp	x8, _WMI_TLV_TAG_STRUCT_WOW_BITMAP_PATTERN_T@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WMI_TLV_TAG_STRUCT_WOW_BITMAP_PATTERN_T@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	___cpu_to_le16
	str	x0, [x27, #80]
	mov	w0, #40
	bl	___cpu_to_le16
	str	x0, [x27, #72]
	str	w19, [sp, #12]                  ; 4-byte Folded Spill
	ldr	x19, [x27, #88]
	ldr	w0, [x19, #36]
	mov	x1, x26
	mov	x2, x24
	bl	_memcpy
	ldr	w0, [x19, #32]
	mov	x1, x25
	mov	x2, x24
	bl	_memcpy
	mov	x0, x21
	bl	___cpu_to_le32
	str	x0, [x19, #24]
	mov	x0, x24
	bl	___cpu_to_le32
	str	x0, [x19, #16]
	mov	x0, x24
	bl	___cpu_to_le32
	str	x0, [x19, #8]
	mov	x0, x20
	bl	___cpu_to_le32
	str	x0, [x19]
	ldr	w0, [x28]
	bl	___cpu_to_le16
	str	x0, [x27, #144]
	mov	w0, #0
	bl	___cpu_to_le16
	str	x0, [x27, #136]
	ldr	w0, [x28]
	bl	___cpu_to_le16
	str	x0, [x27, #168]
	mov	w0, #0
	bl	___cpu_to_le16
	str	x0, [x27, #160]
	ldr	w0, [x28]
	bl	___cpu_to_le16
	str	x0, [x27, #192]
	mov	w0, #0
	bl	___cpu_to_le16
	str	x0, [x27, #184]
Lloh11:
	adrp	x19, _WMI_TLV_TAG_ARRAY_UINT32@GOTPAGE
Lloh12:
	ldr	x19, [x19, _WMI_TLV_TAG_ARRAY_UINT32@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	___cpu_to_le16
	str	x0, [x27, #216]
	mov	w0, #0
	bl	___cpu_to_le16
	str	x0, [x27, #208]
	ldr	w0, [x19]
	bl	___cpu_to_le16
	str	x0, [x27, #240]
	mov	w0, #4
	bl	___cpu_to_le16
	str	x0, [x27, #232]
Lloh13:
	adrp	x8, _ATH10K_DBG_WMI@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ATH10K_DBG_WMI@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	ldr	w3, [sp, #12]                   ; 4-byte Folded Reload
	mov	x4, x20
	mov	x5, x21
	bl	_ath10k_dbg
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ERR_PTR
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WMI_TLV_TAG_STRUCT_WOW_ADD_PATTERN_CMD,4,2 ; @WMI_TLV_TAG_STRUCT_WOW_ADD_PATTERN_CMD
	.comm	_WOW_BITMAP_PATTERN,4,2         ; @WOW_BITMAP_PATTERN
	.comm	_WMI_TLV_TAG_ARRAY_STRUCT,4,2   ; @WMI_TLV_TAG_ARRAY_STRUCT
	.comm	_WMI_TLV_TAG_STRUCT_WOW_BITMAP_PATTERN_T,4,2 ; @WMI_TLV_TAG_STRUCT_WOW_BITMAP_PATTERN_T
	.comm	_WMI_TLV_TAG_ARRAY_UINT32,4,2   ; @WMI_TLV_TAG_ARRAY_UINT32
	.comm	_ATH10K_DBG_WMI,4,2             ; @ATH10K_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wmi tlv wow add pattern vdev_id %d pattern_id %d, pattern_offset %d\n"

	.no_dead_strip	_ath10k_wmi_tlv_op_gen_wow_add_pattern
.subsections_via_symbols
