	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_wmi_10_4_gen_tdls_peer_update
_ath10k_wmi_10_4_gen_tdls_peer_update:  ## @ath10k_wmi_10_4_gen_tdls_peer_update
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	(%rdx), %eax
	testl	%eax, %eax
	leal	116(,%rax,4), %eax
	movl	$120, %esi
	cmovnel	%eax, %esi
	callq	_ath10k_wmi_alloc_skb
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r14
	movq	(%rax), %rdi
	xorl	%esi, %esi
	movl	$120, %edx
	callq	_memset
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	(%r14), %r14
	movl	(%r12), %edi
	callq	___cpu_to_le32
	movq	%rax, 112(%r14)
	movl	104(%r14), %edi
	movl	8(%r12), %esi
	callq	_ether_addr_copy
	movl	4(%r12), %edi
	callq	___cpu_to_le32
	movq	%rax, 96(%r14)
	movl	48(%rbx), %esi
	movl	52(%rbx), %edi
	callq	_ath10k_wmi_prepare_peer_qos
	movl	%eax, %edi
	callq	___cpu_to_le32
	movq	%rax, 88(%r14)
	movl	4(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 80(%r14)
	movl	8(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 72(%r14)
	movl	12(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 64(%r14)
	movl	16(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 56(%r14)
	movl	(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 48(%r14)
	movl	20(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 40(%r14)
	movq	_WMI_TDLS_MAX_SUPP_OPER_CLASSES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_4
## %bb.2:
	movq	40(%rbx), %rcx
	movq	32(%r14), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rsi,4), %edi
	movl	%edi, (%rdx,%rsi,4)
	incq	%rsi
	movslq	(%rax), %rdi
	cmpq	%rdi, %rsi
	jl	LBB0_3
LBB0_4:
	movl	24(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 24(%r14)
	movl	28(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 16(%r14)
	movl	32(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 8(%r14)
	movl	(%rbx), %r9d
	testl	%r9d, %r9d
	jle	LBB0_8
## %bb.5:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	addq	%r15, %rdi
	leaq	(%r15,%r13), %rsi
	callq	_ath10k_wmi_put_wmi_channel
	incq	%r12
	movslq	(%rbx), %r9
	addq	$4, %r15
	cmpq	%r9, %r12
	jl	LBB0_6
## %bb.7:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_8:
	movq	_ATH10K_DBG_WMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %ecx
	movl	4(%r12), %r8d
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_ath10k_dbg
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$24, %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_TDLS_MAX_SUPP_OPER_CLASSES,4,2 ## @WMI_TDLS_MAX_SUPP_OPER_CLASSES
	.comm	_ATH10K_DBG_WMI,4,2             ## @ATH10K_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wmi tdls peer update vdev %i state %d n_chans %u\n"

	.no_dead_strip	_ath10k_wmi_10_4_gen_tdls_peer_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_wmi_10_4_gen_tdls_peer_update
_ath10k_wmi_10_4_gen_tdls_peer_update:  ; @ath10k_wmi_10_4_gen_tdls_peer_update
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x2]
	lsl	w9, w8, #2
	add	w9, w9, #116
	mov	w10, #120
	cmp	w8, #0
	csel	w1, w10, w9, eq
	bl	_ath10k_wmi_alloc_skb
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, x0
	ldr	x0, [x0]
	mov	w1, #0
	mov	w2, #120
	bl	_memset
	ldr	x24, [x21]
	ldr	w0, [x20]
	bl	___cpu_to_le32
	str	x0, [x24, #112]
	ldr	w0, [x24, #104]
	ldr	w1, [x20, #8]
	bl	_ether_addr_copy
	ldr	w0, [x20, #4]
	bl	___cpu_to_le32
	str	x0, [x24, #96]
	ldp	w1, w0, [x23, #48]
	bl	_ath10k_wmi_prepare_peer_qos
	bl	___cpu_to_le32
	str	x0, [x24, #88]
	ldr	w0, [x23, #4]
	bl	___cpu_to_le32
	str	x0, [x24, #80]
	ldr	w0, [x23, #8]
	bl	___cpu_to_le32
	str	x0, [x24, #72]
	ldr	w0, [x23, #12]
	bl	___cpu_to_le32
	str	x0, [x24, #64]
	ldr	w0, [x23, #16]
	bl	___cpu_to_le32
	str	x0, [x24, #56]
	ldr	w0, [x23]
	bl	___cpu_to_le32
	str	x0, [x24, #48]
	ldr	w0, [x23, #20]
	bl	___cpu_to_le32
	str	x0, [x24, #40]
Lloh0:
	adrp	x8, _WMI_TDLS_MAX_SUPP_OPER_CLASSES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMI_TDLS_MAX_SUPP_OPER_CLASSES@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x9, #0
	ldr	x10, [x23, #40]
	ldr	x11, [x24, #32]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x12, x9, #2
	ldr	w13, [x10, x12]
	str	w13, [x11, x12]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	cmp	x9, x12
	b.lt	LBB0_3
LBB0_4:
	ldr	w0, [x23, #24]
	bl	___cpu_to_le32
	str	x0, [x24, #24]
	ldr	w0, [x23, #28]
	bl	___cpu_to_le32
	str	x0, [x24, #16]
	ldr	w0, [x23, #32]
	bl	___cpu_to_le32
	str	x0, [x24, #8]
	ldr	w5, [x23]
	cmp	w5, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x25, #0
	mov	x26, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	add	x0, x8, x25
	add	x1, x22, x25
	bl	_ath10k_wmi_put_wmi_channel
	add	x26, x26, #1
	ldrsw	x5, [x23]
	add	x25, x25, #4
	cmp	x26, x5
	b.lt	LBB0_6
LBB0_7:
Lloh2:
	adrp	x8, _ATH10K_DBG_WMI@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ATH10K_DBG_WMI@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldp	w3, w4, [x20]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_ath10k_dbg
	mov	x0, x21
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WMI_TDLS_MAX_SUPP_OPER_CLASSES,4,2 ; @WMI_TDLS_MAX_SUPP_OPER_CLASSES
	.comm	_ATH10K_DBG_WMI,4,2             ; @ATH10K_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wmi tdls peer update vdev %i state %d n_chans %u\n"

	.no_dead_strip	_ath10k_wmi_10_4_gen_tdls_peer_update
.subsections_via_symbols
