	.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_scan_chan_list
_ath10k_wmi_tlv_op_gen_scan_chan_list:  ## @ath10k_wmi_tlv_op_gen_scan_chan_list
	.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	%rsi, %r13
	movq	%rdi, %r14
	movslq	(%rsi), %rbx
	leaq	(%rbx,%rbx,8), %rax
	leaq	(%rax,%rax,2), %r12
	leaq	(%rbx,%r12), %rsi
	addq	$52, %rsi
	callq	_ath10k_wmi_alloc_skb
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	addq	%rbx, %r12
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rbx
	movq	_WMI_TLV_TAG_STRUCT_SCAN_CHAN_LIST_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le16
	movq	%rax, 16(%rbx)
	movl	$4, %edi
	callq	___cpu_to_le16
	movq	%rax, 8(%rbx)
	movq	(%rbx), %r14
	movl	(%r13), %edi
	callq	___cpu_to_le32
	movl	%eax, (%r14)
	movq	_WMI_TLV_TAG_ARRAY_STRUCT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le16
	movq	%rax, 44(%rbx)
	movl	%r12d, %edi
	callq	___cpu_to_le16
	movq	%rax, 36(%rbx)
	cmpl	$0, (%r13)
	jle	LBB0_4
## %bb.2:
	movq	28(%rbx), %rbx
	addq	$16, %rbx
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %r12
	addq	%r14, %r12
	movq	_WMI_TLV_TAG_STRUCT_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le16
	movq	%rax, (%rbx)
	movl	$4, %edi
	callq	___cpu_to_le16
	movq	%rax, -8(%rbx)
	movq	-16(%rbx), %rdi
	movq	%r12, %rsi
	callq	_ath10k_wmi_put_wmi_channel
	incq	%r15
	movslq	(%r13), %rax
	addq	$4, %r14
	addq	$28, %rbx
	cmpq	%rax, %r15
	jl	LBB0_3
LBB0_4:
	movq	_ATH10K_DBG_WMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ath10k_dbg
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	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_TLV_TAG_STRUCT_SCAN_CHAN_LIST_CMD,4,2 ## @WMI_TLV_TAG_STRUCT_SCAN_CHAN_LIST_CMD
	.comm	_WMI_TLV_TAG_ARRAY_STRUCT,4,2   ## @WMI_TLV_TAG_ARRAY_STRUCT
	.comm	_WMI_TLV_TAG_STRUCT_CHANNEL,4,2 ## @WMI_TLV_TAG_STRUCT_CHANNEL
	.comm	_ATH10K_DBG_WMI,4,2             ## @ATH10K_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wmi tlv scan chan list\n"

	.no_dead_strip	_ath10k_wmi_tlv_op_gen_scan_chan_list
.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_scan_chan_list
_ath10k_wmi_tlv_op_gen_scan_chan_list:  ; @ath10k_wmi_tlv_op_gen_scan_chan_list
	.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	x20, x1
	mov	x19, x0
	ldrsw	x8, [x1]
	mov	w9, #28
	mul	x22, x8, x9
	add	x1, x22, #52
	bl	_ath10k_wmi_alloc_skb
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	x25, [x0]
Lloh0:
	adrp	x8, _WMI_TLV_TAG_STRUCT_SCAN_CHAN_LIST_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMI_TLV_TAG_STRUCT_SCAN_CHAN_LIST_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	___cpu_to_le16
	str	x0, [x25, #16]
	mov	w0, #4
	bl	___cpu_to_le16
	str	x0, [x25, #8]
	ldr	x23, [x25]
	ldr	w0, [x20]
	bl	___cpu_to_le32
	str	w0, [x23]
Lloh3:
	adrp	x8, _WMI_TLV_TAG_ARRAY_STRUCT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WMI_TLV_TAG_ARRAY_STRUCT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	___cpu_to_le16
	stur	x0, [x25, #44]
	mov	x0, x22
	bl	___cpu_to_le16
	stur	x0, [x25, #36]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x23, #0
	mov	x24, #0
	ldur	x8, [x25, #28]
	add	x25, x8, #16
Lloh6:
	adrp	x26, _WMI_TLV_TAG_STRUCT_CHANNEL@GOTPAGE
Lloh7:
	ldr	x26, [x26, _WMI_TLV_TAG_STRUCT_CHANNEL@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x22, x8, x23
	ldr	w0, [x26]
	bl	___cpu_to_le16
	str	x0, [x25]
	mov	w0, #4
	bl	___cpu_to_le16
	stur	x0, [x25, #-8]
	ldur	x0, [x25, #-16]
	mov	x1, x22
	bl	_ath10k_wmi_put_wmi_channel
	add	x24, x24, #1
	ldrsw	x8, [x20]
	add	x23, x23, #4
	add	x25, x25, #28
	cmp	x24, x8
	b.lt	LBB0_3
LBB0_4:
Lloh8:
	adrp	x8, _ATH10K_DBG_WMI@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATH10K_DBG_WMI@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	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_5:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WMI_TLV_TAG_STRUCT_SCAN_CHAN_LIST_CMD,4,2 ; @WMI_TLV_TAG_STRUCT_SCAN_CHAN_LIST_CMD
	.comm	_WMI_TLV_TAG_ARRAY_STRUCT,4,2   ; @WMI_TLV_TAG_ARRAY_STRUCT
	.comm	_WMI_TLV_TAG_STRUCT_CHANNEL,4,2 ; @WMI_TLV_TAG_STRUCT_CHANNEL
	.comm	_ATH10K_DBG_WMI,4,2             ; @ATH10K_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wmi tlv scan chan list\n"

	.no_dead_strip	_ath10k_wmi_tlv_op_gen_scan_chan_list
.subsections_via_symbols
